|
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 += . ../../infowidget/src ../../infowidget/inc |
|
22 INCLUDEPATH += . |
|
23 INCLUDEPATH += ../common |
|
24 INCLUDEPATH += ../../inc/ |
|
25 INCLUDEPATH += ../../infowidget/inc/ |
|
26 DEFINES += QT_NO_DEBUG_STREAM |
|
27 |
|
28 MOC_DIR = moc |
|
29 |
|
30 QT -= gui |
|
31 QT += testlib |
|
32 |
|
33 symbian: { |
|
34 CONFIG += no_icon |
|
35 INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE |
|
36 LIBS += -lmocklib \ |
|
37 -lsymbianmock \ |
|
38 -lhswidgetmodel |
|
39 } |
|
40 |
|
41 # test code |
|
42 HEADERS += ./inc/ut_infowidget.h |
|
43 SOURCES += ./src/ut_infowidget.cpp |
|
44 |
|
45 # code to be tested |
|
46 HEADERS += ../../infowidget/inc/infowidget.h |
|
47 SOURCES += ../../infowidget/src/infowidget.cpp |
|
48 |
|
49 # mocks needed for testing |
|
50 #HEADERS += hbdocumentloader.h |
|
51 #SOURCES += ../mocks/mock_hbdocumentloader.cpp |
|
52 |
|
53 HEADERS += ../../infowidget/inc/infowidgetpreferences.h |
|
54 SOURCES += ../mocks/mock_infowidgetpreferences.cpp |
|
55 HEADERS += ../../infowidget/inc/infowidgetengine.h |
|
56 SOURCES += ../mocks/mock_infowidgetengine.cpp |
|
57 HEADERS += ../../infowidget/inc/infowidgetlayoutmanager.h |
|
58 SOURCES += ../mocks/mock_infowidgetlayoutmanager.cpp |
|
59 HEADERS += ../../infowidget/inc/infowidgetnetworkhandler.h |
|
60 SOURCES += ../mocks/mock_infowidgetnetworkhandler.cpp |
|
61 |
|
62 SOURCES += ../mocks/mock_hbcolorscheme.cpp |
|
63 SOURCES += ../mocks/mock_hblabel.cpp |
|
64 SOURCES += ../mocks/mock_hbstyleoptionlabel.cpp |
|
65 SOURCES += ../mocks/mock_hbmarqueeitem.cpp |
|
66 SOURCES += ../mocks/mock_hbwidget.cpp |
|
67 |