phonesettings/cpphonesettingsplugins/cpnetworkplugin/tsrc/ut_cpnetworkplugin/ut_cpnetworkplugin.pro
changeset 21 92ab7f8d0eab
child 22 6bb1b21d2484
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
       
     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 DEFINES += BUILD_NETWORKPLUGIN
       
    26 
       
    27 QT -= gui
       
    28 QT += testlib
       
    29 
       
    30 symbian: {
       
    31   CONFIG += no_icon
       
    32     INCLUDEPATH += /epoc32/include/mw/QtTest \
       
    33         /epoc32/include/platform/mw \
       
    34         /epoc32/include/mw/qt
       
    35   LIBS += -lmocklib \
       
    36         -lsymbianmock \
       
    37         -lcpframework
       
    38 }
       
    39     
       
    40 # test code
       
    41 HEADERS += ut_cpnetworkplugin.h
       
    42 SOURCES += ut_cpnetworkplugin.cpp
       
    43 
       
    44 # code to be tested
       
    45 HEADERS += ../../src/cpnetworkplugin.h \
       
    46            ../../src/cpnetworkpluginview.h \
       
    47        
       
    48 SOURCES += ../../src/cpnetworkplugin.cpp 
       
    49 
       
    50 # mocks needed for testing
       
    51 SOURCES += ../../../tsrc/mocks/mock_cpnetworkpluginview.cpp