|
1 /** |
|
2 * Copyright (c) 2006-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 |
|
18 |
|
19 |
|
20 /** |
|
21 @file SocketServer.TestSteps.h |
|
22 */ |
|
23 #if (!defined SOCKETSERVER_TESTSTEPS_H) |
|
24 #define SOCKETSERVER_TESTSTEPS_H |
|
25 |
|
26 #include <test/testexecutestepbase.h> |
|
27 #include "Te_EsockStepBase.h" |
|
28 |
|
29 // General constants |
|
30 //------------------ |
|
31 _LIT(KTe_SocketServName,"SocketServName"); |
|
32 |
|
33 |
|
34 /** |
|
35 Class implementing CreateRSocketServStep |
|
36 |
|
37 @internalComponent |
|
38 */ |
|
39 class CCreateRSocketServStep : public CTe_EsockStepBase |
|
40 { |
|
41 public: |
|
42 CCreateRSocketServStep(CCEsockTestBase*& aEsockTest); |
|
43 TVerdict doTestStepPreambleL(); |
|
44 TVerdict doSingleTestStep(); |
|
45 TInt ConfigureFromIni(); |
|
46 |
|
47 private: |
|
48 TPtrC iSockServName; |
|
49 }; |
|
50 |
|
51 _LIT(KCreateRSocketServStep,"CreateRSocketServStep"); |
|
52 |
|
53 |
|
54 /** |
|
55 Class implementing ConnectRSocketServStep |
|
56 |
|
57 @internalComponent |
|
58 */ |
|
59 class CConnectRSocketServStep : public CTe_EsockStepBase |
|
60 { |
|
61 public: |
|
62 CConnectRSocketServStep(CCEsockTestBase*& aEsockTest); |
|
63 TVerdict doSingleTestStep(); |
|
64 TInt ConfigureFromIni(); |
|
65 |
|
66 private: |
|
67 TPtrC iSockServName; |
|
68 }; |
|
69 |
|
70 _LIT(KConnectRSocketServStep,"ConnectRSocketServStep"); |
|
71 |
|
72 |
|
73 /** |
|
74 Class implementing CloseRSocketServStep |
|
75 |
|
76 @internalComponent |
|
77 */ |
|
78 class CCloseRSocketServStep : public CTe_EsockStepBase |
|
79 { |
|
80 public: |
|
81 CCloseRSocketServStep(CCEsockTestBase*& aEsockTest); |
|
82 TVerdict doSingleTestStep(); |
|
83 TInt ConfigureFromIni(); |
|
84 |
|
85 private: |
|
86 TPtrC iSockServName; |
|
87 }; |
|
88 |
|
89 _LIT(KCloseRSocketServStep,"CloseRSocketServStep"); |
|
90 |
|
91 |
|
92 /** |
|
93 Class implementing CBackupRestoreStep |
|
94 |
|
95 @internalComponent |
|
96 */ |
|
97 class CBackupRestoreStep : public CTe_EsockStepBase |
|
98 { |
|
99 public: |
|
100 CBackupRestoreStep(CCEsockTestBase*& aEsockTest); |
|
101 TVerdict doTestStepPreambleL(); |
|
102 TVerdict doSingleTestStep(); |
|
103 TInt ConfigureFromIni(); |
|
104 |
|
105 private: |
|
106 TPtrC iOriginalFileName; |
|
107 TPtrC iBackupFileName; |
|
108 TPtrC iNewFileName; |
|
109 TBool iIsBackup; |
|
110 }; |
|
111 |
|
112 _LIT(KBackupRestoreStep,"BackupRestoreStep"); |
|
113 |
|
114 /** |
|
115 Class implementing CleanAllStep |
|
116 |
|
117 @internalComponent |
|
118 */ |
|
119 class CCleanAllStep : public CTe_EsockStepBase |
|
120 { |
|
121 public: |
|
122 CCleanAllStep(CCEsockTestBase*& aEsockTest); |
|
123 TVerdict doTestStepL(); |
|
124 |
|
125 TVerdict doSingleTestStep(); |
|
126 TInt ConfigureFromIni(); |
|
127 }; |
|
128 |
|
129 _LIT(KCleanAllStep,"CleanAllStep"); |
|
130 |
|
131 |
|
132 /** |
|
133 Class implementing SimTSYTriggerEventStep |
|
134 |
|
135 @internalComponent |
|
136 */ |
|
137 class CSimTSYTriggerEventStep : public CTe_EsockStepBase |
|
138 { |
|
139 public: |
|
140 CSimTSYTriggerEventStep(CCEsockTestBase*& aEsockTest); |
|
141 TVerdict doTestStepPreambleL(); |
|
142 TVerdict doSingleTestStep(); |
|
143 TInt ConfigureFromIni(); |
|
144 |
|
145 private: |
|
146 |
|
147 TSimTsyEventParams iParams; |
|
148 }; |
|
149 |
|
150 _LIT(KSimTSYTriggerEventStep,"SimTSYTriggerEventStep"); |
|
151 |
|
152 |
|
153 /** |
|
154 Class implementing StartSimTSYStep |
|
155 |
|
156 @internalComponent |
|
157 */ |
|
158 class CStartSimTSYStep : public CTe_EsockStepBase |
|
159 { |
|
160 public: |
|
161 CStartSimTSYStep(CCEsockTestBase*& aEsockTest); |
|
162 TVerdict doTestStepPreambleL(); |
|
163 TVerdict doSingleTestStep(); |
|
164 TInt ConfigureFromIni(); |
|
165 |
|
166 private: |
|
167 // Test section number |
|
168 void SetTestSectionNumber(TInt aTestSectionNumber); |
|
169 TInt TestSectionNumber() const; |
|
170 TInt iTestSectionNumber; |
|
171 }; |
|
172 |
|
173 _LIT(KStartSimTSYStep,"StartSimTSYStep"); |
|
174 _LIT(KSimTsySectionNumber,"TestSection"); |
|
175 |
|
176 |
|
177 /** |
|
178 Class implementing StopSimTSYStep |
|
179 |
|
180 @internalComponent |
|
181 */ |
|
182 class CStopSimTSYStep : public CTe_EsockStepBase |
|
183 { |
|
184 public: |
|
185 CStopSimTSYStep(CCEsockTestBase*& aEsockTest); |
|
186 TVerdict doSingleTestStep(); |
|
187 TInt ConfigureFromIni(); |
|
188 |
|
189 private: |
|
190 //TPtrC iSimTsyName; |
|
191 }; |
|
192 |
|
193 _LIT(KStopSimTSYStep,"StopSimTSYStep"); |
|
194 |
|
195 |
|
196 /** |
|
197 Class implementing CSocketServerNumProtocolsStep |
|
198 |
|
199 @internalComponent |
|
200 */ |
|
201 class CSocketServerNumProtocolsStep : public CTe_EsockStepBase |
|
202 { |
|
203 public: |
|
204 CSocketServerNumProtocolsStep(CCEsockTestBase*& aEsockTest); |
|
205 TVerdict doSingleTestStep(); |
|
206 TInt ConfigureFromIni(); |
|
207 |
|
208 private: |
|
209 TSocketServerNumProtocolsParams iParams; |
|
210 }; |
|
211 |
|
212 _LIT(KSocketServerNumProtocolsStep,"SocketServerNumProtocolsStep"); |
|
213 |
|
214 |
|
215 /** |
|
216 Class implementing CSocketServerFindProtocolStep |
|
217 |
|
218 @internalComponent |
|
219 */ |
|
220 class CSocketServerFindProtocolStep : public CTe_EsockStepBase |
|
221 { |
|
222 public: |
|
223 CSocketServerFindProtocolStep(CCEsockTestBase*& aEsockTest); |
|
224 TVerdict doSingleTestStep(); |
|
225 TInt ConfigureFromIni(); |
|
226 |
|
227 private: |
|
228 TSocketServFindProtocolParams iParams; |
|
229 }; |
|
230 |
|
231 _LIT(KSocketServerFindProtocolStep,"SocketServerFindProtocolStep"); |
|
232 |
|
233 |
|
234 |
|
235 /** |
|
236 Class implementing CSocketServerGetProtocolInfoStep |
|
237 |
|
238 @internalComponent |
|
239 */ |
|
240 class CSocketServerGetProtocolInfoStep : public CTe_EsockStepBase |
|
241 { |
|
242 public: |
|
243 CSocketServerGetProtocolInfoStep(CCEsockTestBase*& aEsockTest); |
|
244 TVerdict doSingleTestStep(); |
|
245 TInt ConfigureFromIni(); |
|
246 |
|
247 private: |
|
248 TSocketServGetProtocolInfoParams iParams; |
|
249 }; |
|
250 |
|
251 _LIT(KSocketServerGetProtocolInfoStep,"SocketServerGetProtocolInfoStep"); |
|
252 |
|
253 |
|
254 /** |
|
255 Class implementing CSocketServerStartProtocolStep |
|
256 |
|
257 @internalComponent |
|
258 */ |
|
259 class CSocketServerStartProtocolStep : public CTe_EsockStepBase |
|
260 { |
|
261 public: |
|
262 CSocketServerStartProtocolStep(CCEsockTestBase*& aEsockTest); |
|
263 TVerdict doSingleTestStep(); |
|
264 TInt ConfigureFromIni(); |
|
265 |
|
266 private: |
|
267 TSocketServStartStopProtocolParams iParams; |
|
268 }; |
|
269 |
|
270 _LIT(KSocketServerStartProtocolStep,"SocketServerStartProtocolStep"); |
|
271 |
|
272 |
|
273 /** |
|
274 Class implementing CSocketServerStopProtocolStep |
|
275 |
|
276 @internalComponent |
|
277 */ |
|
278 class CSocketServerStopProtocolStep : public CTe_EsockStepBase |
|
279 { |
|
280 public: |
|
281 CSocketServerStopProtocolStep(CCEsockTestBase*& aEsockTest); |
|
282 TVerdict doSingleTestStep(); |
|
283 TInt ConfigureFromIni(); |
|
284 |
|
285 private: |
|
286 TSocketServStartStopProtocolParams iParams; |
|
287 }; |
|
288 |
|
289 _LIT(KSocketServerStopProtocolStep,"SocketServerStopProtocolStep"); |
|
290 |
|
291 |
|
292 /** |
|
293 Class implementing CCompareIntegerValuesStep |
|
294 |
|
295 @internalComponent |
|
296 */ |
|
297 class CCompareIntegerValuesStep : public CTe_EsockStepBase |
|
298 { |
|
299 public: |
|
300 CCompareIntegerValuesStep(CCEsockTestBase*& aEsockTest); |
|
301 TVerdict doSingleTestStep(); |
|
302 TInt ConfigureFromIni(); |
|
303 |
|
304 private: |
|
305 TCompareIntegersParams iParams; |
|
306 }; |
|
307 |
|
308 _LIT(KCompareIntegerValuesStep,"CompareIntegerValuesStep"); |
|
309 |
|
310 |
|
311 #endif // SOCKETSERVER_TESTSTEPS_H |
|
312 |