phoneclientserver/phoneclient/tsrc/public/basic/ut_ussd/ut_ussd.pro
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 #
       
     2 # Copyright (c) 2010 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: USSD unit test project file.
       
    15 # this project combines phone server client and server classes,
       
    16 # glues them in one single package with the test module and test
       
    17 # the class functionality all together.
       
    18 #
       
    19 
       
    20 TEMPLATE = app
       
    21 TARGET = ut_ussd
       
    22 DEPENDPATH += .
       
    23 INCLUDEPATH += .
       
    24 CONFIG += hb
       
    25 CONFIG += qtestlib
       
    26 HEADERS += $$PUBLIC_HEADERS
       
    27 
       
    28 symbian {
       
    29     TARGET.CAPABILITY = CAP_APPLICATION 
       
    30     }
       
    31 
       
    32 INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE
       
    33 
       
    34 # =====================================================================
       
    35 # CODE SUBJECT TO TEST
       
    36 # Note that both ussd client and server code is compiled!
       
    37 # =====================================================================
       
    38 
       
    39 # server
       
    40 HEADERS += ../../../../../phoneserver/inc/ussd/cphsrvussdmanager.h
       
    41 HEADERS += ../../../../../phoneserver/inc/ussd/cphsrvussdnotifynwrelease.h
       
    42 HEADERS += ../../../../../phoneserver/inc/ussd/cphsrvussdreceivehandler.h
       
    43 HEADERS += ../../../../../phoneserver/inc/ussd/cphsrvussdreplytimer.h
       
    44 HEADERS += ../../../../../phoneserver/inc/ussd/cphsrvussdsendhandler.h
       
    45 HEADERS += ../../../../../phoneserver/inc/ussd/cphsrvussdsessioncancelwaiter.h
       
    46 HEADERS += ../../../../../phoneserver/inc/ussd/mphsrvussdmessagesentobserver.h
       
    47 HEADERS += ../../../../../phoneserver/inc/ussd/mphsrvussdnetworkobserver.h
       
    48 HEADERS += ../../../../../phoneserver/inc/ussd/mphsrvussdreplytimerobserver.h
       
    49 HEADERS += ../../../../../phoneserver/inc/Standard/mphsrvphoneinterface.h
       
    50 HEADERS += ../../../../../phoneserver/inc/Standard/cphsrvresourcemanager.h
       
    51 HEADERS += ../../../../../phoneserver/inc/Standard/phsrvutils.h
       
    52 HEADERS += ../../../../../phoneserver/inc/Standard/phsrvdebuginfo.h
       
    53 HEADERS += ../../../../../phoneserver/inc/Standard/phsrvconfigure.h
       
    54 
       
    55 SOURCES += ../../../../../phoneserver/src/ussd/cphsrvussdmanager.cpp
       
    56 SOURCES += ../../../../../phoneserver/src/ussd/cphsrvussdnotifynwrelease.cpp
       
    57 SOURCES += ../../../../../phoneserver/src/ussd/cphsrvussdreceivehandler.cpp
       
    58 SOURCES += ../../../../../phoneserver/src/ussd/cphsrvussdreplytimer.cpp
       
    59 SOURCES += ../../../../../phoneserver/src/ussd/cphsrvussdsendhandler.cpp
       
    60 SOURCES += ../../../../../phoneserver/src/standard/phsrvutils.cpp
       
    61 SOURCES += ../../../../../phoneserver/src/standard/phsrvdebuginfo.cpp
       
    62 
       
    63 # client/ussdwrapper
       
    64 HEADERS += ../../../../../phoneclient/inc/ussd/ussd_ext/rphcltussd.h
       
    65 HEADERS += ../../../../../phoneclient/inc/ussdwrapper/ussd_ext/cphcltussdimp.h
       
    66 HEADERS += ../../../../../phoneclient/inc/ussdwrapper/cphcltussdnotecontroller.h
       
    67 HEADERS += ../../../../../phoneclient/inc/ussdwrapper/cphcltussdrequesthandler.h
       
    68 HEADERS += ../../../../../phoneclient/inc/ussdwrapper/mphcltussdnotecontrollercallback.h
       
    69 HEADERS += ../../../../../phoneclient/inc/ussdwrapper/mphcltussdrequesthandler.h
       
    70 HEADERS += ../../../../../phoneclient/inc/SharedClientServer/phcltclientserver.h
       
    71 HEADERS += ../../../../../phoneclient/inc/ussdwrapper/cphcltussdcommonconstant.h
       
    72 
       
    73 SOURCES += ../../../../../phoneclient/src/ussdwrapper/cphcltussdext.cpp
       
    74 SOURCES += ../../../../../phoneclient/src/ussdwrapper/cphcltussdimp.cpp
       
    75 SOURCES += ../../../../../phoneclient/src/ussdwrapper/cphcltussdint.cpp
       
    76 SOURCES += ../../../../../phoneclient/src/ussdwrapper/cphcltussdnotecontroller.cpp
       
    77 SOURCES += ../../../../../phoneclient/src/ussdwrapper/cphcltussdrequesthandler.cpp
       
    78 SOURCES += ../../../../../phoneclient/src/ussdwrapper/cphcltussdsatclient.cpp
       
    79 
       
    80 
       
    81 # =====================================================================
       
    82 # TEST CODE
       
    83 # Explanation of the test/mock classes
       
    84 # * ut_ussd:
       
    85 #       QTestLib test cases
       
    86 # * ut_testenv:
       
    87 #       keep-up of the test environment, stubs and mocks etc.
       
    88 # * rphcltussd_glue:
       
    89 #       replaces RPhCltUssd implementation. Instead of connecting to
       
    90 #       phone server, directs commands directly to USSD manager and
       
    91 #       receives callbacks.
       
    92 # * etel_mock:
       
    93 #       Mocks ETEL, fakes different USSD send responses.
       
    94 # * phoneclientserver_stubs:
       
    95 #       Replaces the phoneserver resource reader with a dummy
       
    96 #       Replaces phoneserver client with a dummy
       
    97 # =====================================================================
       
    98 
       
    99 HEADERS += ut_ussd.h
       
   100 HEADERS += ut_testenv.h
       
   101 HEADERS += ut_cphcltussdnotecontroller.h
       
   102 
       
   103 SOURCES += main.cpp
       
   104 SOURCES += ut_ussd.cpp
       
   105 SOURCES += ut_testenv.cpp
       
   106 SOURCES += rphcltussd_glue.cpp
       
   107 SOURCES += etel_mock.cpp
       
   108 SOURCES += phoneclientserver_stubs.cpp
       
   109 SOURCES += ut_cphcltussdnotecontroller.cpp
       
   110 
       
   111 
       
   112 LIBS += -lefsrv
       
   113 LIBS += -lgsmu
       
   114 LIBS += -lflogger
       
   115 LIBS += -lCommonEngine
       
   116 LIBS += -laknnotify
       
   117 LIBS += -leiksrv
       
   118 LIBS += -lbafl
       
   119