|
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 // The definitions of the transition classes upon the TFilterConfigurationIterator class methods. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file FilterConfigurationIteratorTransitions.h |
|
20 */ |
|
21 |
|
22 #ifndef __FILTERCONFIGURATIONITERATORTRANSITIONS_H__ |
|
23 #define __FILTERCONFIGURATIONITERATORTRANSITIONS_H__ |
|
24 |
|
25 #include "TestUtilities.h" |
|
26 #include "StateAccessor.h" |
|
27 #include "LeakTestTransition.h" |
|
28 #include "DataLogger.h" |
|
29 #include <http/tfilterconfigurationiter.h> |
|
30 #include "FilterConfigurationIteratorStateAccessor.h" |
|
31 #include "UnitTest.h" |
|
32 |
|
33 // System includes |
|
34 #include <http/rhttpsession.h> |
|
35 #include <http/mhttpfiltercreationcallback.h> |
|
36 #include <http/tfilterinformation.h> |
|
37 |
|
38 // Literals |
|
39 _LIT8(KTxtNoExist, "HTTP/NOTEXIST"); |
|
40 _LIT8(KTxtHttpImplicit, "HTTP/IMPLICIT"); |
|
41 |
|
42 #define CTransitionType CTransition |
|
43 |
|
44 // ______________________________________________________________________________ |
|
45 // |
|
46 /** |
|
47 @internal |
|
48 @class CFilterConfigurationIterator_UnitTestContext |
|
49 @Depends TFilterConfigurationIterator & CUnitTestContext |
|
50 |
|
51 Comments : Provide all the TFilterConfigurationIterator specific |
|
52 parameters and behaviour on the TFilterConfigurationIterator |
|
53 test class for a transition. |
|
54 */ |
|
55 class CFilterConfigurationIterator_UnitTestContext : public CUnitTestContext, |
|
56 public MHTTPFilterCreationCallback |
|
57 { |
|
58 public: |
|
59 /** |
|
60 @fn CFilterConfigurationIterator_UnitTestContext(CDataLogger& aDataLogger, |
|
61 MStateAccessor& aStateAccessor, |
|
62 MTransitionObserver& aObserver) |
|
63 Intended Usage : Default constructor. |
|
64 Error Condition : None. |
|
65 @since 7.0 |
|
66 @param aDataLogger The output logging object. |
|
67 @param aObserver The observer of this UnitTest's Transitions. |
|
68 @param aStateAccessor WhiteBox state access to the TFilterConfigurationIterator class under test. |
|
69 @pre None. |
|
70 @post CFilterConfigurationIterator_UnitTestContext is fully constructed, and initialized. |
|
71 */ |
|
72 inline CFilterConfigurationIterator_UnitTestContext(CDataLogger& aDataLogger, |
|
73 MStateAccessor& aStateAccessor, |
|
74 MTransitionObserver& aObserver); |
|
75 |
|
76 /** |
|
77 @fn ~CFilterConfigurationIterator_UnitTestContext() |
|
78 Intended Usage : Default Destructor |
|
79 @since 7.0 |
|
80 @pre CFilterConfigurationIterator_UnitTestContext is fully constructed. |
|
81 @post CFilterConfigurationIterator_UnitTestContext is fully destroyed |
|
82 */ |
|
83 virtual inline ~CFilterConfigurationIterator_UnitTestContext(); |
|
84 |
|
85 inline void CreateFilterIterL(); |
|
86 |
|
87 inline void DeleteFilterIter(); |
|
88 |
|
89 inline void ConfigureSessionFiltersL(TFilterConfigurationIterator* aFilterConfigIter); |
|
90 |
|
91 enum TTestDataType |
|
92 { |
|
93 ENotExist, |
|
94 EHttpImplicit |
|
95 }; |
|
96 |
|
97 inline const TDesC8& GetTestFilterName(TTestDataType aTestFilterName); |
|
98 |
|
99 /** The instance of the class under test */ |
|
100 TFilterConfigurationIterator* iFilterConfigurationIterator; |
|
101 |
|
102 // Transport session |
|
103 RHTTPSession iTFSession; |
|
104 |
|
105 // Stores return value of First() method |
|
106 TInt iFirstReturn; |
|
107 |
|
108 // Stores return value of AtStart() method |
|
109 TBool iAtStartReturn; |
|
110 // Stores the expected return value of AtStart() |
|
111 TBool iAtStartExpected; |
|
112 |
|
113 // Stores return value of Next() method |
|
114 TInt iNextReturn; |
|
115 |
|
116 // Stores the filter information returned by the iterator |
|
117 TFilterInformation* iFilterInfo; |
|
118 |
|
119 // Stores the return value of FindByDataType() method |
|
120 TInt iFindByDataTypeReturn; |
|
121 // Stores the expected return value of FindByDataType() method |
|
122 TInt iFindByDataTypeExpected; |
|
123 |
|
124 // Descriptor pointer array for protocol list |
|
125 RPointerArray<HBufC8> iProtocolArray; |
|
126 TInt iProtocolCount; |
|
127 |
|
128 }; // CFilterConfigurationIterator_UnitTestContext |
|
129 |
|
130 // ______________________________________________________________________________ |
|
131 // |
|
132 /** |
|
133 @internal |
|
134 @class CFilterConfigurationIterator_NewL_Transition |
|
135 @Depends TFilterConfigurationIterator & CTransition |
|
136 |
|
137 Comments : Transition test of the TFilterConfigurationIterator::NewL method. |
|
138 */ |
|
139 class CFilterConfigurationIterator_NewL_Transition : public CTransitionType |
|
140 { |
|
141 public: |
|
142 /** |
|
143 @fn CFilterConfigurationIterator_NewL_Transition(CUnitTestContext& aUTContext, |
|
144 TTransitionValidator& aValidator) |
|
145 Intended Usage : Standard c'tor method. |
|
146 Error Condition : None. |
|
147 @since 7.0 |
|
148 @param aUTContext The context this transition is operating in. |
|
149 @param aValidator Used for checking the pre & post conditions of the test object. |
|
150 @pre None. |
|
151 @post CFilterConfigurationIterator_NewL_Transition is fully constructed. |
|
152 */ |
|
153 CFilterConfigurationIterator_NewL_Transition(CUnitTestContext& aUTContext, |
|
154 TTransitionValidator& aValidator); |
|
155 /** |
|
156 @fn TransitMethodL() |
|
157 Intended Usage : To execute the TFilterConfigurationIterator::NewL method for the test harness. |
|
158 Error Condition : Leaves with an error code. |
|
159 @exception KErrNoMemory, (@see TFilterConfigurationIterator::NewL) |
|
160 @since 7.0 |
|
161 @return None |
|
162 @pre CFilterConfigurationIterator_NewL_Transition is fully constructed. |
|
163 @post No change in the CFilterConfigurationIterator_NewL_Transition apart |
|
164 from iFilterConfigurationIterator, which may have changed state. |
|
165 (@see TFilterConfigurationIterator::NewL post-condition) for iFilterConfigurationIterator's new state. |
|
166 */ |
|
167 inline void TransitMethodL(); |
|
168 |
|
169 /** |
|
170 @fn Context() const |
|
171 Intended Usage : To provide access to the unit test context cast to the correct type. |
|
172 Error Condition : None. |
|
173 @since 7.0 |
|
174 @return The unit test context cast to a CFilterConfigurationIterator_UnitTestContext |
|
175 @pre iUTContext is a valid CFilterConfigurationIterator_UnitTestContext. |
|
176 @post No change in the CFilterConfigurationIterator_NewL_Transition |
|
177 */ |
|
178 inline CFilterConfigurationIterator_UnitTestContext& Context() const; |
|
179 }; // CFilterConfigurationIterator_NewL_Transition |
|
180 |
|
181 // ______________________________________________________________________________ |
|
182 // |
|
183 /** |
|
184 @internal |
|
185 @class CFilterConfigurationIterator_Dtor_Transition |
|
186 @Depends TFilterConfigurationIterator & CTransition |
|
187 |
|
188 Comments : Transition test of the TFilterConfigurationIterator::Dtor method. |
|
189 */ |
|
190 class CFilterConfigurationIterator_Dtor_Transition : public CTransitionType |
|
191 { |
|
192 public: |
|
193 /** |
|
194 @fn CFilterConfigurationIterator_Dtor_Transition(CUnitTestContext& aUTContext, |
|
195 TTransitionValidator& aValidator) |
|
196 Intended Usage : Standard c'tor method. |
|
197 Error Condition : None. |
|
198 @since 7.0 |
|
199 @param aUTContext The context this transition is operating in. |
|
200 @param aValidator Used for checking the pre & post conditions of the test object. |
|
201 @pre None. |
|
202 @post CFilterConfigurationIterator_Dtor_Transition is fully constructed. |
|
203 */ |
|
204 CFilterConfigurationIterator_Dtor_Transition(CUnitTestContext& aUTContext, |
|
205 TTransitionValidator& aValidator); |
|
206 /** |
|
207 @fn TransitMethodL() |
|
208 Intended Usage : To execute the TFilterConfigurationIterator::Dtor method for the test harness. |
|
209 Error Condition : Leaves with an error code. |
|
210 @exception KErrNoMemory, (@see TFilterConfigurationIterator::Dtor) |
|
211 @since 7.0 |
|
212 @return None |
|
213 @pre CFilterConfigurationIterator_Dtor_Transition is fully constructed. |
|
214 @post No change in the CFilterConfigurationIterator_Dtor_Transition apart |
|
215 from iFilterConfigurationIterator, which may have changed state. |
|
216 (@see TFilterConfigurationIterator::Dtor post-condition) for iFilterConfigurationIterator's new state. |
|
217 */ |
|
218 inline void TransitMethodL(); |
|
219 |
|
220 /** |
|
221 @fn Context() const |
|
222 Intended Usage : To provide access to the unit test context cast to the correct type. |
|
223 Error Condition : None. |
|
224 @since 7.0 |
|
225 @return The unit test context cast to a CFilterConfigurationIterator_UnitTestContext |
|
226 @pre iUTContext is a valid CFilterConfigurationIterator_UnitTestContext. |
|
227 @post No change in the CFilterConfigurationIterator_Dtor_Transition |
|
228 */ |
|
229 inline CFilterConfigurationIterator_UnitTestContext& Context() const; |
|
230 }; // CFilterConfigurationIterator_Dtor_Transition |
|
231 |
|
232 |
|
233 // ______________________________________________________________________________ |
|
234 // |
|
235 /** |
|
236 @internal |
|
237 @class CFilterConfigurationIterator_First_Transition |
|
238 @Depends CFilterConfigurationIterator & CTransition |
|
239 |
|
240 Comments : Transition test of the CFilterConfigurationIterator::First method. |
|
241 */ |
|
242 class CFilterConfigurationIterator_First_Transition : public CTransitionType |
|
243 { |
|
244 public: |
|
245 /** |
|
246 @fn CFilterConfigurationIterator_First_Transition(CUnitTestContext& aUTContext, |
|
247 TTransitionValidator& aValidator) |
|
248 Intended Usage : Standard c'tor method. |
|
249 Error Condition : None. |
|
250 @since 7.0 |
|
251 @param aUTContext The context this transition is operating in. |
|
252 @param aValidator Used for checking the pre & post conditions of the test object. |
|
253 @pre None. |
|
254 @post CFilterConfigurationIterator_First_Transition is fully constructed. |
|
255 */ |
|
256 CFilterConfigurationIterator_First_Transition(CUnitTestContext& aUTContext, |
|
257 TTransitionValidator& aValidator); |
|
258 /** |
|
259 @fn TransitMethodL() |
|
260 Intended Usage : To execute the CFilterConfigurationIterator::First method for the test harness. |
|
261 Error Condition : Leaves with an error code. |
|
262 @exception KErrNoMemory, (@see CFilterConfigurationIterator::First) |
|
263 @since 7.0 |
|
264 @return None |
|
265 @pre CFilterConfigurationIterator_First_Transition is fully constructed. |
|
266 @post No change in the CFilterConfigurationIterator_First_Transition apart |
|
267 from iFilterConfigurationIterator, which may have changed state. |
|
268 (@see CFilterConfigurationIterator::First post-condition) for iFilterConfigurationIterator's new state. |
|
269 */ |
|
270 inline void TransitMethodL(); |
|
271 |
|
272 /** |
|
273 @fn Context() const |
|
274 Intended Usage : To provide access to the unit test context cast to the correct type. |
|
275 Error Condition : None. |
|
276 @since 7.0 |
|
277 @return The unit test context cast to a CFilterConfigurationIterator_UnitTestContext |
|
278 @pre iUTContext is a valid CFilterConfigurationIterator_UnitTestContext. |
|
279 @post No change in the CFilterConfigurationIterator_First_Transition |
|
280 */ |
|
281 inline CFilterConfigurationIterator_UnitTestContext& Context() const; |
|
282 }; // CFilterConfigurationIterator_First_Transition |
|
283 |
|
284 // ______________________________________________________________________________ |
|
285 // |
|
286 /** |
|
287 @internal |
|
288 @class CFilterConfigurationIterator_AtStart_Transition |
|
289 @Depends CFilterConfigurationIterator & CTransition |
|
290 |
|
291 Comments : Transition test of the CFilterConfigurationIterator::AtStart method. |
|
292 */ |
|
293 class CFilterConfigurationIterator_AtStart_Transition : public CTransitionType |
|
294 { |
|
295 public: |
|
296 /** |
|
297 @fn CFilterConfigurationIterator_AtStart_Transition(CUnitTestContext& aUTContext, |
|
298 TTransitionValidator& aValidator) |
|
299 Intended Usage : Standard c'tor method. |
|
300 Error Condition : None. |
|
301 @since 7.0 |
|
302 @param aUTContext The context this transition is operating in. |
|
303 @param aValidator Used for checking the pre & post conditions of the test object. |
|
304 @pre None. |
|
305 @post CFilterConfigurationIterator_AtStart_Transition is fully constructed. |
|
306 */ |
|
307 CFilterConfigurationIterator_AtStart_Transition(CUnitTestContext& aUTContext, |
|
308 TTransitionValidator& aValidator); |
|
309 /** |
|
310 @fn TransitMethodL() |
|
311 Intended Usage : To execute the CFilterConfigurationIterator::AtStart method for the test harness. |
|
312 Error Condition : Leaves with an error code. |
|
313 @exception KErrNoMemory, (@see CFilterConfigurationIterator::AtStart) |
|
314 @since 7.0 |
|
315 @return None |
|
316 @pre CFilterConfigurationIterator_AtStart_Transition is fully constructed. |
|
317 @post No change in the CFilterConfigurationIterator_AtStart_Transition apart |
|
318 from iFilterConfigurationIterator, which may have changed state. |
|
319 (@see CFilterConfigurationIterator::AtStart post-condition) for iFilterConfigurationIterator's new state. |
|
320 */ |
|
321 inline void TransitMethodL(); |
|
322 |
|
323 /** |
|
324 @fn Context() const |
|
325 Intended Usage : To provide access to the unit test context cast to the correct type. |
|
326 Error Condition : None. |
|
327 @since 7.0 |
|
328 @return The unit test context cast to a CFilterConfigurationIterator_UnitTestContext |
|
329 @pre iUTContext is a valid CFilterConfigurationIterator_UnitTestContext. |
|
330 @post No change in the CFilterConfigurationIterator_AtStart_Transition |
|
331 */ |
|
332 inline CFilterConfigurationIterator_UnitTestContext& Context() const; |
|
333 }; // CFilterConfigurationIterator_AtStart_Transition |
|
334 |
|
335 // ______________________________________________________________________________ |
|
336 // |
|
337 /** |
|
338 @internal |
|
339 @class CFilterConfigurationIterator_Next_Transition |
|
340 @Depends CFilterConfigurationIterator & CTransition |
|
341 |
|
342 Comments : Transition test of the CFilterConfigurationIterator::Next method. |
|
343 */ |
|
344 class CFilterConfigurationIterator_Next_Transition : public CTransitionType |
|
345 { |
|
346 public: |
|
347 /** |
|
348 @fn CFilterConfigurationIterator_Next_Transition(CUnitTestContext& aUTContext, |
|
349 TTransitionValidator& aValidator) |
|
350 Intended Usage : Standard c'tor method. |
|
351 Error Condition : None. |
|
352 @since 7.0 |
|
353 @param aUTContext The context this transition is operating in. |
|
354 @param aValidator Used for checking the pre & post conditions of the test object. |
|
355 @pre None. |
|
356 @post CFilterConfigurationIterator_Next_Transition is fully constructed. |
|
357 */ |
|
358 CFilterConfigurationIterator_Next_Transition(CUnitTestContext& aUTContext, |
|
359 TTransitionValidator& aValidator); |
|
360 /** |
|
361 @fn TransitMethodL() |
|
362 Intended Usage : To execute the CFilterConfigurationIterator::Next method for the test harness. |
|
363 Error Condition : Leaves with an error code. |
|
364 @exception KErrNoMemory, (@see CFilterConfigurationIterator::Next) |
|
365 @since 7.0 |
|
366 @return None |
|
367 @pre CFilterConfigurationIterator_Next_Transition is fully constructed. |
|
368 @post No change in the CFilterConfigurationIterator_Next_Transition apart |
|
369 from iFilterConfigurationIterator, which may have changed state. |
|
370 (@see CFilterConfigurationIterator::Next post-condition) for iFilterConfigurationIterator's new state. |
|
371 */ |
|
372 inline void TransitMethodL(); |
|
373 |
|
374 /** |
|
375 @fn Context() const |
|
376 Intended Usage : To provide access to the unit test context cast to the correct type. |
|
377 Error Condition : None. |
|
378 @since 7.0 |
|
379 @return The unit test context cast to a CFilterConfigurationIterator_UnitTestContext |
|
380 @pre iUTContext is a valid CFilterConfigurationIterator_UnitTestContext. |
|
381 @post No change in the CFilterConfigurationIterator_Next_Transition |
|
382 */ |
|
383 inline CFilterConfigurationIterator_UnitTestContext& Context() const; |
|
384 }; // CFilterConfigurationIterator_Next_Transition |
|
385 |
|
386 // ______________________________________________________________________________ |
|
387 // |
|
388 /** |
|
389 @internal |
|
390 @class CFilterConfigurationIterator_CurrentFilterInformation_Transition |
|
391 @Depends CFilterConfigurationIterator & CTransition |
|
392 |
|
393 Comments : Transition test of the CFilterConfigurationIterator::CurrentFilterInformation method. |
|
394 */ |
|
395 class CFilterConfigurationIterator_CurrentFilterInformation_Transition : public CTransitionType |
|
396 { |
|
397 public: |
|
398 /** |
|
399 @fn CFilterConfigurationIterator_CurrentFilterInformation_Transition(CUnitTestContext& aUTContext, |
|
400 TTransitionValidator& aValidator) |
|
401 Intended Usage : Standard c'tor method. |
|
402 Error Condition : None. |
|
403 @since 7.0 |
|
404 @param aUTContext The context this transition is operating in. |
|
405 @param aValidator Used for checking the pre & post conditions of the test object. |
|
406 @pre None. |
|
407 @post CFilterConfigurationIterator_CurrentFilterInformation_Transition is fully constructed. |
|
408 */ |
|
409 CFilterConfigurationIterator_CurrentFilterInformation_Transition(CUnitTestContext& aUTContext, |
|
410 TTransitionValidator& aValidator); |
|
411 /** |
|
412 @fn TransitMethodL() |
|
413 Intended Usage : To execute the CFilterConfigurationIterator::CurrentFilterInformation method for the test harness. |
|
414 Error Condition : Leaves with an error code. |
|
415 @exception KErrNoMemory, (@see CFilterConfigurationIterator::CurrentFilterInformation) |
|
416 @since 7.0 |
|
417 @return None |
|
418 @pre CFilterConfigurationIterator_CurrentFilterInformation_Transition is fully constructed. |
|
419 @post No change in the CFilterConfigurationIterator_CurrentFilterInformation_Transition apart |
|
420 from iFilterConfigurationIterator, which may have changed state. |
|
421 (@see CFilterConfigurationIterator::CurrentFilterInformation post-condition) for iFilterConfigurationIterator's new state. |
|
422 */ |
|
423 inline void TransitMethodL(); |
|
424 |
|
425 /** |
|
426 @fn Context() const |
|
427 Intended Usage : To provide access to the unit test context cast to the correct type. |
|
428 Error Condition : None. |
|
429 @since 7.0 |
|
430 @return The unit test context cast to a CFilterConfigurationIterator_UnitTestContext |
|
431 @pre iUTContext is a valid CFilterConfigurationIterator_UnitTestContext. |
|
432 @post No change in the CFilterConfigurationIterator_CurrentFilterInformation_Transition |
|
433 */ |
|
434 inline CFilterConfigurationIterator_UnitTestContext& Context() const; |
|
435 }; // CFilterConfigurationIterator_CurrentFilterInformation_Transition |
|
436 |
|
437 // ______________________________________________________________________________ |
|
438 // |
|
439 /** |
|
440 @internal |
|
441 @class CFilterConfigurationIterator_FindByDataType_Transition |
|
442 @Depends CFilterConfigurationIterator & CTransition |
|
443 |
|
444 Comments : Transition test of the CFilterConfigurationIterator::FindByDataType method. |
|
445 */ |
|
446 class CFilterConfigurationIterator_FindByDataType_Transition : public CTransitionType |
|
447 { |
|
448 public: |
|
449 /** |
|
450 @fn CFilterConfigurationIterator_FindByDataType_Transition(CUnitTestContext& aUTContext, |
|
451 TTransitionValidator& aValidator) |
|
452 Intended Usage : Standard c'tor method. |
|
453 Error Condition : None. |
|
454 @since 7.0 |
|
455 @param aUTContext The context this transition is operating in. |
|
456 @param aValidator Used for checking the pre & post conditions of the test object. |
|
457 @pre None. |
|
458 @post CFilterConfigurationIterator_FindByDataType_Transition is fully constructed. |
|
459 */ |
|
460 CFilterConfigurationIterator_FindByDataType_Transition(CUnitTestContext& aUTContext, |
|
461 TTransitionValidator& aValidator); |
|
462 /** |
|
463 @fn TransitMethodL() |
|
464 Intended Usage : To execute the CFilterConfigurationIterator::FindByDataType method for the test harness. |
|
465 Error Condition : Leaves with an error code. |
|
466 @exception KErrNoMemory, (@see CFilterConfigurationIterator::FindByDataType) |
|
467 @since 7.0 |
|
468 @return None |
|
469 @pre CFilterConfigurationIterator_FindByDataType_Transition is fully constructed. |
|
470 @post No change in the CFilterConfigurationIterator_FindByDataType_Transition apart |
|
471 from iFilterConfigurationIterator, which may have changed state. |
|
472 (@see CFilterConfigurationIterator::FindByDataType post-condition) for iFilterConfigurationIterator's new state. |
|
473 */ |
|
474 inline void TransitMethodL(); |
|
475 |
|
476 /** |
|
477 @fn Context() const |
|
478 Intended Usage : To provide access to the unit test context cast to the correct type. |
|
479 Error Condition : None. |
|
480 @since 7.0 |
|
481 @return The unit test context cast to a CFilterConfigurationIterator_UnitTestContext |
|
482 @pre iUTContext is a valid CFilterConfigurationIterator_UnitTestContext. |
|
483 @post No change in the CFilterConfigurationIterator_FindByDataType_Transition |
|
484 */ |
|
485 inline CFilterConfigurationIterator_UnitTestContext& Context() const; |
|
486 }; // CFilterConfigurationIterator_FindByDataType_Transition |
|
487 |
|
488 // ______________________________________________________________________________ |
|
489 // |
|
490 /** |
|
491 @internal |
|
492 @class CFilterConfigurationIterator_ListProtocols_Transition |
|
493 @Depends CFilterConfigurationIterator & CTransition |
|
494 |
|
495 Comments : Transition test of the CFilterConfigurationIterator::ListProtocols method. |
|
496 */ |
|
497 class CFilterConfigurationIterator_ListProtocols_Transition : public CTransition |
|
498 { |
|
499 public: |
|
500 /** |
|
501 @fn CFilterConfigurationIterator_ListProtocols_Transition(CUnitTestContext& aUTContext, |
|
502 TTransitionValidator& aValidator) |
|
503 Intended Usage : Standard c'tor method. |
|
504 Error Condition : None. |
|
505 @since 7.0 |
|
506 @param aUTContext The context this transition is operating in. |
|
507 @param aValidator Used for checking the pre & post conditions of the test object. |
|
508 @pre None. |
|
509 @post CFilterConfigurationIterator_ListProtocols_Transition is fully constructed. |
|
510 */ |
|
511 CFilterConfigurationIterator_ListProtocols_Transition(CUnitTestContext& aUTContext, |
|
512 TTransitionValidator& aValidator); |
|
513 /** |
|
514 @fn TransitMethodL() |
|
515 Intended Usage : To execute the CFilterConfigurationIterator::ListProtocols method for the test harness. |
|
516 Error Condition : Leaves with an error code. |
|
517 @exception KErrNoMemory, (@see CFilterConfigurationIterator::ListProtocols) |
|
518 @since 7.0 |
|
519 @return None |
|
520 @pre CFilterConfigurationIterator_ListProtocols_Transition is fully constructed. |
|
521 @post No change in the CFilterConfigurationIterator_ListProtocols_Transition apart |
|
522 from iFilterConfigurationIterator, which may have changed state. |
|
523 (@see CFilterConfigurationIterator::ListProtocols post-condition) for iFilterConfigurationIterator's new state. |
|
524 */ |
|
525 inline void TransitMethodL(); |
|
526 |
|
527 /** |
|
528 @fn Context() const |
|
529 Intended Usage : To provide access to the unit test context cast to the correct type. |
|
530 Error Condition : None. |
|
531 @since 7.0 |
|
532 @return The unit test context cast to a CFilterConfigurationIterator_UnitTestContext |
|
533 @pre iUTContext is a valid CFilterConfigurationIterator_UnitTestContext. |
|
534 @post No change in the CFilterConfigurationIterator_ListProtocols_Transition |
|
535 */ |
|
536 inline CFilterConfigurationIterator_UnitTestContext& Context() const; |
|
537 }; // CFilterConfigurationIterator_ListProtocols_Transition |
|
538 |
|
539 #include "FilterConfigurationIteratorTransitions.inl" |
|
540 |
|
541 #include "FilterConfigurationIteratorUnitTestContext.inl" |
|
542 |
|
543 #endif // __FILTERCONFIGURATIONITERATORTRANSITIONS_H__ |
|
544 |