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 |
CONFIG += qtestlib hb
|
|
18 |
TEMPLATE = app
|
|
19 |
TARGET =
|
|
20 |
DEPENDPATH += . ../../src/
|
|
21 |
INCLUDEPATH += .
|
|
22 |
INCLUDEPATH += ../../../inc
|
|
23 |
INCLUDEPATH += ../../../cptelephonyutils/inc
|
60
|
24 |
INCLUDEPATH += ../../../tsrc/common
|
|
25 |
|
76
|
26 |
DEFINES += BUILD_TELEPHONYUTILS BUILD_BARRINGPLUGIN \
|
50
|
27 |
BUILD_PSETWRAPPER BUILD_SSSETTINGSWRAPPER BUILD_PSUINOTES
|
37
|
28 |
DEFINES += QT_NO_DEBUG_STREAM
|
|
29 |
|
|
30 |
QT -= gui
|
|
31 |
QT += testlib
|
|
32 |
|
|
33 |
symbian: {
|
|
34 |
CONFIG += no_icon
|
|
35 |
|
|
36 |
INCLUDEPATH += /epoc32/include/mw/QtTest \
|
|
37 |
/epoc32/include/platform/mw \
|
|
38 |
/epoc32/include/mw/qt
|
|
39 |
|
|
40 |
LIBS += -lmocklib \
|
|
41 |
-lsymbianmock \
|
|
42 |
-lcpframework
|
|
43 |
}
|
|
44 |
|
|
45 |
# test code
|
|
46 |
HEADERS += ut_barringplugingroup.h
|
|
47 |
SOURCES += ut_barringplugingroup.cpp
|
|
48 |
|
|
49 |
# code to be tested
|
|
50 |
HEADERS += ../../inc/cpbarringplugin.h \
|
|
51 |
../../inc/cpbarringplugingroup.h \
|
|
52 |
../../../cptelephonyutils/inc/cpplugincommon.h \
|
|
53 |
/epoc32/include/platform/mw/psetwrapper.h \
|
50
|
54 |
/epoc32/include/platform/mw/psuinotes.h \
|
60
|
55 |
/epoc32/include/platform/mw/psetcallbarringwrapper.h \
|
|
56 |
/epoc32/include/platform/mw/psetcalldivertingwrapper.h \
|
37
|
57 |
/epoc32/include/platform/mw/psetcallwaitingwrapper.h \
|
60
|
58 |
/epoc32/include/platform/mw/psetcliwrapper.h \
|
37
|
59 |
/epoc32/include/platform/mw/psetnetworkwrapper.h \
|
60
|
60 |
#/epoc32/include/platform/mw/sssettingswrapper.h \
|
37
|
61 |
|
|
62 |
SOURCES += ../../src/cpbarringplugingroup.cpp
|
|
63 |
|
|
64 |
# mocks needed for testing
|
|
65 |
SOURCES += ../../../tsrc/mocks/mock_cpbarringplugin.cpp
|
|
66 |
SOURCES += ../../../tsrc/mocks/mock_psetcallbarringwrapper.cpp
|
60
|
67 |
SOURCES += ../../../tsrc/mocks/mock_psetcalldivertingwrapper.cpp
|
|
68 |
SOURCES += ../../../tsrc/mocks/mock_psetcallwaitingwrapper.cpp
|
|
69 |
SOURCES += ../../../tsrc/mocks/mock_psetcliwrapper.cpp
|
|
70 |
SOURCES += ../../../tsrc/mocks/mock_psetnetworkwrapper.cpp
|
37
|
71 |
SOURCES += ../../../tsrc/mocks/mock_psetwrapper.cpp
|
50
|
72 |
SOURCES += ../../../tsrc/mocks/mock_psuinotes.cpp
|
37
|
73 |
SOURCES += ../../../tsrc/mocks/mock_cpplugincommon.cpp
|
|
74 |
SOURCES += ../../../tsrc/mocks/mock_cpitemdatahelper.cpp
|
|
75 |
SOURCES += ../../../tsrc/mocks/mock_hbcheckbox.cpp
|
|
76 |
SOURCES += ../../../tsrc/mocks/mock_qtranslator.cpp
|
74
|
77 |
|
|
78 |
|
|
79 |
symbian:MMP_RULES += SMPSAFE
|