|
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 |
|
22 INCLUDEPATH += ./inc |
|
23 INCLUDEPATH += ../../inc |
|
24 INCLUDEPATH += ../common |
|
25 DEFINES += QT_NO_DEBUG_STREAM BUILD_NETWORKHANDLINGSTARTER |
|
26 DEFINES += XQ_BUILD_XQSERVICE_LIB |
|
27 |
|
28 QT -= gui |
|
29 QT += testlib |
|
30 |
|
31 symbian: { |
|
32 CONFIG += no_icon |
|
33 INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE |
|
34 LIBS += -lmocklib \ |
|
35 -lsymbianmock \ |
|
36 -lxqserviceutil |
|
37 } |
|
38 |
|
39 # test code |
|
40 HEADERS += ./inc/ut_networkhandlingstarter_p.h |
|
41 SOURCES += ./src/ut_networkhandlingstarter_p.cpp |
|
42 |
|
43 # code to be tested |
|
44 HEADERS += ../../inc/networkhandlingstarter_p.h |
|
45 SOURCES += ../../src/networkhandlingstarter_p.cpp |
|
46 |
|
47 # mocks needed for testing |
|
48 SOURCES += ../mocks/mock_cnetworklistener.cpp |
|
49 SOURCES += ../mocks/mock_hbdevicemessagebox.cpp |
|
50 SOURCES += ../mocks/mock_hbaction.cpp |
|
51 SOURCES += ../mocks/mock_hbinstance.cpp |
|
52 SOURCES += ../mocks/mock_hbmainwindow.cpp |
|
53 SOURCES += ../mocks/mock_qgraphicsview.cpp |
|
54 SOURCES += ../mocks/mock_qabstractscrollarea.cpp |
|
55 SOURCES += ../mocks/mock_qframe.cpp |
|
56 HEADERS += /epoc32/include/mw/xqappmgr.h |
|
57 SOURCES += ../mocks/mock_xqappmgr.cpp |
|
58 HEADERS += /epoc32/include/mw/xqaiwrequest.h |
|
59 SOURCES += ../mocks/mock_xqaiwrequest.cpp |
|
60 SOURCES += ../mocks/mock_hbtranslator.cpp |