37
|
1 |
#
|
|
2 |
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of "Eclipse Public License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description: Project file for building unit test component
|
|
15 |
#
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
CONFIG += qtestlib hb
|
|
22 |
TEMPLATE = app
|
|
23 |
TARGET =
|
|
24 |
DEPENDPATH += . ../../src/
|
|
25 |
INCLUDEPATH += .
|
|
26 |
INCLUDEPATH += ../../../inc
|
|
27 |
INCLUDEPATH += ../../../cptelephonyutils/inc
|
|
28 |
DEFINES += BUILD_NETWORKPLUGIN BUILD_PSETWRAPPER BUILD_CPTELEPHONYUTILS
|
|
29 |
|
|
30 |
QT -= gui
|
|
31 |
QT += testlib
|
|
32 |
|
|
33 |
symbian: {
|
|
34 |
#CONFIG += no_icon
|
|
35 |
INCLUDEPATH += /epoc32/include/mw/QtTest \
|
|
36 |
/epoc32/include/platform/mw \
|
|
37 |
/epoc32/include/mw/qt
|
|
38 |
LIBS += -lmocklib \
|
|
39 |
-lsymbianmock \
|
|
40 |
-lcpframework
|
|
41 |
}
|
|
42 |
|
|
43 |
# test code
|
|
44 |
HEADERS += ut_networkpluginform.h
|
|
45 |
SOURCES += ut_networkpluginform.cpp
|
|
46 |
|
|
47 |
# code to be tested
|
|
48 |
HEADERS += ../../src/cpnetworkplugin.h \
|
|
49 |
../../src/cpnetworkpluginform.h \
|
|
50 |
../../src/cellulardatasettings.h \
|
|
51 |
../../../cptelephonyutils/inc/cpplugincommon.h \
|
|
52 |
../../../cptelephonyutils/inc/cpphonenotes.h \
|
|
53 |
../../../cptelephonyutils/inc/cpphonelocalisation.h \
|
|
54 |
/epoc32/include/platform/mw/psetwrapper.h \
|
|
55 |
/epoc32/include/platform/mw/psetcliwrapper.h \
|
|
56 |
/epoc32/include/platform/mw/psetcallwaitingwrapper.h \
|
|
57 |
/epoc32/include/platform/mw/psetcalldivertingwrapper.h \
|
|
58 |
/epoc32/include/platform/mw/psetnetworkwrapper.h
|
|
59 |
|
|
60 |
SOURCES += ../../src/cpnetworkpluginform.cpp
|
|
61 |
|
|
62 |
# mocks needed for testing
|
|
63 |
SOURCES += ../../../tsrc/mocks/mock_cpnetworkplugin.cpp \
|
|
64 |
../../../tsrc/mocks/mock_psetwrapper.cpp \
|
|
65 |
../../../tsrc/mocks/mock_psetnetworkwrapper.cpp \
|
|
66 |
../../../tsrc/mocks/mock_cpplugincommon.cpp \
|
|
67 |
../../../tsrc/mocks/mock_cpphonenotes.cpp \
|
|
68 |
../../../tsrc/mocks/mock_cpphonelocalisation.cpp \
|
|
69 |
../../../tsrc/mocks/mock_hbdialog.cpp \
|
|
70 |
../../../tsrc/mocks/mock_cellulardatasettings.cpp
|
|
71 |
|