wlanutilities/wlanwizard/tsrc/ut/testwlanwizardwps.h
branchRCL_3
changeset 25 f28ada11abbf
parent 24 63be7eb3fc78
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
     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:
       
    15  */
       
    16 
       
    17 #ifndef TESTWLANWIZARDRNDWPS_H
       
    18 #define TESTWLANWIZARDRNDWPS_H
       
    19 
       
    20 #include "testwlanwizardcontext.h"
       
    21 
       
    22 class TestWlanWizardWps : public TestWlanWizardContext
       
    23 {
       
    24 Q_OBJECT
       
    25 
       
    26 private slots:
       
    27     void tcConfigureManualOpen();
       
    28     void tcPushButtonOpen();
       
    29     void tcPushButtonWep1();
       
    30     void tcPushButtonWep2();
       
    31     void tcPushButtonWep3();
       
    32     void tcPushButtonWep4();
       
    33     void tcPushButtonWpa();
       
    34     void tcPushButtonWpa2();
       
    35     void tcPinCode_KErrWlanProtectedSetupOOBInterfaceReadError();
       
    36     void tcPinCode_KErrWlanProtectedSetupDecryptionCRCFailure();
       
    37     void tcPinCode_KErrWlanProtectedSetup2_4ChannelNotSupported();
       
    38     void tcPinCode_KErrWlanProtectedSetup5_0ChannelNotSupported();
       
    39     void tcPinCode_KErrWlanProtectedSetupNetworkAuthFailure();
       
    40     void tcPinCode_KErrWlanProtectedSetupNoDHCPResponse();
       
    41     void tcPinCode_KErrWlanProtectedSetupFailedDHCPConfig();
       
    42     void tcPinCode_KErrWlanProtectedSetupIPAddressConflict();
       
    43     void tcPinCode_KErrWlanProtectedSetupCouldNotConnectToRegistrar();
       
    44     void tcPinCode_KErrWlanProtectedSetupMultiplePBCSessionsDetected();
       
    45     void tcPinCode_KErrWlanProtectedSetupRogueActivitySuspected();
       
    46     void tcPinCode_KErrWlanProtectedSetupDeviceBusy();
       
    47     void tcPinCode_KErrWlanProtectedSetupSetupLocked();
       
    48     void tcPinCode_KErrWlanProtectedSetupMessageTimeout();
       
    49     void tcPinCode_KErrWlanProtectedSetupRegistrationSessionTimeout();
       
    50     void tcPinCode_KErrWlanProtectedSetupDevicePasswordAuthFailure();
       
    51     void tcPinCode_KErrWlanProtectedSetupPINMethodNotSupported();
       
    52     void tcPinCode_KErrWlanProtectedSetupPBMethodNotSupported();
       
    53     /*
       
    54     void tcPushButton_KErrNone_back_forward_KErrNone();
       
    55     void tcPinCodeMultipleResults();
       
    56     void tcPinCodeMultipleResults_back_and_forward();
       
    57     */
       
    58 
       
    59 private: // Helper methods
       
    60     void verifyModeSelection();
       
    61     
       
    62 private: // Helper test cases 
       
    63     void tcPushButton(
       
    64         const QString &ssid,
       
    65         int secModeWlan,
       
    66         int secModeCmm,
       
    67         int operModeWlan,
       
    68         int operModeCmm,
       
    69         int defaultWepKeyIndexWlan,
       
    70         int defaultWepKeyIndexCmm);
       
    71     
       
    72     void tcPinCode_failure(
       
    73         int errorCode,
       
    74         const QString &errorText);
       
    75     
       
    76 
       
    77     
       
    78 };
       
    79 
       
    80 #endif /* TESTWLANWIZARDRNDWPS_H */