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 |
CONFIG += qtestlib hb
|
|
19 |
TEMPLATE = app
|
|
20 |
TARGET =
|
|
21 |
INCLUDEPATH += . ../../src/
|
|
22 |
INCLUDEPATH += ../../../cptelephonyutils/inc
|
|
23 |
|
|
24 |
|
|
25 |
QT -= gui
|
|
26 |
QT += testlib
|
|
27 |
|
|
28 |
symbian: {
|
|
29 |
#CONFIG += no_icon
|
|
30 |
INCLUDEPATH += /epoc32/include/mw/QtTest \
|
|
31 |
/epoc32/include/platform/mw \
|
|
32 |
/epoc32/include/mw/qt
|
|
33 |
LIBS += -lmocklib \
|
|
34 |
-lsymbianmock \
|
|
35 |
-lcpframework
|
|
36 |
}
|
|
37 |
|
|
38 |
# test code
|
|
39 |
HEADERS += ut_cpnetworkpluginview.h
|
|
40 |
SOURCES += ut_cpnetworkpluginview.cpp
|
|
41 |
|
|
42 |
# code to be tested
|
|
43 |
HEADERS += ../../src/cpnetworkpluginview.h
|
|
44 |
SOURCES += ../../src/cpnetworkpluginview.cpp
|
|
45 |
|
|
46 |
# mocks needed for testing
|
|
47 |
HEADERS += ../../src/cpnetworkpluginform.h
|
|
48 |
SOURCES += ../../../tsrc/mocks/mock_cpnetworkpluginform.cpp
|
|
49 |
SOURCES += ../../../tsrc/mocks/mock_cpbasesettingview.cpp
|
|
50 |
SOURCES += ../../../tsrc/mocks/mock_hbview.cpp
|
|
51 |
|