|
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 ../../../cptelephonyutils/inc/cpplugincommon.h \ |
|
51 ../../../cptelephonyutils/inc/cpphonenotes.h \ |
|
52 /epoc32/include/platform/mw/psetwrapper.h \ |
|
53 /epoc32/include/platform/mw/psetcliwrapper.h \ |
|
54 /epoc32/include/platform/mw/psetcallwaitingwrapper.h \ |
|
55 /epoc32/include/platform/mw/psetcalldivertingwrapper.h \ |
|
56 /epoc32/include/platform/mw/psetnetworkwrapper.h |
|
57 |
|
58 SOURCES += ../../src/cpnetworkpluginform.cpp |
|
59 |
|
60 # mocks needed for testing |
|
61 SOURCES += ../../../tsrc/mocks/mock_cpnetworkplugin.cpp \ |
|
62 ../../../tsrc/mocks/mock_psetwrapper.cpp \ |
|
63 ../../../tsrc/mocks/mock_psetnetworkwrapper.cpp \ |
|
64 ../../../tsrc/mocks/mock_cpplugincommon.cpp \ |
|
65 ../../../tsrc/mocks/mock_cpphonenotes.cpp \ |
|
66 ../../../tsrc/mocks/mock_hbdataform.cpp \ |
|
67 ../../../tsrc/mocks/mock_hbabstractitemview.cpp \ |
|
68 ../../../tsrc/mocks/mock_hbscrollarea.cpp \ |
|
69 ../../../tsrc/mocks/mock_hbdialog.cpp \ |
|
70 ../../../tsrc/mocks/mock_hbpopup.cpp \ |
|
71 ../../../tsrc/mocks/mock_hbwidget.cpp \ |
|
72 ../../../tsrc/mocks/mock_hblabel.cpp \ |
|
73 ../../../tsrc/mocks/mock_hblistwidget.cpp \ |
|
74 ../../../tsrc/mocks/mock_hblistview.cpp \ |
|
75 ../../../tsrc/mocks/mock_hbaction.cpp \ |
|
76 ../../../tsrc/mocks/mock_qaction.cpp \ |
|
77 ../../../tsrc/mocks/mock_qobject.cpp \ |
|
78 ../../../tsrc/mocks/mock_hblistwidgetitem.cpp |
|
79 |