wlanutilities/wlanwizard/tsrc/ut/testwlanwizard.h
branchRCL_3
changeset 24 63be7eb3fc78
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
       
     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 * This is the header file for testing Wlan Qt Utilities library.
       
    16 */
       
    17 
       
    18 #ifndef TESTWLANWIZARD_H_
       
    19 #define TESTWLANWIZARD_H_
       
    20 
       
    21 // System includes
       
    22 #include <QObject>
       
    23 
       
    24 // User includes
       
    25 
       
    26 // Forward declarations
       
    27 class QSignalSpy;
       
    28 class WlanQtUtils;
       
    29 
       
    30 // External data types
       
    31 
       
    32 // Constants
       
    33 
       
    34 class TestWlanWizard: public QObject
       
    35 {
       
    36     Q_OBJECT
       
    37     
       
    38 private slots:
       
    39 
       
    40     // Functions from QTest framework.
       
    41     void initTestCase();
       
    42     void cleanupTestCase();
       
    43     void init();
       
    44     void cleanup();
       
    45 
       
    46     // WEP test cases
       
    47     void testWepHex64Valid();
       
    48     void testWepHex128Valid();
       
    49     void testWepHexInvalidCharacters();
       
    50 
       
    51     void testWepAscii64Valid();
       
    52     void testWepAscii128Valid();
       
    53     void testWepAsciiInvalidCharacters();
       
    54     void testWepLength9Invalid();
       
    55     void testWepLength11Invalid();
       
    56     void testWepLength25Invalid();
       
    57     void testWepLength27Invalid();
       
    58     void testWepLength4Invalid();
       
    59     void testWepLength6Invalid();
       
    60     void testWepLength12Invalid();
       
    61     void testWepLength14Invalid();    
       
    62     
       
    63     // WPA test cases
       
    64     void testWpaHexValid();
       
    65     void testWpaHexInvalidCharacters();
       
    66     void testWpaAsciiLength8Valid();
       
    67     void testWpaAsciiLength63Valid();
       
    68     void testWpaAsciiLength64Invalid();
       
    69     void testWpaAsciiInvalidCharacters();
       
    70     void testWpaLength7Invalid();
       
    71     void testWpaLength65Invalid();
       
    72     
       
    73     // ASCII test cases
       
    74     void testAsciiValidCharacters();
       
    75     void testAsciiInvalidCharactersLower();
       
    76     void testAsciiInvalidCharactersUpper();
       
    77     
       
    78     // HEX test cases
       
    79     void testHexValidCharacters();
       
    80     void testHexInvalidCharactersDigitLower();
       
    81     void testHexInvalidCharactersDigitUpper();
       
    82     void testHexInvalidCharacters_a_Lower();
       
    83     void testHexInvalidCharacters_f_Upper();
       
    84     void testHexInvalidCharacters_A_Lower();
       
    85     void testHexInvalidCharacters_F_Upper();
       
    86     
       
    87     // SSID test cases
       
    88     void testSsidValidCharacters();
       
    89     void testSsidValidCharacters2();
       
    90     void testSsidInvalidTooShort();
       
    91     void testSsidInvalidTooLong();
       
    92     
       
    93 private:
       
    94  
       
    95 };
       
    96 
       
    97 #endif /* TESTWLANWIZARD_H_ */
       
    98