|
1 /** |
|
2 * Copyright (c) 2002-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 |
|
22 */ |
|
23 #if (!defined __Ioctl_STEP_H__) |
|
24 #define __Ioctl_STEP_H__ |
|
25 #include <test/testexecutestepbase.h> |
|
26 #include <in_sock.h> |
|
27 #include <es_sock.h> |
|
28 #include <wapmessage.h> |
|
29 #include "WapProtSuiteStepBase.h" |
|
30 |
|
31 |
|
32 class CIoctlStep_1 : public CWapProtSuiteStepBase |
|
33 /** |
|
34 * Sends/receives a 7_Bit business card using IOCTL |
|
35 */ |
|
36 { |
|
37 public: |
|
38 virtual TVerdict doTestStepL(); |
|
39 }; |
|
40 |
|
41 |
|
42 class CIoctlStep_2 : public CWapProtSuiteStepBase |
|
43 /** |
|
44 * Send/receive a long 7-Bit calendar entry using IOCTL(two segments) |
|
45 */ |
|
46 { |
|
47 public: |
|
48 virtual TVerdict doTestStepL(); |
|
49 }; |
|
50 |
|
51 |
|
52 class CIoctlStep_3 : public CWapProtSuiteStepBase |
|
53 /** |
|
54 * send/receive one 7-Bit two segments message and one 7-Bit one segment message |
|
55 */ |
|
56 { |
|
57 public: |
|
58 virtual TVerdict doTestStepL(); |
|
59 }; |
|
60 |
|
61 |
|
62 class CIoctlStep_4 : public CWapProtSuiteStepBase |
|
63 /** |
|
64 * Simulating client crash conditions with 7bit message |
|
65 */ |
|
66 { |
|
67 public: |
|
68 virtual TVerdict doTestStepL(); |
|
69 }; |
|
70 |
|
71 |
|
72 class CIoctlStep_5 : public CWapProtSuiteStepBase |
|
73 /** |
|
74 * Simulating client crash conditions with 8bit push message |
|
75 */ |
|
76 { |
|
77 public: |
|
78 virtual TVerdict doTestStepL(); |
|
79 }; |
|
80 |
|
81 |
|
82 class CIoctlStep_6 : public CWapProtSuiteStepBase |
|
83 /** |
|
84 * Testing the old client for 7Bit message |
|
85 */ |
|
86 { |
|
87 public: |
|
88 virtual TVerdict doTestStepL(); |
|
89 }; |
|
90 |
|
91 |
|
92 class CIoctlStep_7 : public CWapProtSuiteStepBase |
|
93 /** |
|
94 * Testing push messages (8-Bit) |
|
95 */ |
|
96 { |
|
97 public: |
|
98 virtual TVerdict doTestStepL(); |
|
99 }; |
|
100 |
|
101 |
|
102 class CIoctlStep_8 : public CWapProtSuiteStepBase |
|
103 /** |
|
104 * Testing store of 8-Bit messages |
|
105 */ |
|
106 { |
|
107 public: |
|
108 virtual TVerdict doTestStepL(); |
|
109 }; |
|
110 |
|
111 |
|
112 class CIoctlStep_9 : public CWapProtSuiteStepBase |
|
113 /** |
|
114 * Testing old clientwith 8-Bit messages |
|
115 */ |
|
116 { |
|
117 public: |
|
118 virtual TVerdict doTestStepL(); |
|
119 }; |
|
120 |
|
121 |
|
122 class CIoctlStep_10 : public CWapProtSuiteStepBase |
|
123 /** |
|
124 * Testing wrong port numebr (i.e.8Bit port number) for 7Bit message |
|
125 */ |
|
126 { |
|
127 public: |
|
128 virtual TVerdict doTestStepL(); |
|
129 }; |
|
130 |
|
131 |
|
132 class CIoctlStep_11 : public CWapProtSuiteStepBase |
|
133 /** |
|
134 * Testing CancelIOCTL |
|
135 */ |
|
136 { |
|
137 public: |
|
138 virtual TVerdict doTestStepL(); |
|
139 }; |
|
140 |
|
141 |
|
142 class CIoctlStep_12 : public CWapProtSuiteStepBase |
|
143 /** |
|
144 * Test issue IOCTL without SetOption NewStyleClient |
|
145 */ |
|
146 { |
|
147 public: |
|
148 virtual TVerdict doTestStepL(); |
|
149 }; |
|
150 |
|
151 |
|
152 class CIoctlStep_13 : public CWapProtSuiteStepBase |
|
153 /** |
|
154 * Test sending 8-Bit Calendar entry |
|
155 */ |
|
156 { |
|
157 public: |
|
158 virtual TVerdict doTestStepL(); |
|
159 }; |
|
160 |
|
161 |
|
162 class CIoctlStep_14 : public CWapProtSuiteStepBase |
|
163 /** |
|
164 * Simulating client crash conditions with 8bit message |
|
165 */ |
|
166 { |
|
167 public: |
|
168 virtual TVerdict doTestStepL(); |
|
169 }; |
|
170 |
|
171 |
|
172 class CIoctlStep_15 : public CWapProtSuiteStepBase |
|
173 /** |
|
174 * Receives a 7Bit v-card using IOCTL with concatenation for new style client |
|
175 */ |
|
176 { |
|
177 public: |
|
178 virtual TVerdict doTestStepL(); |
|
179 }; |
|
180 |
|
181 |
|
182 class CBackupRestoreStep : public CWapProtSuiteStepBase |
|
183 /** |
|
184 * Simulating client crash conditions with 8bit message |
|
185 */ |
|
186 { |
|
187 public: |
|
188 virtual TVerdict doTestStepL(); |
|
189 |
|
190 private: |
|
191 TInt SendWapL(); |
|
192 TBool IsWapFileOpenL(); |
|
193 RSocketServ iSocketServer; |
|
194 }; |
|
195 |
|
196 class CIoctlStep_17 : public CWapProtSuiteStepBase |
|
197 /** |
|
198 * Sends a 7_Bit business card. Using IOCTL query SMS transport parameters |
|
199 */ |
|
200 { |
|
201 public: |
|
202 virtual TVerdict doTestStepL(); |
|
203 }; |
|
204 |
|
205 class CIoctlStep_18 : public CWapProtSuiteStepBase |
|
206 /** |
|
207 * Sends a 7-Bit calendar entry (two segments). Using IOCTL query SMS transport parameters. |
|
208 */ |
|
209 { |
|
210 public: |
|
211 virtual TVerdict doTestStepL(); |
|
212 }; |
|
213 |
|
214 class CIoctlStep_19 : public CWapProtSuiteStepBase |
|
215 /** |
|
216 * Send/receive one 7-Bit two segments message and one 7-Bit one segment message. |
|
217 * Using IOCTL query SMS transport parameters. |
|
218 */ |
|
219 { |
|
220 public: |
|
221 virtual TVerdict doTestStepL(); |
|
222 }; |
|
223 |
|
224 class CIoctlStep_20 : public CWapProtSuiteStepBase |
|
225 /** |
|
226 * Simulating client crash conditions with 7bit message. |
|
227 * Using IOCTL query SMS transport parameters. |
|
228 */ |
|
229 { |
|
230 public: |
|
231 virtual TVerdict doTestStepL(); |
|
232 }; |
|
233 |
|
234 class CIoctlStep_21 : public CWapProtSuiteStepBase |
|
235 /** |
|
236 * Simulating client crash conditions with 8bit push message. |
|
237 * Using IOCTL query SMS transport parameters. |
|
238 */ |
|
239 { |
|
240 public: |
|
241 virtual TVerdict doTestStepL(); |
|
242 }; |
|
243 |
|
244 class CIoctlStep_22 : public CWapProtSuiteStepBase |
|
245 /** |
|
246 * Push Message (8-Bit). Using IOCTL query SMS transport parameters |
|
247 */ |
|
248 { |
|
249 public: |
|
250 virtual TVerdict doTestStepL(); |
|
251 }; |
|
252 |
|
253 class CIoctlStep_23 : public CWapProtSuiteStepBase |
|
254 /** |
|
255 * Two Push Messages (8-Bit). Using IOCTL query SMS transport parameters |
|
256 */ |
|
257 { |
|
258 public: |
|
259 virtual TVerdict doTestStepL(); |
|
260 }; |
|
261 |
|
262 class CIoctlStep_24 : public CWapProtSuiteStepBase |
|
263 /** |
|
264 * Test Cancel IOCTL |
|
265 */ |
|
266 { |
|
267 public: |
|
268 virtual TVerdict doTestStepL(); |
|
269 }; |
|
270 |
|
271 class CIoctlStep_25 : public CWapProtSuiteStepBase |
|
272 /** |
|
273 * Test issue IOCTL without SetOption NewStyleClient |
|
274 */ |
|
275 { |
|
276 public: |
|
277 virtual TVerdict doTestStepL(); |
|
278 }; |
|
279 |
|
280 class CIoctlStep_26 : public CWapProtSuiteStepBase |
|
281 /** |
|
282 * Sends a 8-Bit calendar entry using IOCTL(two segments) |
|
283 */ |
|
284 { |
|
285 public: |
|
286 virtual TVerdict doTestStepL(); |
|
287 }; |
|
288 |
|
289 class CIoctlStep_27 : public CWapProtSuiteStepBase |
|
290 /** |
|
291 * Sends a 7_Bit business card. Issue both a get length and get message perameters to IOCTL at sametime |
|
292 */ |
|
293 { |
|
294 public: |
|
295 TInt DoPanicTestL(TPtrC* aTestData1, TPtrC16* aTelNumber, TInt aPort); |
|
296 virtual TVerdict doTestStepL(); |
|
297 }; |
|
298 |
|
299 class CIoctlStep_28 : public CWapProtSuiteStepBase |
|
300 /** |
|
301 * Sends a 7_Bit business card. Issue a get message parameters to IOCTL without correct platform security |
|
302 */ |
|
303 { |
|
304 public: |
|
305 |
|
306 virtual TVerdict doTestStepPreambleL(); |
|
307 TInt DoPanicTestL(TPtrC* aTestData1, TPtrC16* aTelNumber, TInt aPort); |
|
308 virtual TVerdict doTestStepL(); |
|
309 virtual TVerdict doTestStepPostambleL(); |
|
310 }; |
|
311 |
|
312 |
|
313 class CSetDiskMonitorLimits : public CWapProtSuiteStepBase |
|
314 /** |
|
315 * Setting the Disk space monitor space limits |
|
316 */ |
|
317 { |
|
318 public: |
|
319 virtual TVerdict doTestStepL(); |
|
320 |
|
321 }; |
|
322 |
|
323 class CSetDiskSpace : public CWapProtSuiteStepBase |
|
324 /** |
|
325 * Fill the disk space |
|
326 */ |
|
327 { |
|
328 public: |
|
329 virtual TVerdict doTestStepL(); |
|
330 |
|
331 }; |
|
332 |
|
333 class CFreeDiskSpace : public CWapProtSuiteStepBase |
|
334 /** |
|
335 * Free the disk space |
|
336 */ |
|
337 { |
|
338 public: |
|
339 virtual TVerdict doTestStepL(); |
|
340 |
|
341 }; |
|
342 |
|
343 class CReceiveWapMessage : public CWapProtSuiteStepBase |
|
344 /** |
|
345 * Free the disk space |
|
346 */ |
|
347 { |
|
348 public: |
|
349 virtual TVerdict doTestStepL(); |
|
350 |
|
351 }; |
|
352 |
|
353 class CInitializePhone : public CWapProtSuiteStepBase |
|
354 /** |
|
355 * Free the disk space |
|
356 */ |
|
357 { |
|
358 public: |
|
359 virtual TVerdict doTestStepL(); |
|
360 |
|
361 }; |
|
362 |
|
363 |
|
364 /** |
|
365 Tests enumerating of a VCard which needs to go via the observer and |
|
366 not returned to the client. |
|
367 */ |
|
368 class CTestEnumeratingVCard : public CWapProtSuiteStepBase |
|
369 { |
|
370 public: |
|
371 virtual TVerdict doTestStepL(); |
|
372 }; |
|
373 |
|
374 |
|
375 /** |
|
376 * Sends a 7-bit VCard with an email address in it, to ensure that '@' |
|
377 * characters are sent correctly. |
|
378 */ |
|
379 class CTest7BitBusinessCardWithEmail : public CWapProtSuiteStepBase |
|
380 { |
|
381 public: |
|
382 virtual TVerdict doTestStepL(); |
|
383 }; |
|
384 |
|
385 |
|
386 /** |
|
387 * Attempts to send datagrams bigger than the maximum message and bigger |
|
388 * than the maximum size of an MBuf. |
|
389 */ |
|
390 class CTestOversizedDatagram : public CWapProtSuiteStepBase |
|
391 { |
|
392 public: |
|
393 virtual TVerdict doTestStepL(); |
|
394 }; |
|
395 |
|
396 class CTestWapDatagramSegmentContainingNoData : public CWapProtSuiteStepBase |
|
397 /** |
|
398 * Receive 3 WAP datagrams. Each contains a datagram with at least 1 |
|
399 * segment which has a wap header but an empty data field. |
|
400 */ |
|
401 { |
|
402 public: |
|
403 virtual TVerdict doTestStepL(); |
|
404 }; |
|
405 |
|
406 |
|
407 #endif |