34 void cleanupTestCase(); |
35 void cleanupTestCase(); |
35 void init(); |
36 void init(); |
36 void cleanup(); |
37 void cleanup(); |
37 |
38 |
38 // Test functions for public interface. |
39 // Test functions for public interface. |
|
40 |
|
41 // scanWlans() |
39 void testAvailableWlan(); |
42 void testAvailableWlan(); |
40 void testAvailableWlanDuplicates(); |
43 void testAvailableWlanDuplicates(); |
41 void testAvailableWlanSecModes(); |
44 void testAvailableWlanSecModes(); |
42 void testAvailableWlanSsids(); |
45 void testAvailableWlanSsids(); |
43 void testAvailableWlanWithIaps(); |
46 void testAvailableWlanWithIaps(); |
44 void testAvailableWlanSequence(); |
47 void testAvailableWlanSequence(); |
|
48 void testAvailableWlanScanEmpty(); |
|
49 void testAvailableWlanScanError(); |
|
50 |
|
51 // scanWlanAps() |
|
52 void testAvailableWlanAps(); |
|
53 void testAvailableWlanApsScanEmpty(); |
|
54 void testStopWlanApScan(); |
|
55 void testWlanApScanError(); |
|
56 |
|
57 // scanWlanDirect() |
|
58 void testDirectScanBasic(); |
|
59 void testDirectScanEmpty(); |
|
60 void testDirectScanStop(); |
|
61 void testDirectScanError(); |
45 |
62 |
46 void testCreateIapOk(); |
63 void testCreateIapOk(); |
47 void testCreateIapErr(); |
64 void testCreateIapErr(); |
48 void testCreateIapWepKeys(); |
65 void testCreateIapWepKeys(); |
49 |
66 |
88 |
105 |
89 private: |
106 private: |
90 |
107 |
91 // Helper functions, that is, sub test cases. |
108 // Helper functions, that is, sub test cases. |
92 void subTestSignalWaitAndTake(QSignalSpy *spy, QList<QVariant> *arguments); |
109 void subTestSignalWaitAndTake(QSignalSpy *spy, QList<QVariant> *arguments); |
|
110 void subTestScanResultSignal(QSignalSpy* spy, int status); |
93 void subTestLoadCommsDatFile(QString newCommsdatFilename); |
111 void subTestLoadCommsDatFile(QString newCommsdatFilename); |
94 void subTestNewWlanQtUtils(); |
112 void subTestNewWlanQtUtils(); |
|
113 WlanQtUtilsAp *subTestNewAp(); |
95 |
114 |
96 // Member variables. |
115 // Member variables. |
97 WlanQtUtils *wlanQtUtils_; |
116 WlanQtUtils *wlanQtUtils_; |
98 QSignalSpy *signalScanReady_; |
117 QSignalSpy *mSignalScanReady; |
|
118 QSignalSpy *mSignalScanApReady; |
|
119 QSignalSpy *mSignalScanDirectReady; |
99 QSignalSpy *signalWlanNetworkOpened_; |
120 QSignalSpy *signalWlanNetworkOpened_; |
100 QSignalSpy *signalWlanNetworkClosed_; |
121 QSignalSpy *signalWlanNetworkClosed_; |
101 QSignalSpy *signalIctResult_; |
122 QSignalSpy *signalIctResult_; |
102 |
123 |
103 /* Default CommsDat file name |
124 /* Default CommsDat file name |