|
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_CPTELEPHONYUTILS BUILD_BARRINGPLUGIN \ |
|
29 BUILD_PSETWRAPPER BUILD_SSSETTINGSWRAPPER |
|
30 DEFINES += QT_NO_DEBUG_STREAM |
|
31 |
|
32 QT -= gui |
|
33 QT += testlib |
|
34 |
|
35 symbian: { |
|
36 CONFIG += no_icon |
|
37 |
|
38 INCLUDEPATH += /epoc32/include/mw/QtTest \ |
|
39 /epoc32/include/platform/mw \ |
|
40 /epoc32/include/mw/qt |
|
41 |
|
42 LIBS += -lmocklib \ |
|
43 -lsymbianmock \ |
|
44 -lcpframework |
|
45 } |
|
46 |
|
47 # test code |
|
48 HEADERS += ut_barringplugingroup.h |
|
49 SOURCES += ut_barringplugingroup.cpp |
|
50 |
|
51 # code to be tested |
|
52 HEADERS += ../../inc/cpbarringplugin.h \ |
|
53 ../../inc/cpbarringplugingroup.h \ |
|
54 ../../../cptelephonyutils/inc/cpphonenotes.h \ |
|
55 ../../../cptelephonyutils/inc/cpplugincommon.h \ |
|
56 /epoc32/include/platform/mw/psetwrapper.h \ |
|
57 /epoc32/include/platform/mw/psetcliwrapper.h \ |
|
58 /epoc32/include/platform/mw/sssettingswrapper.h \ |
|
59 /epoc32/include/platform/mw/psetcallwaitingwrapper.h \ |
|
60 /epoc32/include/platform/mw/psetcalldivertingwrapper.h \ |
|
61 /epoc32/include/platform/mw/psetnetworkwrapper.h \ |
|
62 /epoc32/include/platform/mw/psetcallbarringwrapper.h |
|
63 |
|
64 SOURCES += ../../src/cpbarringplugingroup.cpp |
|
65 |
|
66 # mocks needed for testing |
|
67 SOURCES += ../../../tsrc/mocks/mock_cpbarringplugin.cpp |
|
68 SOURCES += ../../../tsrc/mocks/mock_psetcallbarringwrapper.cpp |
|
69 SOURCES += ../../../tsrc/mocks/mock_psetwrapper.cpp |
|
70 SOURCES += ../../../tsrc/mocks/mock_cpphonenotes.cpp |
|
71 SOURCES += ../../../tsrc/mocks/mock_cpplugincommon.cpp |
|
72 SOURCES += ../../../tsrc/mocks/mock_cpitemdatahelper.cpp |
|
73 SOURCES += ../../../tsrc/mocks/mock_hbcheckbox.cpp |
|
74 SOURCES += ../../../tsrc/mocks/mock_qtranslator.cpp |