|
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 BearerMobility.TestSteps.h |
|
22 */ |
|
23 #if (!defined BEARERMOBILITY_TESTSTEPS_H) |
|
24 #define BEARERMOBILITY_TESTSTEPS_H |
|
25 |
|
26 #include <test/testexecutestepbase.h> |
|
27 #include "Te_EsockStepBase.h" |
|
28 |
|
29 #include <comms-infras/mobilitymessagesecom.h> |
|
30 |
|
31 |
|
32 // Accept new carrier |
|
33 //------------------- |
|
34 |
|
35 class Cacceptcarrierrcommsmobilityapiext : public CTe_EsockStepBase |
|
36 { |
|
37 public: |
|
38 Cacceptcarrierrcommsmobilityapiext(CCEsockTestBase*& aEsockTest); |
|
39 TVerdict doSingleTestStep(); |
|
40 TInt ConfigureFromIni(); |
|
41 |
|
42 private: |
|
43 TPtrC iMobilityExtName; |
|
44 TPtrC iConnectionName; |
|
45 }; |
|
46 |
|
47 _LIT(Kacceptcarrierrcommsmobilityapiext,"acceptcarrierrcommsmobilityapiextStep"); |
|
48 |
|
49 |
|
50 // Reject new carrier |
|
51 //------------------- |
|
52 |
|
53 class Crejectcarrierrcommsmobilityapiext : public CTe_EsockStepBase |
|
54 { |
|
55 public: |
|
56 Crejectcarrierrcommsmobilityapiext(CCEsockTestBase*& aEsockTest); |
|
57 TVerdict doSingleTestStep(); |
|
58 TInt ConfigureFromIni(); |
|
59 |
|
60 private: |
|
61 TPtrC iMobilityExtName; |
|
62 TPtrC iConnectionName; |
|
63 }; |
|
64 |
|
65 _LIT(Krejectcarrierrcommsmobilityapiext,"rejectcarrierrcommsmobilityapiextStep"); |
|
66 |
|
67 |
|
68 // Mobility notification |
|
69 //---------------------- |
|
70 |
|
71 class Cmobilitynotifyrcommsmobilityapiext : public CTe_EsockStepBase |
|
72 { |
|
73 public: |
|
74 Cmobilitynotifyrcommsmobilityapiext(CCEsockTestBase*& aEsockTest); |
|
75 TVerdict doSingleTestStep(); |
|
76 TInt ConfigureFromIni(); |
|
77 |
|
78 private: |
|
79 TPtrC iMobilityExtName; |
|
80 TPtrC iConnectionName; |
|
81 }; |
|
82 |
|
83 _LIT(Kmobilitynotifyrcommsmobilityapiext,"mobilitynotifyrcommsmobilityapiextStep"); |
|
84 |
|
85 // Cancel mobility notification |
|
86 //----------------------------- |
|
87 class Ccancelnotifyrcommsmobilityapiext : public CTe_EsockStepBase |
|
88 { |
|
89 public: |
|
90 Ccancelnotifyrcommsmobilityapiext(CCEsockTestBase*& aEsockTest); |
|
91 TVerdict doSingleTestStep(); |
|
92 virtual TInt ConfigureFromIni(); |
|
93 |
|
94 private: |
|
95 TPtrC iMobilityExtName; |
|
96 TPtrC iConnectionName; |
|
97 }; |
|
98 |
|
99 _LIT(Kcancelnotifyrcommsmobilityapiext,"cancelnotifyrcommsmobilityapiextStep"); |
|
100 |
|
101 |
|
102 // Cancel notification |
|
103 //-------------------- |
|
104 |
|
105 class CCancelMobilityNotificationStep : public CTe_EsockStepBase |
|
106 { |
|
107 public: |
|
108 CCancelMobilityNotificationStep(CCEsockTestBase*& aEsockTest); |
|
109 TVerdict doSingleTestStep(); |
|
110 TInt ConfigureFromIni(); |
|
111 |
|
112 private: |
|
113 TPtrC iMobilityExtName; |
|
114 }; |
|
115 |
|
116 _LIT(KCancelMobilityNotificationStep,"CancelMobilityNotificationStep"); |
|
117 |
|
118 |
|
119 // Migrate carrier |
|
120 //---------------- |
|
121 |
|
122 class Cmigratercommsmobilityapiext : public CTe_EsockStepBase |
|
123 { |
|
124 public: |
|
125 Cmigratercommsmobilityapiext(CCEsockTestBase*& aEsockTest); |
|
126 TVerdict doSingleTestStep(); |
|
127 TInt ConfigureFromIni(); |
|
128 |
|
129 private: |
|
130 TPtrC iMobilityExtName; |
|
131 TPtrC iConnectionName; |
|
132 }; |
|
133 |
|
134 _LIT(Kmigratercommsmobilityapiext,"migratercommsmobilityapiextStep"); |
|
135 |
|
136 |
|
137 |
|
138 // Ignore |
|
139 //------- |
|
140 |
|
141 class Cignorercommsmobilityapiext : public CTe_EsockStepBase |
|
142 { |
|
143 public: |
|
144 Cignorercommsmobilityapiext(CCEsockTestBase*& aEsockTest); |
|
145 TVerdict doSingleTestStep(); |
|
146 TInt ConfigureFromIni(); |
|
147 |
|
148 private: |
|
149 TPtrC iMobilityExtName; |
|
150 }; |
|
151 |
|
152 _LIT(Kignorercommsmobilityapiext,"ignorercommsmobilityapiextStep"); |
|
153 |
|
154 |
|
155 // Check mobility notification |
|
156 //---------------------------- |
|
157 class CCheckMobilityNotificationStep : public CTe_EsockStepBase |
|
158 { |
|
159 public: |
|
160 CCheckMobilityNotificationStep(CCEsockTestBase*& aEsockTest); |
|
161 TVerdict doSingleTestStep(); |
|
162 TInt ConfigureFromIni(); |
|
163 |
|
164 private: |
|
165 TEventContainerParams iParams; //current params (.ini) |
|
166 TInt iOldAP; |
|
167 TInt iNewAP; |
|
168 TBuf<KMaxTestExecuteNameLength> iEventName; |
|
169 TInt iExpectedError; |
|
170 TInt iExpectedError2; |
|
171 }; |
|
172 |
|
173 _LIT(KCheckMobilityNotificationStep,"CheckMobilityNotificationStep"); |
|
174 |
|
175 |
|
176 // Close mobility API extension |
|
177 //----------------------------- |
|
178 class CCloseRCommsMobilityAPIExtStep : public CTe_EsockStepBase |
|
179 { |
|
180 public: |
|
181 CCloseRCommsMobilityAPIExtStep(CCEsockTestBase*& aEsockTest); |
|
182 TVerdict doSingleTestStep(); |
|
183 TInt ConfigureFromIni(); |
|
184 |
|
185 private: |
|
186 TPtrC iMobilityExtName; |
|
187 }; |
|
188 |
|
189 _LIT(KCloseRCommsMobilityAPIExtStep,"CloseRCommsMobilityAPIExtStep"); |
|
190 |
|
191 |
|
192 // Open mobility API extension |
|
193 //---------------------------- |
|
194 class COpenRCommsMobilityAPIExtStep : public CTe_EsockStepBase |
|
195 { |
|
196 public: |
|
197 COpenRCommsMobilityAPIExtStep(CCEsockTestBase*& aEsockTest); |
|
198 TVerdict doSingleTestStep(); |
|
199 TInt ConfigureFromIni(); |
|
200 |
|
201 private: |
|
202 TPtrC iMobilityExtName; |
|
203 TPtrC iConnectionName; |
|
204 }; |
|
205 |
|
206 _LIT(KOpenRCommsMobilityAPIExtStep,"OpenRCommsMobilityAPIExtStep"); |
|
207 |
|
208 |
|
209 |
|
210 /** |
|
211 Class implementing CMigrateToPreferredCarrierStep |
|
212 |
|
213 @internalComponent |
|
214 */ |
|
215 class CMigrateToPreferredCarrierStep : public CTe_EsockStepBase |
|
216 { |
|
217 public: |
|
218 CMigrateToPreferredCarrierStep(CCEsockTestBase*& aEsockTest); |
|
219 TVerdict doSingleTestStep(); |
|
220 TInt ConfigureFromIni(); |
|
221 |
|
222 private: |
|
223 TMigrateToPreferredCarrierParams iParams; //current params (.ini) |
|
224 }; |
|
225 |
|
226 _LIT(KMigrateToPreferredCarrierStep,"MigrateToPreferredCarrierStep"); |
|
227 |
|
228 |
|
229 /** |
|
230 Class implementing CIgnorePreferredCarrierStep |
|
231 |
|
232 @internalComponent |
|
233 */ |
|
234 class CIgnorePreferredCarrierStep : public CTe_EsockStepBase |
|
235 { |
|
236 public: |
|
237 CIgnorePreferredCarrierStep(CCEsockTestBase*& aEsockTest); |
|
238 TVerdict doSingleTestStep(); |
|
239 TInt ConfigureFromIni(); |
|
240 |
|
241 private: |
|
242 TMigrateToPreferredCarrierParams iParams; //current params (.ini) |
|
243 }; |
|
244 |
|
245 _LIT(KIgnorePreferredCarrierStep,"IgnorePreferredCarrierStep"); |
|
246 |
|
247 /** |
|
248 Class implementing CNewCarrierAcceptedStep |
|
249 |
|
250 @internalComponent |
|
251 */ |
|
252 class CNewCarrierAcceptedStep : public CTe_EsockStepBase |
|
253 { |
|
254 public: |
|
255 CNewCarrierAcceptedStep(CCEsockTestBase*& aEsockTest); |
|
256 TVerdict doSingleTestStep(); |
|
257 TInt ConfigureFromIni(); |
|
258 |
|
259 private: |
|
260 TMigrateToPreferredCarrierParams iParams; //current params (.ini) |
|
261 }; |
|
262 |
|
263 _LIT(KNewCarrierAcceptedStep,"NewCarrierAcceptedStep"); |
|
264 |
|
265 |
|
266 /** |
|
267 Class implementing CNewCarrierRejectedStep |
|
268 |
|
269 @internalComponent |
|
270 */ |
|
271 class CNewCarrierRejectedStep : public CTe_EsockStepBase |
|
272 { |
|
273 public: |
|
274 CNewCarrierRejectedStep(CCEsockTestBase*& aEsockTest); |
|
275 TVerdict doSingleTestStep(); |
|
276 TInt ConfigureFromIni(); |
|
277 |
|
278 private: |
|
279 TMigrateToPreferredCarrierParams iParams; //current params (.ini) |
|
280 }; |
|
281 |
|
282 _LIT(KNewCarrierRejectedStep,"NewCarrierRejectedStep"); |
|
283 |
|
284 |
|
285 _LIT(KTe_AvailabilityNotificationResponse,"AvailabilityNotifResponse"); |
|
286 |
|
287 |
|
288 /** |
|
289 Class implementing GetAvailabilityAPIStep |
|
290 |
|
291 @internalComponent |
|
292 */ |
|
293 class CGetAvailabilityAPIStep : public CTe_EsockStepBase |
|
294 { |
|
295 public: |
|
296 CGetAvailabilityAPIStep(CCEsockTestBase*& aEsockTest); |
|
297 TVerdict doSingleTestStep(); |
|
298 TInt ConfigureFromIni(); |
|
299 |
|
300 private: |
|
301 TPtrC iAvailabilityExtName; |
|
302 TPtrC iConnectionName; |
|
303 }; |
|
304 |
|
305 _LIT(KGetAvailabilityAPIStep,"GetAvailabilityAPIStep"); |
|
306 |
|
307 |
|
308 /** |
|
309 Class implementing GetMobilityAPIStep |
|
310 |
|
311 @internalComponent |
|
312 */ |
|
313 class CGetMobilityAPIStep : public CTe_EsockStepBase |
|
314 { |
|
315 public: |
|
316 CGetMobilityAPIStep(CCEsockTestBase*& aEsockTest); |
|
317 TVerdict doSingleTestStep(); |
|
318 TInt ConfigureFromIni(); |
|
319 |
|
320 private: |
|
321 TPtrC iMobilityExtName; |
|
322 TPtrC iConnectionName; |
|
323 }; |
|
324 |
|
325 _LIT(KGetMobilityAPIStep,"GetMobilityAPIStep"); |
|
326 |
|
327 |
|
328 /** |
|
329 Class implementing RegisterForMobilityNotificationStep |
|
330 |
|
331 @internalComponent |
|
332 */ |
|
333 class CRegisterForMobilityNotificationStep : public CTe_EsockStepBase |
|
334 { |
|
335 public: |
|
336 CRegisterForMobilityNotificationStep(CCEsockTestBase*& aEsockTest); |
|
337 TVerdict doSingleTestStep(); |
|
338 TInt ConfigureFromIni(); |
|
339 |
|
340 private: |
|
341 TEventContainerParams iParams; //current params (.ini) |
|
342 TBuf<KMaxTestExecuteNameLength> iEventName; |
|
343 }; |
|
344 |
|
345 _LIT(KRegisterForMobilityNotificationStep,"RegisterForMobilityNotificationStep"); |
|
346 |
|
347 #endif // BEARERMOBILITY_TESTSTEPS_H |
|
348 |