|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Header file: Basic tests. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef TE_SimPacket_H__ |
|
24 #define TE_SimPacket_H__ |
|
25 |
|
26 #include "Te_SimPacketTestStepBase.h" |
|
27 |
|
28 //------------------------------------------------------------------ |
|
29 |
|
30 /** |
|
31 * This class substitutes function GprsDefaultContextParamsTestL() from T_SimPacket |
|
32 * |
|
33 */ |
|
34 class CGprsDefaultContextParamsTest : public CSimPacketTestStepBase |
|
35 { |
|
36 public: |
|
37 CGprsDefaultContextParamsTest() ; |
|
38 ~CGprsDefaultContextParamsTest(){} ; |
|
39 virtual TVerdict doTestStepL( void ); |
|
40 |
|
41 } ; |
|
42 |
|
43 //------------------------------------------------------------------ |
|
44 |
|
45 /** |
|
46 * This class substitutes function QoSTestL() from T_SimPacket |
|
47 * |
|
48 */ |
|
49 class CQoSTest : public CSimPacketTestStepBase |
|
50 { |
|
51 public: |
|
52 CQoSTest() ; |
|
53 ~CQoSTest(){} ; |
|
54 virtual TVerdict doTestStepL( void ); |
|
55 |
|
56 } ; |
|
57 |
|
58 //------------------------------------------------------------------ |
|
59 |
|
60 /** |
|
61 * This class substitutes function GprsUnSupportedTestL() from T_SimPacket |
|
62 * |
|
63 */ |
|
64 class CGprsUnSupportedTest : public CSimPacketTestStepBase |
|
65 { |
|
66 public: |
|
67 CGprsUnSupportedTest() ; |
|
68 ~CGprsUnSupportedTest(){} ; |
|
69 virtual TVerdict doTestStepL( void ); |
|
70 |
|
71 } ; |
|
72 |
|
73 //------------------------------------------------------------------ |
|
74 |
|
75 /** |
|
76 * This class substitutes function GprsContextAttachTestL() from T_SimPacket |
|
77 * |
|
78 */ |
|
79 class CGprsContextAttachTest : public CSimPacketTestStepBase |
|
80 { |
|
81 public: |
|
82 CGprsContextAttachTest() ; |
|
83 ~CGprsContextAttachTest(){} ; |
|
84 virtual TVerdict doTestStepL( void ); |
|
85 |
|
86 } ; |
|
87 |
|
88 //------------------------------------------------------------------ |
|
89 |
|
90 /** |
|
91 * This class substitutes function GprsContextDeleteTestL() from T_SimPacket |
|
92 * |
|
93 */ |
|
94 class CGprsContextDeleteTest : public CSimPacketTestStepBase |
|
95 { |
|
96 public: |
|
97 CGprsContextDeleteTest() ; |
|
98 ~CGprsContextDeleteTest(){} ; |
|
99 virtual TVerdict doTestStepL( void ); |
|
100 |
|
101 } ; |
|
102 |
|
103 //------------------------------------------------------------------ |
|
104 |
|
105 /** |
|
106 * This class substitutes function GprsContextLoanComportL() from T_SimPacket |
|
107 * |
|
108 */ |
|
109 class CGprsContextLoanComport : public CSimPacketTestStepBase |
|
110 { |
|
111 public: |
|
112 CGprsContextLoanComport() ; |
|
113 ~CGprsContextLoanComport(){} ; |
|
114 virtual TVerdict doTestStepL( void ); |
|
115 |
|
116 } ; |
|
117 |
|
118 //------------------------------------------------------------------ |
|
119 |
|
120 /** |
|
121 * This class substitutes function GprsContextUnSupportedTestL() from T_SimPacket |
|
122 * |
|
123 */ |
|
124 class CGprsContextUnSupportedTest : public CSimPacketTestStepBase |
|
125 { |
|
126 public: |
|
127 CGprsContextUnSupportedTest() ; |
|
128 ~CGprsContextUnSupportedTest(){} ; |
|
129 virtual TVerdict doTestStepL( void ); |
|
130 |
|
131 } ; |
|
132 |
|
133 //------------------------------------------------------------------ |
|
134 |
|
135 /** |
|
136 * Tests dynamic capabilities APIs: RPacketService::GetDynamicCaps and RPacketService::NotifyDynamicCapsChange |
|
137 */ |
|
138 class CTestDynamicCaps : public CSimPacketTestStepBase |
|
139 { |
|
140 public: |
|
141 CTestDynamicCaps(); |
|
142 ~CTestDynamicCaps() {} |
|
143 virtual TVerdict doTestStepL(); |
|
144 }; |
|
145 |
|
146 //------------------------------------------------------------------ |
|
147 |
|
148 /** |
|
149 * This class substitutes function GprsCancelTestL() from T_SimPacket |
|
150 * |
|
151 */ |
|
152 class CGprsCancelTest : public CSimPacketTestStepBase |
|
153 { |
|
154 public: |
|
155 CGprsCancelTest() ; |
|
156 ~CGprsCancelTest(){} ; |
|
157 virtual TVerdict doTestStepL( void ); |
|
158 |
|
159 } ; |
|
160 |
|
161 //------------------------------------------------------------------ |
|
162 |
|
163 /** |
|
164 * This class substitutes function GprsAttachTestL() from T_SimPacket |
|
165 * |
|
166 */ |
|
167 class CGprsAttachTest : public CSimPacketTestStepBase |
|
168 { |
|
169 public: |
|
170 CGprsAttachTest() ; |
|
171 ~CGprsAttachTest(){} ; |
|
172 virtual TVerdict doTestStepL( void ); |
|
173 |
|
174 } ; |
|
175 |
|
176 //------------------------------------------------------------------ |
|
177 |
|
178 /** |
|
179 * This class substitutes function GprsNotificationTestL() from T_SimPacket |
|
180 * |
|
181 */ |
|
182 class CGprsNotificationTest : public CSimPacketTestStepBase |
|
183 { |
|
184 public: |
|
185 CGprsNotificationTest() ; |
|
186 ~CGprsNotificationTest(){} ; |
|
187 virtual TVerdict doTestStepL( void ); |
|
188 |
|
189 } ; |
|
190 |
|
191 //------------------------------------------------------------------ |
|
192 |
|
193 /** |
|
194 * This class substitutes function GprsMsClassTestL() from T_SimPacket |
|
195 * |
|
196 */ |
|
197 class CGprsMsClassTest : public CSimPacketTestStepBase |
|
198 { |
|
199 public: |
|
200 CGprsMsClassTest() ; |
|
201 ~CGprsMsClassTest(){} ; |
|
202 virtual TVerdict doTestStepL( void ); |
|
203 |
|
204 } ; |
|
205 |
|
206 //------------------------------------------------------------------ |
|
207 |
|
208 /** |
|
209 * This class substitutes function GprsContextConfigTestL() from T_SimPacket |
|
210 * |
|
211 */ |
|
212 class CGprsContextConfigTest : public CSimPacketTestStepBase |
|
213 { |
|
214 public: |
|
215 CGprsContextConfigTest() ; |
|
216 ~CGprsContextConfigTest(){} ; |
|
217 virtual TVerdict doTestStepL( void ); |
|
218 |
|
219 } ; |
|
220 |
|
221 //------------------------------------------------------------------ |
|
222 |
|
223 /** |
|
224 * This class substitutes function GprsContextConfigNotificationsTestL() from T_SimPacket |
|
225 * |
|
226 */ |
|
227 class CGprsContextConfigNotificationsTest : public CSimPacketTestStepBase |
|
228 { |
|
229 public: |
|
230 CGprsContextConfigNotificationsTest() ; |
|
231 ~CGprsContextConfigNotificationsTest(){} ; |
|
232 virtual TVerdict doTestStepL( void ); |
|
233 |
|
234 } ; |
|
235 |
|
236 //------------------------------------------------------------------ |
|
237 |
|
238 /** |
|
239 * This class substitutes function OpenGprsMaxContextsTestL() from T_SimPacket |
|
240 * |
|
241 */ |
|
242 class COpenGprsMaxContextsTest : public CSimPacketTestStepBase |
|
243 { |
|
244 public: |
|
245 COpenGprsMaxContextsTest() ; |
|
246 ~COpenGprsMaxContextsTest(){} ; |
|
247 virtual TVerdict doTestStepL( void ); |
|
248 |
|
249 } ; |
|
250 |
|
251 //------------------------------------------------------------------ |
|
252 |
|
253 /** |
|
254 * This class test the Case when the Phone ask for an Arbitrary PdpAddress |
|
255 * |
|
256 */ |
|
257 class CGprsContextConfigArbitraryAddressTest : public CSimPacketTestStepBase |
|
258 { |
|
259 public: |
|
260 CGprsContextConfigArbitraryAddressTest() ; |
|
261 virtual TVerdict doTestStepL(); |
|
262 |
|
263 } ; |
|
264 |
|
265 //------------------------------------------------------------------ |
|
266 |
|
267 /** |
|
268 * This class substitutes function OpenNewContext() from RPacketMbmsContext |
|
269 * |
|
270 */ |
|
271 class CMbmsOpenNewContextTest : public CSimPacketTestStepBase |
|
272 { |
|
273 public: |
|
274 CMbmsOpenNewContextTest() ; |
|
275 ~CMbmsOpenNewContextTest(){} ; |
|
276 virtual TVerdict doTestStepL( void ); |
|
277 |
|
278 private: |
|
279 RPacketMbmsContext iPacketMbmsContext; |
|
280 } ; |
|
281 |
|
282 //------------------------------------------------------------------ |
|
283 /** |
|
284 * This class substitutes function UpdateSession() from RPacketMbmsContext |
|
285 * |
|
286 */ |
|
287 class CMbmsUpdateSessionTest : public CSimPacketTestStepBase |
|
288 { |
|
289 public: |
|
290 CMbmsUpdateSessionTest() ; |
|
291 ~CMbmsUpdateSessionTest(){} ; |
|
292 virtual TVerdict doTestStepL( void ); |
|
293 |
|
294 private: |
|
295 RPacketMbmsContext iPacketMbmsContext; |
|
296 } ; |
|
297 |
|
298 |
|
299 //------------------------------------------------------------------ |
|
300 /** |
|
301 * This class substitutes function GetMbmsNetworkServiceStatus() from RPacketService |
|
302 * |
|
303 */ |
|
304 class CGetMbmsNetworkServiceStatus : public CSimPacketTestStepBase |
|
305 { |
|
306 public: |
|
307 CGetMbmsNetworkServiceStatus() ; |
|
308 ~CGetMbmsNetworkServiceStatus(){} ; |
|
309 virtual TVerdict doTestStepL( void ); |
|
310 |
|
311 } ; |
|
312 |
|
313 //------------------------------------------------------------------ |
|
314 /** |
|
315 * This class substitutes function NotifyMbmsNetworkServiceStatusChange() from RPacketService |
|
316 * |
|
317 */ |
|
318 class CNotifyMbmsNetworkServiceStatusChange : public CSimPacketTestStepBase |
|
319 { |
|
320 public: |
|
321 CNotifyMbmsNetworkServiceStatusChange() ; |
|
322 ~CNotifyMbmsNetworkServiceStatusChange(){} ; |
|
323 virtual TVerdict doTestStepL( void ); |
|
324 |
|
325 } ; |
|
326 |
|
327 //------------------------------------------------------------------ |
|
328 /** |
|
329 * This class substitutes function NotifyMbmsServiceAvailabilityChange() from RPacketService |
|
330 * |
|
331 */ |
|
332 class CNotifyMbmsServiceAvailabilityChange : public CSimPacketTestStepBase |
|
333 { |
|
334 public: |
|
335 CNotifyMbmsServiceAvailabilityChange() ; |
|
336 ~CNotifyMbmsServiceAvailabilityChange(){} ; |
|
337 virtual TVerdict doTestStepL( void ); |
|
338 |
|
339 } ; |
|
340 |
|
341 |
|
342 //------------------------------------------------------------------ |
|
343 /** |
|
344 * This class substitutes function UpdateMbmsMonitorServiceList() from RPacketService |
|
345 * |
|
346 */ |
|
347 class CUpdateMbmsMonitorServiceList : public CSimPacketTestStepBase |
|
348 { |
|
349 public: |
|
350 CUpdateMbmsMonitorServiceList() ; |
|
351 ~CUpdateMbmsMonitorServiceList(){} ; |
|
352 virtual TVerdict doTestStepL( void ); |
|
353 |
|
354 private: |
|
355 } ; |
|
356 |
|
357 //------------------------------------------------------------------ |
|
358 /** |
|
359 * This class substitutes function EnumerateMbmsActiveServiceList() from RPacketService |
|
360 * |
|
361 */ |
|
362 class CEnumerateMbmsActiveServiceList : public CSimPacketTestStepBase |
|
363 { |
|
364 public: |
|
365 CEnumerateMbmsActiveServiceList() ; |
|
366 ~CEnumerateMbmsActiveServiceList(){} ; |
|
367 virtual TVerdict doTestStepL( void ); |
|
368 |
|
369 }; |
|
370 |
|
371 //------------------------------------------------------------------ |
|
372 /** |
|
373 * This class substitutes function EnumerateMbmsMonitorServiceList() from RPacketService |
|
374 * |
|
375 */ |
|
376 class CEnumerateMbmsMonitorServiceList : public CSimPacketTestStepBase |
|
377 { |
|
378 public: |
|
379 CEnumerateMbmsMonitorServiceList() ; |
|
380 ~CEnumerateMbmsMonitorServiceList(){} ; |
|
381 virtual TVerdict doTestStepL( void ); |
|
382 |
|
383 }; |
|
384 |
|
385 |
|
386 /** |
|
387 * Tests closing one of two handles that both have notifications on them. |
|
388 * This can cause ETel to close multiple requests during the same cancel |
|
389 * request, which in turn can panic ETel if the iterator gets corrupted. |
|
390 */ |
|
391 class CTestMultipleCompletionWithClosingContext : public CSimPacketTestStepBase |
|
392 { |
|
393 public: |
|
394 virtual TVerdict doTestStepL(); |
|
395 }; |
|
396 |
|
397 #endif// TE_SimPacket_H__ |