phoneclientserver/phoneclient/tsrc/public/basic/ut_ussd/main.cpp
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:Unit testing of SatApp
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <QtTest/QtTest>
       
    21 
       
    22 #include "ut_ussd.h"
       
    23 #include "ut_cphcltussdnotecontroller.h"
       
    24 
       
    25 // ====================================================================
       
    26 // MAIN
       
    27 // ====================================================================
       
    28 
       
    29 int main(int argc, char *argv[])
       
    30 {
       
    31     qDebug("Ut_ussd: main() >");
       
    32     QApplication app(argc, argv);
       
    33 
       
    34     int result(0);
       
    35 
       
    36     Ut_Ussd test;
       
    37 //    char *my_argv[3];
       
    38 //    my_argv[0] = argv[0];
       
    39 //    my_argv[1] = "-o";
       
    40 //    my_argv[2] = "c:\\logs\\ussd\\ut_ussd.txt";
       
    41     result = QTest::qExec(&test/*, 3, my_argv*/);
       
    42     qDebug("Ut_ussd: main() test Ut_Ussd<, result=%d", result);
       
    43 
       
    44     Ut_CphCltUssdNoteController testNoteController;
       
    45 //    char *note_argv[3];
       
    46 //    note_argv[0] = argv[0];
       
    47 //    note_argv[1] = "-o";
       
    48 //    note_argv[2] = "c:\\logs\\ussd\\ut_ussdNoteController.txt";
       
    49     result = QTest::qExec(&testNoteController/*, 3, note_argv*/);
       
    50     qDebug("Ut_ussd: main() test Ut_CphCltUssdNoteController<, result=%d",
       
    51         result);
       
    52 
       
    53     return result;
       
    54 }
       
    55 
       
    56 //End of file