|
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 CONFIG += qtestlib hb |
|
19 TEMPLATE = app |
|
20 TARGET = |
|
21 DEPENDPATH += . ../../src/ |
|
22 INCLUDEPATH += . |
|
23 INCLUDEPATH +=../../../inc |
|
24 INCLUDEPATH +=../../../cptelephonyutils/inc |
|
25 INCLUDEPATH += ../../../tsrc/common |
|
26 DEFINES += BUILD_CPTELEPHONYUTILS |
|
27 |
|
28 QT -= gui |
|
29 QT += testlib |
|
30 |
|
31 symbian: { |
|
32 CONFIG += no_icon |
|
33 INCLUDEPATH += /epoc32/include/mw/QtTest \ |
|
34 /epoc32/include/platform/mw \ |
|
35 /epoc32/include/mw/qt |
|
36 LIBS += -lmocklib \ |
|
37 -lsymbianmock \ |
|
38 -lcpframework |
|
39 } |
|
40 |
|
41 # test code |
|
42 HEADERS += ut_cpnetworkplugin.h |
|
43 SOURCES += ut_cpnetworkplugin.cpp |
|
44 |
|
45 # code to be tested |
|
46 HEADERS += ../../src/cpnetworkplugin.h \ |
|
47 ../../src/cpnetworkpluginview.h \ |
|
48 ../../src/cpnetworkstatus.h \ |
|
49 ../../../cptelephonyutils/inc/cpphonelocalisation.h |
|
50 |
|
51 SOURCES += ../../src/cpnetworkplugin.cpp |
|
52 |
|
53 # mocks needed for testing |
|
54 SOURCES += ../../../tsrc/mocks/mock_cpnetworkpluginview.cpp |
|
55 SOURCES += ../../../tsrc/mocks/mock_cpphonelocalisation.cpp |
|
56 SOURCES += ../../../tsrc/mocks/mock_hbicon.cpp |
|
57 SOURCES += ../../../tsrc/mocks/mock_cpsettingformentryitemdata.cpp |
|
58 SOURCES += ../../../tsrc/mocks/mock_cpbasesettingview.cpp |
|
59 SOURCES += ../../../tsrc/mocks/mock_hbview.cpp |
|
60 SOURCES += ../../../tsrc/mocks/mock_cpnetworkstatus.cpp |
|
61 |