wlanutilities/wlanwizard/t_wlanwizard/ut/main.cpp
author hgs
Thu, 24 Jun 2010 10:49:51 +0300
changeset 39 7b3e49e4608a
parent 31 e8f4211554fb
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
 * All rights reserved.
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
 *
hgs
parents:
diff changeset
     9
 * Initial Contributors:
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
 *
hgs
parents:
diff changeset
    12
 * Contributors:
hgs
parents:
diff changeset
    13
 *
hgs
parents:
diff changeset
    14
 * Description:
hgs
parents:
diff changeset
    15
 */
hgs
parents:
diff changeset
    16
hgs
parents:
diff changeset
    17
// System includes
hgs
parents:
diff changeset
    18
#include <HbApplication>
hgs
parents:
diff changeset
    19
#include <QtCore>
hgs
parents:
diff changeset
    20
#include <QTest>
hgs
parents:
diff changeset
    21
#include <QDebug>
hgs
parents:
diff changeset
    22
#include <QList>
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
// User includes
hgs
parents:
diff changeset
    25
#include "testwlanwizard.h"
39
hgs
parents: 31
diff changeset
    26
#include "testwlanwizardeap.h"
hgs
parents: 31
diff changeset
    27
#include "testwlanwizardconnect.h"
hgs
parents: 31
diff changeset
    28
#include "testwlanwizardmanual.h"
hgs
parents: 31
diff changeset
    29
#include "testwlanwizardwps.h"
31
hgs
parents:
diff changeset
    30
hgs
parents:
diff changeset
    31
// ======== LOCAL FUNCTIONS ========
hgs
parents:
diff changeset
    32
int main(int argc, char *argv[])
hgs
parents:
diff changeset
    33
{
39
hgs
parents: 31
diff changeset
    34
    qDebug("TestWlanWizard main start");
31
hgs
parents:
diff changeset
    35
    HbApplication app(argc, argv);
39
hgs
parents: 31
diff changeset
    36
    int res = 0;
31
hgs
parents:
diff changeset
    37
    char *pass[3];
hgs
parents:
diff changeset
    38
    pass[0] = argv[0];
hgs
parents:
diff changeset
    39
    pass[1] = "-o";
39
hgs
parents: 31
diff changeset
    40
    
hgs
parents: 31
diff changeset
    41
    // log folder: \epoc32\winscw\c\data
hgs
parents: 31
diff changeset
    42
    
hgs
parents: 31
diff changeset
    43
    app.setApplicationName("TestWlanWizardUtilities");
hgs
parents: 31
diff changeset
    44
    pass[2] = "c:\\data\\TestWlanWizardUtilities.txt";
hgs
parents: 31
diff changeset
    45
    TestWlanWizard *tcUtilities = new TestWlanWizard();
hgs
parents: 31
diff changeset
    46
    res |= QTest::qExec(tcUtilities, 3, pass);
hgs
parents: 31
diff changeset
    47
    delete tcUtilities;
hgs
parents: 31
diff changeset
    48
    tcUtilities = NULL;
31
hgs
parents:
diff changeset
    49
39
hgs
parents: 31
diff changeset
    50
    app.setApplicationName("TestWlanWizardConnect");
hgs
parents: 31
diff changeset
    51
    pass[2] = "c:\\data\\TestWlanWizardConnect.txt";
hgs
parents: 31
diff changeset
    52
    TestWlanWizardConnect *tcConnect = new TestWlanWizardConnect();
hgs
parents: 31
diff changeset
    53
    res |= QTest::qExec(tcConnect, 3, pass);
hgs
parents: 31
diff changeset
    54
    delete tcConnect;
hgs
parents: 31
diff changeset
    55
    tcConnect = NULL;
31
hgs
parents:
diff changeset
    56
    
39
hgs
parents: 31
diff changeset
    57
    app.setApplicationName("TestWlanWizardManual");
hgs
parents: 31
diff changeset
    58
    pass[2] = "c:\\data\\TestWlanWizardManual.txt";
hgs
parents: 31
diff changeset
    59
    TestWlanWizardManual *tcManual = new TestWlanWizardManual();
hgs
parents: 31
diff changeset
    60
    res |= QTest::qExec(tcManual, 3, pass);
hgs
parents: 31
diff changeset
    61
    delete tcManual;
hgs
parents: 31
diff changeset
    62
    tcManual = NULL;
hgs
parents: 31
diff changeset
    63
hgs
parents: 31
diff changeset
    64
    app.setApplicationName("TestWlanWizardEap");
hgs
parents: 31
diff changeset
    65
    pass[2] = "c:\\data\\TestWlanWizardEap.txt";
hgs
parents: 31
diff changeset
    66
    TestWlanWizardEap *tcEap = new TestWlanWizardEap();
hgs
parents: 31
diff changeset
    67
    res |= QTest::qExec(tcEap, 3, pass);
hgs
parents: 31
diff changeset
    68
    delete tcEap;
hgs
parents: 31
diff changeset
    69
    tcEap = NULL;
hgs
parents: 31
diff changeset
    70
hgs
parents: 31
diff changeset
    71
    app.setApplicationName("TestWlanWizardWps");
hgs
parents: 31
diff changeset
    72
    pass[2] = "c:\\data\\TestWlanWizardWps.txt";
hgs
parents: 31
diff changeset
    73
    TestWlanWizardWps *tcWps = new TestWlanWizardWps();
hgs
parents: 31
diff changeset
    74
    res |= QTest::qExec(tcWps, 3, pass);
hgs
parents: 31
diff changeset
    75
    delete tcWps;
hgs
parents: 31
diff changeset
    76
    tcWps = NULL;
hgs
parents: 31
diff changeset
    77
    
hgs
parents: 31
diff changeset
    78
    qDebug("TestWlanWizard main exit");
31
hgs
parents:
diff changeset
    79
    return res;
hgs
parents:
diff changeset
    80
}