|
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 Connections.TestSteps.h |
|
22 */ |
|
23 |
|
24 #if (!defined CONNECTIONS_TESTSTEPS_H) |
|
25 #define CONNECTIONS_TESTSTEPS_H |
|
26 |
|
27 #include <test/testexecutestepbase.h> |
|
28 #include "Te_EsockStepBase.h" |
|
29 |
|
30 _LIT(KTe_ConnectionName,"ConnName"); |
|
31 _LIT(KTe_AttachToConnectionName,"AttachToConnName"); |
|
32 _LIT(KTe_ConnectionStopTypeName,"ConnStopType"); |
|
33 _LIT(KTe_ConnStopNormal,"EStopNormal"); |
|
34 _LIT(KTe_ConnStopAuthoritative,"EStopAuthoritative"); |
|
35 _LIT(KTe_ConnectionType,"ConnType"); |
|
36 |
|
37 _LIT(KTe_ConnectionAttachTypeName,"ConnAttachType"); |
|
38 _LIT(KTe_ConnAttachTypeNormal,"EAttachTypeNormal"); |
|
39 _LIT(KTe_ConnAttachTypeMonitor,"EAttachTypeMonitor"); |
|
40 |
|
41 _LIT(KTe_CommDbBearerCSD,"KCommDbBearerCSD"); |
|
42 _LIT(KTe_CommDbBearerWcdma,"KCommDbBearerWcdma"); |
|
43 _LIT(KTe_CommDbBearerLAN,"KCommDbBearerLAN"); |
|
44 |
|
45 //mobility api |
|
46 _LIT(KTe_MobilityAPIName,"MobilityExtName"); |
|
47 |
|
48 //mobility notifications |
|
49 |
|
50 _LIT(KTe_MobilityNotificationPreferredCarrierAvailable,"PreferredCarrierAvailable"); |
|
51 _LIT(KTe_MobilityNotificationPreferredCarrierAvailable_OldAP,"OldAP"); |
|
52 _LIT(KTe_MobilityNotificationPreferredCarrierAvailable_NewAP,"NewAP"); |
|
53 _LIT(KTe_MobilityNotificationNewCarrierActive,"NewCarrierActive"); |
|
54 _LIT(KTe_MobilityNotificationNewCarrierActive_NewAP,"NewAP"); |
|
55 |
|
56 _LIT(KTe_MobilityNotificationMigrateToPreferredCarrier,"MigrateToPreferredCarrier"); |
|
57 _LIT(KTe_MobilityNotificationIgnorePreferredCarrier,"IgnorePreferredCarrier"); |
|
58 _LIT(KTe_MobilityNotificationNewCarrierAccepted,"NewCarrierAccepted"); |
|
59 _LIT(KTe_MobilityNotificationNewCarrierRejected,"NewCarrierRejected"); |
|
60 |
|
61 // Availability extension api |
|
62 |
|
63 _LIT(KTe_AvailabilityExpectedValue, "AvailabilityExpectedValue"); |
|
64 _LIT(KTe_AvailabilityAPIExtensionName, "AvailabilityExtensionName"); |
|
65 |
|
66 // Availability notifications |
|
67 _LIT(KTe_AvailabilityNotification, "RequestNotificationOfAvailabilityChange"); |
|
68 |
|
69 _LIT(KTe_NetworkIndexName,"NET"); |
|
70 |
|
71 // Events in general |
|
72 //------------------ |
|
73 _LIT(KTimeoutInMilliSeconds, "TimeoutInMilliSeconds"); |
|
74 |
|
75 // Connection Manager |
|
76 //------------------- |
|
77 |
|
78 // Connection status and notification extension api |
|
79 _LIT(KConnStatusResponse, "ConnStatusResponse"); |
|
80 _LIT(KConnStatusChangeNotificationResponse, "ConnStatusChangeNotificationResponse"); |
|
81 |
|
82 //helpers |
|
83 _LIT(KTe_CreatePublishSubscribeVar, "createpublishsubscribevar"); |
|
84 _LIT(KTe_CreatePublishSubscribeVarUid, "CreatePublishSubscribeVarUid"); |
|
85 _LIT(KTe_CreatePublishSubscribeVarValue, "CreatePublishSubscribeVarValue"); |
|
86 |
|
87 _LIT(KTe_CheckPublishSubscribeVar, "checkpublishsubscribevar"); |
|
88 _LIT(KTe_CheckPublishSubscribeVarUid, "CheckPublishSubscribeVarUid"); |
|
89 _LIT(KTe_CheckPublishSubscribeVarValue, "CheckPublishSubscribeVarValue"); |
|
90 |
|
91 //progress notification events |
|
92 _LIT(KTe_ConnEventsName,"ConnEventsName"); |
|
93 _LIT(KTe_SelectedProgress,"SelectedProgress"); |
|
94 _LIT(KTe_LinkLayerOpen,"KLinkLayerOpen"); |
|
95 _LIT(KTe_LinkLayerClosed,"KLinkLayerClosed"); |
|
96 |
|
97 // Classes |
|
98 //-------- |
|
99 |
|
100 /** |
|
101 Class implementing CreateRConnectionStep |
|
102 |
|
103 @internalComponent |
|
104 */ |
|
105 class CCreateRConnectionStep : public CTe_EsockStepBase |
|
106 { |
|
107 public: |
|
108 CCreateRConnectionStep(CCEsockTestBase*& aEsockTest); |
|
109 TVerdict doTestStepPreambleL(); |
|
110 TVerdict doSingleTestStep(); |
|
111 TInt ConfigureFromIni(); |
|
112 |
|
113 private: |
|
114 TRConnectionParams iParams; //current params (.ini) |
|
115 }; |
|
116 |
|
117 _LIT(KCreateRConnectionStep,"CreateRConnectionStep"); |
|
118 |
|
119 |
|
120 /** |
|
121 Class implementing StopRConnectionStep |
|
122 |
|
123 @internalComponent |
|
124 */ |
|
125 class CStopRConnectionStep : public CTe_EsockStepBase |
|
126 { |
|
127 public: |
|
128 CStopRConnectionStep(CCEsockTestBase*& aEsockTest); |
|
129 TVerdict doSingleTestStep(); |
|
130 TInt ConfigureFromIni(); |
|
131 |
|
132 private: |
|
133 TRConnectionParams iParams; //current params (.ini) |
|
134 }; |
|
135 |
|
136 _LIT(KStopRConnectionStep,"StopRConnectionStep"); |
|
137 |
|
138 |
|
139 /** |
|
140 Class implementing CloseRConnectionStep |
|
141 |
|
142 @internalComponent |
|
143 */ |
|
144 class CCloseRConnectionStep : public CTe_EsockStepBase |
|
145 { |
|
146 public: |
|
147 CCloseRConnectionStep(CCEsockTestBase*& aEsockTest); |
|
148 TVerdict doSingleTestStep(); |
|
149 TInt ConfigureFromIni(); |
|
150 |
|
151 private: |
|
152 TRConnectionParams iParams; //current params (.ini) |
|
153 }; |
|
154 |
|
155 _LIT(KCloseRConnectionStep,"CloseRConnectionStep"); |
|
156 |
|
157 |
|
158 /** |
|
159 Class implementing StartRConnectionStep |
|
160 |
|
161 @internalComponent |
|
162 */ |
|
163 class CStartRConnectionStep : public CTe_EsockStepBase |
|
164 { |
|
165 public: |
|
166 CStartRConnectionStep(CCEsockTestBase*& aEsockTest); |
|
167 TVerdict doSingleTestStep(); |
|
168 TInt ConfigureFromIni(); |
|
169 |
|
170 private: |
|
171 TRConnectionParams iParams; //current params (.ini) |
|
172 }; |
|
173 |
|
174 _LIT(KStartRConnectionStep,"StartRConnectionStep"); |
|
175 |
|
176 |
|
177 /** |
|
178 Class implementing openrconnectionStep |
|
179 |
|
180 @internalComponent |
|
181 */ |
|
182 class COpenRConnectionStep : public CTe_EsockStepBase |
|
183 { |
|
184 public: |
|
185 COpenRConnectionStep(CCEsockTestBase*& aEsockTest); |
|
186 TVerdict doSingleTestStep(); |
|
187 TInt ConfigureFromIni(); |
|
188 |
|
189 private: |
|
190 TRConnectionParams iParams; //current params (.ini) |
|
191 }; |
|
192 |
|
193 _LIT(KOpenRConnectionStep,"openrconnectionStep"); |
|
194 |
|
195 |
|
196 /** |
|
197 Class implementing AcceptIncomingConnectionStep |
|
198 |
|
199 @internalComponent |
|
200 */ |
|
201 class CAcceptIncomingConnectionStep : public CTe_EsockStepBase |
|
202 { |
|
203 public: |
|
204 CAcceptIncomingConnectionStep(CCEsockTestBase*& aEsockTest); |
|
205 TVerdict doSingleTestStep(); |
|
206 TInt ConfigureFromIni(); |
|
207 |
|
208 private: |
|
209 TRSubConnectionParams iParams; //current params (.ini) |
|
210 }; |
|
211 |
|
212 _LIT(KAcceptIncomingConnectionStep,"AcceptIncomingConnectionStep"); |
|
213 |
|
214 |
|
215 /** |
|
216 Class implementing RejectIncomingConnectionStep |
|
217 |
|
218 @internalComponent |
|
219 */ |
|
220 class CRejectIncomingConnectionStep : public CTe_EsockStepBase |
|
221 { |
|
222 public: |
|
223 CRejectIncomingConnectionStep(CCEsockTestBase*& aEsockTest); |
|
224 TVerdict doSingleTestStep(); |
|
225 TInt ConfigureFromIni(); |
|
226 |
|
227 private: |
|
228 TRSubConnectionParams iParams; //current params (.ini) |
|
229 }; |
|
230 |
|
231 _LIT(KRejectIncomingConnectionStep,"RejectIncomingConnectionStep"); |
|
232 |
|
233 |
|
234 /** |
|
235 Class implementing WaitForIncomingConnectionStep |
|
236 |
|
237 @internalComponent |
|
238 */ |
|
239 class CWaitForIncomingConnectionStep : public CTe_EsockStepBase |
|
240 { |
|
241 public: |
|
242 CWaitForIncomingConnectionStep(CCEsockTestBase*& aEsockTest); |
|
243 TVerdict doSingleTestStep(); |
|
244 TInt ConfigureFromIni(); |
|
245 |
|
246 private: |
|
247 TPtrC timerSet; |
|
248 TPtrC subConnStatus; |
|
249 RTimer iTimer; |
|
250 TRSubConnectionParams iParams; //current params (.ini) |
|
251 |
|
252 }; |
|
253 |
|
254 _LIT(KWaitForIncomingConnectionStep,"WaitForIncomingConnectionStep"); |
|
255 |
|
256 |
|
257 /** |
|
258 Class implementing AsyncAcceptIncomingConnectionStep.h |
|
259 |
|
260 @internalComponent |
|
261 */ |
|
262 class CAsyncAcceptIncomingConnectionStep : public CTe_EsockStepBase |
|
263 { |
|
264 public: |
|
265 CAsyncAcceptIncomingConnectionStep(CCEsockTestBase*& aEsockTest); |
|
266 TVerdict doSingleTestStep(); |
|
267 TInt ConfigureFromIni(); |
|
268 |
|
269 private: |
|
270 TPtrC timerSet; |
|
271 TPtrC subConnStatus; |
|
272 RTimer iTimer; |
|
273 TRSubConnectionParams iParams; //current params (.ini) |
|
274 }; |
|
275 |
|
276 _LIT(KAsyncAcceptIncomingConnectionStep,"AsyncAcceptIncomingConnectionStep"); |
|
277 |
|
278 |
|
279 // Enumerating connections |
|
280 //------------------------ |
|
281 class TEnumerateConnectionsParams |
|
282 { |
|
283 public: |
|
284 TPtrC iConnectionName; |
|
285 TUint iExpectedConnCount; |
|
286 }; |
|
287 |
|
288 class CEnumerateConnectionsStep : public CTe_EsockStepBase |
|
289 { |
|
290 public: |
|
291 CEnumerateConnectionsStep(CCEsockTestBase*& aEsockTest); |
|
292 TInt CEnumerateConnectionsStep::ConfigureFromIni(); |
|
293 TVerdict CEnumerateConnectionsStep::doSingleTestStep(); |
|
294 |
|
295 private: |
|
296 TEnumerateConnectionsParams iParams; |
|
297 }; |
|
298 |
|
299 _LIT(KEnumerateConnectionsStep,"EnumerateConnectionsStep"); |
|
300 |
|
301 // Attach to connection |
|
302 //--------------------- |
|
303 |
|
304 class CattachtorconnectionStep : public CTe_EsockStepBase |
|
305 { |
|
306 public: |
|
307 CattachtorconnectionStep(CCEsockTestBase*& aEsockTest); |
|
308 TVerdict doSingleTestStep(); |
|
309 TInt ConfigureFromIni(); |
|
310 |
|
311 private: |
|
312 TRConnectionParams iParams; //current params (.ini) |
|
313 }; |
|
314 |
|
315 |
|
316 _LIT(KattachtorconnectionStep,"attachtorconnectionStep"); |
|
317 |
|
318 // Await connection start complete |
|
319 //--------------------- |
|
320 |
|
321 class CAwaitRConnectionStartComplete : public CTe_EsockStepBase |
|
322 { |
|
323 public: |
|
324 CAwaitRConnectionStartComplete(CCEsockTestBase*& aEsockTest); |
|
325 TVerdict doSingleTestStep(); |
|
326 TInt ConfigureFromIni(); |
|
327 |
|
328 private: |
|
329 TRConnectionParams iParams; //current params (.ini) |
|
330 }; |
|
331 |
|
332 |
|
333 _LIT(KAwaitRConnectionStartComplete,"AwaitRConnectionStartComplete"); |
|
334 |
|
335 //Set a publish subscribe var |
|
336 |
|
337 /** |
|
338 Class implementing CreateRConnectionStep |
|
339 |
|
340 @internalComponent |
|
341 */ |
|
342 class CCreatePublishSubscribeVar : public CTe_EsockStepBase |
|
343 { |
|
344 public: |
|
345 CCreatePublishSubscribeVar(CCEsockTestBase*& aEsockTest); |
|
346 TVerdict doTestStepPreambleL(); |
|
347 TVerdict doSingleTestStep(); |
|
348 TInt ConfigureFromIni(); |
|
349 |
|
350 private: |
|
351 TInt iUid; |
|
352 TInt iValue; |
|
353 }; |
|
354 |
|
355 _LIT(KCreatePublishSubscribeVar,"CreatePublishSubscribeVar"); |
|
356 |
|
357 //Check a publish subscribe var |
|
358 /** |
|
359 Class implementing CreateRConnectionStep |
|
360 |
|
361 @internalComponent |
|
362 */ |
|
363 class CCheckPublishSubscribeVar : public CTe_EsockStepBase |
|
364 { |
|
365 public: |
|
366 CCheckPublishSubscribeVar(CCEsockTestBase*& aEsockTest); |
|
367 TVerdict doTestStepPreambleL(); |
|
368 TVerdict doSingleTestStep(); |
|
369 TInt ConfigureFromIni(); |
|
370 |
|
371 private: |
|
372 TInt iUid; |
|
373 TInt iValue; |
|
374 }; |
|
375 |
|
376 _LIT(KCheckPublishSubscribeVar,"CheckPublishSubscribeVar"); |
|
377 |
|
378 |
|
379 /** |
|
380 Class implementing RegisterProgressNotificationStep |
|
381 |
|
382 @internalComponent |
|
383 */ |
|
384 class CRegisterProgressNotificationStep : public CTe_EsockStepBase |
|
385 { |
|
386 public: |
|
387 CRegisterProgressNotificationStep(CCEsockTestBase*& aEsockTest); |
|
388 TVerdict doSingleTestStep(); |
|
389 TInt ConfigureFromIni(); |
|
390 |
|
391 private: |
|
392 TEventContainerParams iParams; //current params (.ini) |
|
393 }; |
|
394 |
|
395 _LIT(KRegisterProgressNotificationStep,"RegisterProgressNotificationStep"); |
|
396 |
|
397 |
|
398 class CCheckProgressNotificationStep : public CTe_EsockStepBase |
|
399 { |
|
400 public: |
|
401 CCheckProgressNotificationStep(CCEsockTestBase*& aEsockTest); |
|
402 TVerdict doSingleTestStep(); |
|
403 TInt ConfigureFromIni(); |
|
404 private: |
|
405 TEventContainerParams iParams; //current params (.ini) |
|
406 }; |
|
407 |
|
408 _LIT(KCheckProgressNotificationStep,"CheckProgressNotificationStep"); |
|
409 |
|
410 class CCheckNegativeProgressNotificationStep : public CTe_EsockStepBase |
|
411 { |
|
412 public: |
|
413 CCheckNegativeProgressNotificationStep(CCEsockTestBase*& aEsockTest); |
|
414 TVerdict doSingleTestStep(); |
|
415 TInt ConfigureFromIni(); |
|
416 private: |
|
417 TEventContainerParams iParams; //current params (.ini) |
|
418 }; |
|
419 |
|
420 _LIT(KCheckNegativeProgressNotificationStep,"CheckNegativeProgressNotificationStep"); |
|
421 |
|
422 |
|
423 #endif // CONNECTIONS_TESTSTEPS_H |
|
424 |
|
425 |