wlanutilities/wlanwizard/tsrc/ut/main.cpp
branchRCL_3
changeset 25 f28ada11abbf
parent 24 63be7eb3fc78
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
     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:
       
    15  */
       
    16 
       
    17 // System includes
       
    18 #include <HbApplication>
       
    19 #include <QtCore>
       
    20 #include <QTest>
       
    21 #include <QDebug>
       
    22 #include <QList>
       
    23 
       
    24 // User includes
       
    25 #include "testwlanwizard.h"
       
    26 #include "testwlanwizardeap.h"
       
    27 #include "testwlanwizardconnect.h"
       
    28 #include "testwlanwizardmanual.h"
       
    29 #include "testwlanwizardwps.h"
       
    30 
       
    31 // ======== LOCAL FUNCTIONS ========
       
    32 int main(int argc, char *argv[])
       
    33 {
       
    34     qDebug("TestWlanWizard main start");
       
    35     HbApplication app(argc, argv);
       
    36     int res = 0;
       
    37     char *pass[3];
       
    38     pass[0] = argv[0];
       
    39     pass[1] = "-o";
       
    40     
       
    41     // log folder: \epoc32\winscw\c\data
       
    42     
       
    43     app.setApplicationName("TestWlanWizardUtilities");
       
    44     pass[2] = "c:\\data\\TestWlanWizardUtilities.txt";
       
    45     TestWlanWizard *tcUtilities = new TestWlanWizard();
       
    46     res |= QTest::qExec(tcUtilities, 3, pass);
       
    47     delete tcUtilities;
       
    48     tcUtilities = NULL;
       
    49 
       
    50     app.setApplicationName("TestWlanWizardConnect");
       
    51     pass[2] = "c:\\data\\TestWlanWizardConnect.txt";
       
    52     TestWlanWizardConnect *tcConnect = new TestWlanWizardConnect();
       
    53     res |= QTest::qExec(tcConnect, 3, pass);
       
    54     delete tcConnect;
       
    55     tcConnect = NULL;
       
    56     
       
    57     app.setApplicationName("TestWlanWizardManual");
       
    58     pass[2] = "c:\\data\\TestWlanWizardManual.txt";
       
    59     TestWlanWizardManual *tcManual = new TestWlanWizardManual();
       
    60     res |= QTest::qExec(tcManual, 3, pass);
       
    61     delete tcManual;
       
    62     tcManual = NULL;
       
    63 
       
    64     app.setApplicationName("TestWlanWizardEap");
       
    65     pass[2] = "c:\\data\\TestWlanWizardEap.txt";
       
    66     TestWlanWizardEap *tcEap = new TestWlanWizardEap();
       
    67     res |= QTest::qExec(tcEap, 3, pass);
       
    68     delete tcEap;
       
    69     tcEap = NULL;
       
    70 
       
    71     app.setApplicationName("TestWlanWizardWps");
       
    72     pass[2] = "c:\\data\\TestWlanWizardWps.txt";
       
    73     TestWlanWizardWps *tcWps = new TestWlanWizardWps();
       
    74     res |= QTest::qExec(tcWps, 3, pass);
       
    75     delete tcWps;
       
    76     tcWps = NULL;
       
    77     
       
    78     qDebug("TestWlanWizard main exit");
       
    79     return res;
       
    80 }