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