|
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 unit test class definitions for the CWspHeaderWriter class. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file WspHeaderWriterUnitTest.h |
|
20 */ |
|
21 #ifndef __WSPHEADERWRITERUNITTEST_H__ |
|
22 #define __WSPHEADERWRITERUNITTEST_H__ |
|
23 |
|
24 #include "TestBedDefinitions.h" |
|
25 #include "WspHeaderWriterStateAccessor.h" |
|
26 #include "WspHeaderWriterTransitionValidation.h" |
|
27 #include "WspHeaderWriterTransitions.h" |
|
28 |
|
29 // ______________________________________________________________________________ |
|
30 // |
|
31 /** |
|
32 @internal |
|
33 @class CWspHeaderWriter_CreateAndDestroy_UnitTest |
|
34 @Depends CWspHeaderWriter & CUnitTest |
|
35 |
|
36 Comments : Unit Test for CreateAndDestroy on CWspHeaderWriter, the class under test. |
|
37 */ |
|
38 class CWspHeaderWriter_CreateAndDestroy_UnitTest : public CUnitTest |
|
39 { |
|
40 public: |
|
41 /** |
|
42 @fn NewL(CDataLogger& aDataLogger, |
|
43 MUnitTestObserver& aObserver) |
|
44 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
45 cleanup stack. |
|
46 Error Condition : Leaves with the error code. |
|
47 @exceptions KErrNoMemory |
|
48 @since 7.0 |
|
49 @param aDataLogger The output logging object. |
|
50 @param aObserver The observer of this UnitTest. |
|
51 @return CWspHeaderWriter_CreateAndDestroy_UnitTest* The constructed object. |
|
52 @pre None. |
|
53 @post CWspHeaderWriter_CreateAndDestroy_UnitTest is fully constructed, and initialized. |
|
54 */ |
|
55 static CWspHeaderWriter_CreateAndDestroy_UnitTest* NewL(CDataLogger& aDataLogger, |
|
56 MUnitTestObserver& aObserver); |
|
57 |
|
58 /** |
|
59 @fn RunError(TInt aError) |
|
60 Intended Usage : Intercept the panic caused by a RunL leave, |
|
61 to restore the CWspHeaderWriter_CreateAndDestroy_UnitTest |
|
62 object to a sensible state. |
|
63 (called by the Active Scheduler immediately before the Panic). |
|
64 Error Condition : @see CUnitTest::RunError(). |
|
65 @since 7.0 |
|
66 @return KErrNone if cleanup successful, otherwise |
|
67 @see CUnitTest::RunError() |
|
68 @pre CWspHeaderWriter_CreateAndDestroy_UnitTest is fully constructed, and initialized. |
|
69 @post The object has been restored to a sensible state. |
|
70 */ |
|
71 inline TInt RunError(TInt aError); |
|
72 |
|
73 /** |
|
74 @fn ~CWspHeaderWriter_CreateAndDestroy_UnitTest() |
|
75 Intended Usage : Standard Destructor. |
|
76 Error Condition : None. |
|
77 @since 7.0 |
|
78 @pre CWspHeaderWriter_CreateAndDestroy_UnitTest is fully constructed. |
|
79 @post CWspHeaderWriter_CreateAndDestroy_UnitTest is fully destroyed. |
|
80 */ |
|
81 ~CWspHeaderWriter_CreateAndDestroy_UnitTest(); |
|
82 |
|
83 private: |
|
84 /** |
|
85 @fn CWspHeaderWriter_CreateAndDestroy_UnitTest(CDataLogger& aDataLogger, |
|
86 MUnitTestObserver& aObserver) |
|
87 Intended Usage : Default constructor. |
|
88 Error Condition : None. |
|
89 @since 7.0 |
|
90 @param aDataLogger The output logging object. |
|
91 @param aObserver The observer of this UnitTest. |
|
92 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
93 @pre None. |
|
94 @post CWspHeaderWriter_CreateAndDestroy_UnitTest is fully constructed. |
|
95 */ |
|
96 inline CWspHeaderWriter_CreateAndDestroy_UnitTest(CDataLogger& aDataLogger, |
|
97 MUnitTestObserver& aObserver); |
|
98 |
|
99 /** |
|
100 @fn void ConstructL() |
|
101 Intended Usage : Second phase of safe two phase construction, |
|
102 to complete the object initialisation. |
|
103 Error Condition : Leaves with an error code. |
|
104 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
105 @since 7.0 |
|
106 @return None |
|
107 @pre CWspHeaderWriter_CreateAndDestroy_UnitTest is fully constructed. |
|
108 @post CWspHeaderWriter_CreateAndDestroy_UnitTest is fully initialized. |
|
109 */ |
|
110 void ConstructL(); |
|
111 |
|
112 /** |
|
113 The context of the Unit Test. |
|
114 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
115 */ |
|
116 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
117 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
118 /* C'tor, d'tor, and method transition validators */ |
|
119 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
120 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
121 }; // CWspHeaderWriter_CreateAndDestroy_UnitTest |
|
122 |
|
123 // ______________________________________________________________________________ |
|
124 // |
|
125 /** |
|
126 @internal |
|
127 @class CWspHeaderWriter_UserAgent_UnitTest |
|
128 @Depends CWspHeaderWriter & CUnitTest |
|
129 |
|
130 Comments : Unit Test for UserAgent on CWspHeaderWriter, the class under test. |
|
131 */ |
|
132 class CWspHeaderWriter_UserAgent_UnitTest : public CUnitTest |
|
133 { |
|
134 public: |
|
135 /** |
|
136 @fn NewL(CDataLogger& aDataLogger, |
|
137 MUnitTestObserver& aObserver) |
|
138 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
139 cleanup stack. |
|
140 Error Condition : Leaves with the error code. |
|
141 @exceptions KErrNoMemory |
|
142 @since 7.0 |
|
143 @param aDataLogger The output logging object. |
|
144 @param aObserver The observer of this UnitTest. |
|
145 @return CWspHeaderWriter_UserAgent_UnitTest* The constructed object. |
|
146 @pre None. |
|
147 @post CWspHeaderWriter_UserAgent_UnitTest is fully constructed, and initialized. |
|
148 */ |
|
149 static CWspHeaderWriter_UserAgent_UnitTest* NewL(CDataLogger& aDataLogger, |
|
150 MUnitTestObserver& aObserver); |
|
151 |
|
152 /** |
|
153 @fn RunError(TInt aError) |
|
154 Intended Usage : Intercept the panic caused by a RunL leave, |
|
155 to restore the CWspHeaderWriter_UserAgent_UnitTest |
|
156 object to a sensible state. |
|
157 (called by the Active Scheduler immediately before the Panic). |
|
158 Error Condition : @see CUnitTest::RunError(). |
|
159 @since 7.0 |
|
160 @return KErrNone if cleanup successful, otherwise |
|
161 @see CUnitTest::RunError() |
|
162 @pre CWspHeaderWriter_UserAgent_UnitTest is fully constructed, and initialized. |
|
163 @post The object has been restored to a sensible state. |
|
164 */ |
|
165 inline TInt RunError(TInt aError); |
|
166 |
|
167 /** |
|
168 @fn ~CWspHeaderWriter_UserAgent_UnitTest() |
|
169 Intended Usage : Standard Destructor. |
|
170 Error Condition : None. |
|
171 @since 7.0 |
|
172 @pre CWspHeaderWriter_UserAgent_UnitTest is fully constructed. |
|
173 @post CWspHeaderWriter_UserAgent_UnitTest is fully destroyed. |
|
174 */ |
|
175 ~CWspHeaderWriter_UserAgent_UnitTest(); |
|
176 |
|
177 private: |
|
178 /** |
|
179 @fn CWspHeaderWriter_UserAgent_UnitTest(CDataLogger& aDataLogger, |
|
180 MUnitTestObserver& aObserver) |
|
181 Intended Usage : Default constructor. |
|
182 Error Condition : None. |
|
183 @since 7.0 |
|
184 @param aDataLogger The output logging object. |
|
185 @param aObserver The observer of this UnitTest. |
|
186 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
187 @pre None. |
|
188 @post CWspHeaderWriter_UserAgent_UnitTest is fully constructed. |
|
189 */ |
|
190 inline CWspHeaderWriter_UserAgent_UnitTest(CDataLogger& aDataLogger, |
|
191 MUnitTestObserver& aObserver); |
|
192 |
|
193 /** |
|
194 @fn void ConstructL() |
|
195 Intended Usage : Second phase of safe two phase construction, |
|
196 to complete the object initialisation. |
|
197 Error Condition : Leaves with an error code. |
|
198 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
199 @since 7.0 |
|
200 @return None |
|
201 @pre CWspHeaderWriter_UserAgent_UnitTest is fully constructed. |
|
202 @post CWspHeaderWriter_UserAgent_UnitTest is fully initialized. |
|
203 */ |
|
204 void ConstructL(); |
|
205 |
|
206 /** |
|
207 The context of the Unit Test. |
|
208 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
209 */ |
|
210 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
211 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
212 /* C'tor, d'tor, and method transition validators */ |
|
213 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
214 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iUserAgentValidator; |
|
215 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
216 }; // CWspHeaderWriter_UserAgent_UnitTest |
|
217 |
|
218 // ______________________________________________________________________________ |
|
219 // |
|
220 /** |
|
221 @internal |
|
222 @class CWspHeaderWriter_UserAgentNullText_UnitTest |
|
223 @Depends CWspHeaderWriter & CUnitTest |
|
224 |
|
225 Comments : Unit Test for UserAgentNullText on CWspHeaderWriter, the class under test. |
|
226 */ |
|
227 class CWspHeaderWriter_UserAgentNullText_UnitTest : public CUnitTest |
|
228 { |
|
229 public: |
|
230 /** |
|
231 @fn NewL(CDataLogger& aDataLogger, |
|
232 MUnitTestObserver& aObserver) |
|
233 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
234 cleanup stack. |
|
235 Error Condition : Leaves with the error code. |
|
236 @exceptions KErrNoMemory |
|
237 @since 7.0 |
|
238 @param aDataLogger The output logging object. |
|
239 @param aObserver The observer of this UnitTest. |
|
240 @return CWspHeaderWriter_UserAgentNullText_UnitTest* The constructed object. |
|
241 @pre None. |
|
242 @post CWspHeaderWriter_UserAgentNullText_UnitTest is fully constructed, and initialized. |
|
243 */ |
|
244 static CWspHeaderWriter_UserAgentNullText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
245 MUnitTestObserver& aObserver); |
|
246 |
|
247 /** |
|
248 @fn RunError(TInt aError) |
|
249 Intended Usage : Intercept the panic caused by a RunL leave, |
|
250 to restore the CWspHeaderWriter_UserAgentNullText_UnitTest |
|
251 object to a sensible state. |
|
252 (called by the Active Scheduler immediately before the Panic). |
|
253 Error Condition : @see CUnitTest::RunError(). |
|
254 @since 7.0 |
|
255 @return KErrNone if cleanup successful, otherwise |
|
256 @see CUnitTest::RunError() |
|
257 @pre CWspHeaderWriter_UserAgentNullText_UnitTest is fully constructed, and initialized. |
|
258 @post The object has been restored to a sensible state. |
|
259 */ |
|
260 inline TInt RunError(TInt aError); |
|
261 |
|
262 /** |
|
263 @fn ~CWspHeaderWriter_UserAgentNullText_UnitTest() |
|
264 Intended Usage : Standard Destructor. |
|
265 Error Condition : None. |
|
266 @since 7.0 |
|
267 @pre CWspHeaderWriter_UserAgentNullText_UnitTest is fully constructed. |
|
268 @post CWspHeaderWriter_UserAgentNullText_UnitTest is fully destroyed. |
|
269 */ |
|
270 ~CWspHeaderWriter_UserAgentNullText_UnitTest(); |
|
271 |
|
272 private: |
|
273 /** |
|
274 @fn CWspHeaderWriter_UserAgentNullText_UnitTest(CDataLogger& aDataLogger, |
|
275 MUnitTestObserver& aObserver) |
|
276 Intended Usage : Default constructor. |
|
277 Error Condition : None. |
|
278 @since 7.0 |
|
279 @param aDataLogger The output logging object. |
|
280 @param aObserver The observer of this UnitTest. |
|
281 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
282 @pre None. |
|
283 @post CWspHeaderWriter_UserAgentNullText_UnitTest is fully constructed. |
|
284 */ |
|
285 inline CWspHeaderWriter_UserAgentNullText_UnitTest(CDataLogger& aDataLogger, |
|
286 MUnitTestObserver& aObserver); |
|
287 |
|
288 /** |
|
289 @fn void ConstructL() |
|
290 Intended Usage : Second phase of safe two phase construction, |
|
291 to complete the object initialisation. |
|
292 Error Condition : Leaves with an error code. |
|
293 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
294 @since 7.0 |
|
295 @return None |
|
296 @pre CWspHeaderWriter_UserAgentNullText_UnitTest is fully constructed. |
|
297 @post CWspHeaderWriter_UserAgentNullText_UnitTest is fully initialized. |
|
298 */ |
|
299 void ConstructL(); |
|
300 |
|
301 /** |
|
302 The context of the Unit Test. |
|
303 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
304 */ |
|
305 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
306 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
307 /* C'tor, d'tor, and method transition validators */ |
|
308 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
309 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iUserAgentNullTextValidator; |
|
310 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
311 }; // CWspHeaderWriter_UserAgentNullText_UnitTest |
|
312 |
|
313 // ______________________________________________________________________________ |
|
314 // |
|
315 /** |
|
316 @internal |
|
317 @class CWspHeaderWriter_AuthorizationBasic_UnitTest |
|
318 @Depends CWspHeaderWriter & CUnitTest |
|
319 |
|
320 Comments : Unit Test for AuthorizationBasic on CWspHeaderWriter, the class under test. |
|
321 */ |
|
322 class CWspHeaderWriter_AuthorizationBasic_UnitTest : public CUnitTest |
|
323 { |
|
324 public: |
|
325 /** |
|
326 @fn NewL(CDataLogger& aDataLogger, |
|
327 MUnitTestObserver& aObserver) |
|
328 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
329 cleanup stack. |
|
330 Error Condition : Leaves with the error code. |
|
331 @exceptions KErrNoMemory |
|
332 @since 7.0 |
|
333 @param aDataLogger The output logging object. |
|
334 @param aObserver The observer of this UnitTest. |
|
335 @return CWspHeaderWriter_AuthorizationBasic_UnitTest* The constructed object. |
|
336 @pre None. |
|
337 @post CWspHeaderWriter_AuthorizationBasic_UnitTest is fully constructed, and initialized. |
|
338 */ |
|
339 static CWspHeaderWriter_AuthorizationBasic_UnitTest* NewL(CDataLogger& aDataLogger, |
|
340 MUnitTestObserver& aObserver); |
|
341 |
|
342 /** |
|
343 @fn RunError(TInt aError) |
|
344 Intended Usage : Intercept the panic caused by a RunL leave, |
|
345 to restore the CWspHeaderWriter_AuthorizationBasic_UnitTest |
|
346 object to a sensible state. |
|
347 (called by the Active Scheduler immediately before the Panic). |
|
348 Error Condition : @see CUnitTest::RunError(). |
|
349 @since 7.0 |
|
350 @return KErrNone if cleanup successful, otherwise |
|
351 @see CUnitTest::RunError() |
|
352 @pre CWspHeaderWriter_AuthorizationBasic_UnitTest is fully constructed, and initialized. |
|
353 @post The object has been restored to a sensible state. |
|
354 */ |
|
355 inline TInt RunError(TInt aError); |
|
356 |
|
357 /** |
|
358 @fn ~CWspHeaderWriter_AuthorizationBasic_UnitTest() |
|
359 Intended Usage : Standard Destructor. |
|
360 Error Condition : None. |
|
361 @since 7.0 |
|
362 @pre CWspHeaderWriter_AuthorizationBasic_UnitTest is fully constructed. |
|
363 @post CWspHeaderWriter_AuthorizationBasic_UnitTest is fully destroyed. |
|
364 */ |
|
365 ~CWspHeaderWriter_AuthorizationBasic_UnitTest(); |
|
366 |
|
367 private: |
|
368 /** |
|
369 @fn CWspHeaderWriter_AuthorizationBasic_UnitTest(CDataLogger& aDataLogger, |
|
370 MUnitTestObserver& aObserver) |
|
371 Intended Usage : Default constructor. |
|
372 Error Condition : None. |
|
373 @since 7.0 |
|
374 @param aDataLogger The output logging object. |
|
375 @param aObserver The observer of this UnitTest. |
|
376 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
377 @pre None. |
|
378 @post CWspHeaderWriter_AuthorizationBasic_UnitTest is fully constructed. |
|
379 */ |
|
380 inline CWspHeaderWriter_AuthorizationBasic_UnitTest(CDataLogger& aDataLogger, |
|
381 MUnitTestObserver& aObserver); |
|
382 |
|
383 /** |
|
384 @fn void ConstructL() |
|
385 Intended Usage : Second phase of safe two phase construction, |
|
386 to complete the object initialisation. |
|
387 Error Condition : Leaves with an error code. |
|
388 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
389 @since 7.0 |
|
390 @return None |
|
391 @pre CWspHeaderWriter_AuthorizationBasic_UnitTest is fully constructed. |
|
392 @post CWspHeaderWriter_AuthorizationBasic_UnitTest is fully initialized. |
|
393 */ |
|
394 void ConstructL(); |
|
395 |
|
396 /** |
|
397 The context of the Unit Test. |
|
398 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
399 */ |
|
400 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
401 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
402 /* C'tor, d'tor, and method transition validators */ |
|
403 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
404 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAuthorizationBasicValidator; |
|
405 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
406 }; // CWspHeaderWriter_AuthorizationBasic_UnitTest |
|
407 |
|
408 // ______________________________________________________________________________ |
|
409 // |
|
410 /** |
|
411 @internal |
|
412 @class CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest |
|
413 @Depends CWspHeaderWriter & CUnitTest |
|
414 |
|
415 Comments : Unit Test for AuthorizationBasicNullUser on CWspHeaderWriter, the class under test. |
|
416 */ |
|
417 class CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest : public CUnitTest |
|
418 { |
|
419 public: |
|
420 /** |
|
421 @fn NewL(CDataLogger& aDataLogger, |
|
422 MUnitTestObserver& aObserver) |
|
423 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
424 cleanup stack. |
|
425 Error Condition : Leaves with the error code. |
|
426 @exceptions KErrNoMemory |
|
427 @since 7.0 |
|
428 @param aDataLogger The output logging object. |
|
429 @param aObserver The observer of this UnitTest. |
|
430 @return CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest* The constructed object. |
|
431 @pre None. |
|
432 @post CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest is fully constructed, and initialized. |
|
433 */ |
|
434 static CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest* NewL(CDataLogger& aDataLogger, |
|
435 MUnitTestObserver& aObserver); |
|
436 |
|
437 /** |
|
438 @fn RunError(TInt aError) |
|
439 Intended Usage : Intercept the panic caused by a RunL leave, |
|
440 to restore the CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest |
|
441 object to a sensible state. |
|
442 (called by the Active Scheduler immediately before the Panic). |
|
443 Error Condition : @see CUnitTest::RunError(). |
|
444 @since 7.0 |
|
445 @return KErrNone if cleanup successful, otherwise |
|
446 @see CUnitTest::RunError() |
|
447 @pre CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest is fully constructed, and initialized. |
|
448 @post The object has been restored to a sensible state. |
|
449 */ |
|
450 inline TInt RunError(TInt aError); |
|
451 |
|
452 /** |
|
453 @fn ~CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest() |
|
454 Intended Usage : Standard Destructor. |
|
455 Error Condition : None. |
|
456 @since 7.0 |
|
457 @pre CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest is fully constructed. |
|
458 @post CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest is fully destroyed. |
|
459 */ |
|
460 ~CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest(); |
|
461 |
|
462 private: |
|
463 /** |
|
464 @fn CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest(CDataLogger& aDataLogger, |
|
465 MUnitTestObserver& aObserver) |
|
466 Intended Usage : Default constructor. |
|
467 Error Condition : None. |
|
468 @since 7.0 |
|
469 @param aDataLogger The output logging object. |
|
470 @param aObserver The observer of this UnitTest. |
|
471 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
472 @pre None. |
|
473 @post CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest is fully constructed. |
|
474 */ |
|
475 inline CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest(CDataLogger& aDataLogger, |
|
476 MUnitTestObserver& aObserver); |
|
477 |
|
478 /** |
|
479 @fn void ConstructL() |
|
480 Intended Usage : Second phase of safe two phase construction, |
|
481 to complete the object initialisation. |
|
482 Error Condition : Leaves with an error code. |
|
483 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
484 @since 7.0 |
|
485 @return None |
|
486 @pre CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest is fully constructed. |
|
487 @post CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest is fully initialized. |
|
488 */ |
|
489 void ConstructL(); |
|
490 |
|
491 /** |
|
492 The context of the Unit Test. |
|
493 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
494 */ |
|
495 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
496 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
497 /* C'tor, d'tor, and method transition validators */ |
|
498 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
499 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAuthorizationBasicNullUserValidator; |
|
500 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
501 }; // CWspHeaderWriter_AuthorizationBasicNullUser_UnitTest |
|
502 |
|
503 // ______________________________________________________________________________ |
|
504 // |
|
505 /** |
|
506 @internal |
|
507 @class CWspHeaderWriter_BasicNullPassword_UnitTest |
|
508 @Depends CWspHeaderWriter & CUnitTest |
|
509 |
|
510 Comments : Unit Test for BasicNullPassword on CWspHeaderWriter, the class under test. |
|
511 */ |
|
512 class CWspHeaderWriter_BasicNullPassword_UnitTest : public CUnitTest |
|
513 { |
|
514 public: |
|
515 /** |
|
516 @fn NewL(CDataLogger& aDataLogger, |
|
517 MUnitTestObserver& aObserver) |
|
518 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
519 cleanup stack. |
|
520 Error Condition : Leaves with the error code. |
|
521 @exceptions KErrNoMemory |
|
522 @since 7.0 |
|
523 @param aDataLogger The output logging object. |
|
524 @param aObserver The observer of this UnitTest. |
|
525 @return CWspHeaderWriter_BasicNullPassword_UnitTest* The constructed object. |
|
526 @pre None. |
|
527 @post CWspHeaderWriter_BasicNullPassword_UnitTest is fully constructed, and initialized. |
|
528 */ |
|
529 static CWspHeaderWriter_BasicNullPassword_UnitTest* NewL(CDataLogger& aDataLogger, |
|
530 MUnitTestObserver& aObserver); |
|
531 |
|
532 /** |
|
533 @fn RunError(TInt aError) |
|
534 Intended Usage : Intercept the panic caused by a RunL leave, |
|
535 to restore the CWspHeaderWriter_BasicNullPassword_UnitTest |
|
536 object to a sensible state. |
|
537 (called by the Active Scheduler immediately before the Panic). |
|
538 Error Condition : @see CUnitTest::RunError(). |
|
539 @since 7.0 |
|
540 @return KErrNone if cleanup successful, otherwise |
|
541 @see CUnitTest::RunError() |
|
542 @pre CWspHeaderWriter_BasicNullPassword_UnitTest is fully constructed, and initialized. |
|
543 @post The object has been restored to a sensible state. |
|
544 */ |
|
545 inline TInt RunError(TInt aError); |
|
546 |
|
547 /** |
|
548 @fn ~CWspHeaderWriter_BasicNullPassword_UnitTest() |
|
549 Intended Usage : Standard Destructor. |
|
550 Error Condition : None. |
|
551 @since 7.0 |
|
552 @pre CWspHeaderWriter_BasicNullPassword_UnitTest is fully constructed. |
|
553 @post CWspHeaderWriter_BasicNullPassword_UnitTest is fully destroyed. |
|
554 */ |
|
555 ~CWspHeaderWriter_BasicNullPassword_UnitTest(); |
|
556 |
|
557 private: |
|
558 /** |
|
559 @fn CWspHeaderWriter_BasicNullPassword_UnitTest(CDataLogger& aDataLogger, |
|
560 MUnitTestObserver& aObserver) |
|
561 Intended Usage : Default constructor. |
|
562 Error Condition : None. |
|
563 @since 7.0 |
|
564 @param aDataLogger The output logging object. |
|
565 @param aObserver The observer of this UnitTest. |
|
566 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
567 @pre None. |
|
568 @post CWspHeaderWriter_BasicNullPassword_UnitTest is fully constructed. |
|
569 */ |
|
570 inline CWspHeaderWriter_BasicNullPassword_UnitTest(CDataLogger& aDataLogger, |
|
571 MUnitTestObserver& aObserver); |
|
572 |
|
573 /** |
|
574 @fn void ConstructL() |
|
575 Intended Usage : Second phase of safe two phase construction, |
|
576 to complete the object initialisation. |
|
577 Error Condition : Leaves with an error code. |
|
578 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
579 @since 7.0 |
|
580 @return None |
|
581 @pre CWspHeaderWriter_BasicNullPassword_UnitTest is fully constructed. |
|
582 @post CWspHeaderWriter_BasicNullPassword_UnitTest is fully initialized. |
|
583 */ |
|
584 void ConstructL(); |
|
585 |
|
586 /** |
|
587 The context of the Unit Test. |
|
588 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
589 */ |
|
590 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
591 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
592 /* C'tor, d'tor, and method transition validators */ |
|
593 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
594 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iBasicNullPasswordValidator; |
|
595 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
596 }; // CWspHeaderWriter_BasicNullPassword_UnitTest |
|
597 |
|
598 // ______________________________________________________________________________ |
|
599 // |
|
600 /** |
|
601 @internal |
|
602 @class CWspHeaderWriter_BasicNullUserNullPass_UnitTest |
|
603 @Depends CWspHeaderWriter & CUnitTest |
|
604 |
|
605 Comments : Unit Test for BasicNullUserNullPass on CWspHeaderWriter, the class under test. |
|
606 */ |
|
607 class CWspHeaderWriter_BasicNullUserNullPass_UnitTest : public CUnitTest |
|
608 { |
|
609 public: |
|
610 /** |
|
611 @fn NewL(CDataLogger& aDataLogger, |
|
612 MUnitTestObserver& aObserver) |
|
613 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
614 cleanup stack. |
|
615 Error Condition : Leaves with the error code. |
|
616 @exceptions KErrNoMemory |
|
617 @since 7.0 |
|
618 @param aDataLogger The output logging object. |
|
619 @param aObserver The observer of this UnitTest. |
|
620 @return CWspHeaderWriter_BasicNullUserNullPass_UnitTest* The constructed object. |
|
621 @pre None. |
|
622 @post CWspHeaderWriter_BasicNullUserNullPass_UnitTest is fully constructed, and initialized. |
|
623 */ |
|
624 static CWspHeaderWriter_BasicNullUserNullPass_UnitTest* NewL(CDataLogger& aDataLogger, |
|
625 MUnitTestObserver& aObserver); |
|
626 |
|
627 /** |
|
628 @fn RunError(TInt aError) |
|
629 Intended Usage : Intercept the panic caused by a RunL leave, |
|
630 to restore the CWspHeaderWriter_BasicNullUserNullPass_UnitTest |
|
631 object to a sensible state. |
|
632 (called by the Active Scheduler immediately before the Panic). |
|
633 Error Condition : @see CUnitTest::RunError(). |
|
634 @since 7.0 |
|
635 @return KErrNone if cleanup successful, otherwise |
|
636 @see CUnitTest::RunError() |
|
637 @pre CWspHeaderWriter_BasicNullUserNullPass_UnitTest is fully constructed, and initialized. |
|
638 @post The object has been restored to a sensible state. |
|
639 */ |
|
640 inline TInt RunError(TInt aError); |
|
641 |
|
642 /** |
|
643 @fn ~CWspHeaderWriter_BasicNullUserNullPass_UnitTest() |
|
644 Intended Usage : Standard Destructor. |
|
645 Error Condition : None. |
|
646 @since 7.0 |
|
647 @pre CWspHeaderWriter_BasicNullUserNullPass_UnitTest is fully constructed. |
|
648 @post CWspHeaderWriter_BasicNullUserNullPass_UnitTest is fully destroyed. |
|
649 */ |
|
650 ~CWspHeaderWriter_BasicNullUserNullPass_UnitTest(); |
|
651 |
|
652 private: |
|
653 /** |
|
654 @fn CWspHeaderWriter_BasicNullUserNullPass_UnitTest(CDataLogger& aDataLogger, |
|
655 MUnitTestObserver& aObserver) |
|
656 Intended Usage : Default constructor. |
|
657 Error Condition : None. |
|
658 @since 7.0 |
|
659 @param aDataLogger The output logging object. |
|
660 @param aObserver The observer of this UnitTest. |
|
661 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
662 @pre None. |
|
663 @post CWspHeaderWriter_BasicNullUserNullPass_UnitTest is fully constructed. |
|
664 */ |
|
665 inline CWspHeaderWriter_BasicNullUserNullPass_UnitTest(CDataLogger& aDataLogger, |
|
666 MUnitTestObserver& aObserver); |
|
667 |
|
668 /** |
|
669 @fn void ConstructL() |
|
670 Intended Usage : Second phase of safe two phase construction, |
|
671 to complete the object initialisation. |
|
672 Error Condition : Leaves with an error code. |
|
673 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
674 @since 7.0 |
|
675 @return None |
|
676 @pre CWspHeaderWriter_BasicNullUserNullPass_UnitTest is fully constructed. |
|
677 @post CWspHeaderWriter_BasicNullUserNullPass_UnitTest is fully initialized. |
|
678 */ |
|
679 void ConstructL(); |
|
680 |
|
681 /** |
|
682 The context of the Unit Test. |
|
683 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
684 */ |
|
685 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
686 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
687 /* C'tor, d'tor, and method transition validators */ |
|
688 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
689 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iBasicNullUserNullPassValidator; |
|
690 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
691 }; // CWspHeaderWriter_BasicNullUserNullPass_UnitTest |
|
692 |
|
693 // ______________________________________________________________________________ |
|
694 // |
|
695 /** |
|
696 @internal |
|
697 @class CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest |
|
698 @Depends CWspHeaderWriter & CUnitTest |
|
699 |
|
700 Comments : Unit Test for AuthorizationSchemeNoParam on CWspHeaderWriter, the class under test. |
|
701 */ |
|
702 class CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest : public CUnitTest |
|
703 { |
|
704 public: |
|
705 /** |
|
706 @fn NewL(CDataLogger& aDataLogger, |
|
707 MUnitTestObserver& aObserver) |
|
708 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
709 cleanup stack. |
|
710 Error Condition : Leaves with the error code. |
|
711 @exceptions KErrNoMemory |
|
712 @since 7.0 |
|
713 @param aDataLogger The output logging object. |
|
714 @param aObserver The observer of this UnitTest. |
|
715 @return CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest* The constructed object. |
|
716 @pre None. |
|
717 @post CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest is fully constructed, and initialized. |
|
718 */ |
|
719 static CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest* NewL(CDataLogger& aDataLogger, |
|
720 MUnitTestObserver& aObserver); |
|
721 |
|
722 /** |
|
723 @fn RunError(TInt aError) |
|
724 Intended Usage : Intercept the panic caused by a RunL leave, |
|
725 to restore the CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest |
|
726 object to a sensible state. |
|
727 (called by the Active Scheduler immediately before the Panic). |
|
728 Error Condition : @see CUnitTest::RunError(). |
|
729 @since 7.0 |
|
730 @return KErrNone if cleanup successful, otherwise |
|
731 @see CUnitTest::RunError() |
|
732 @pre CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest is fully constructed, and initialized. |
|
733 @post The object has been restored to a sensible state. |
|
734 */ |
|
735 inline TInt RunError(TInt aError); |
|
736 |
|
737 /** |
|
738 @fn ~CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest() |
|
739 Intended Usage : Standard Destructor. |
|
740 Error Condition : None. |
|
741 @since 7.0 |
|
742 @pre CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest is fully constructed. |
|
743 @post CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest is fully destroyed. |
|
744 */ |
|
745 ~CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest(); |
|
746 |
|
747 private: |
|
748 /** |
|
749 @fn CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest(CDataLogger& aDataLogger, |
|
750 MUnitTestObserver& aObserver) |
|
751 Intended Usage : Default constructor. |
|
752 Error Condition : None. |
|
753 @since 7.0 |
|
754 @param aDataLogger The output logging object. |
|
755 @param aObserver The observer of this UnitTest. |
|
756 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
757 @pre None. |
|
758 @post CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest is fully constructed. |
|
759 */ |
|
760 inline CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest(CDataLogger& aDataLogger, |
|
761 MUnitTestObserver& aObserver); |
|
762 |
|
763 /** |
|
764 @fn void ConstructL() |
|
765 Intended Usage : Second phase of safe two phase construction, |
|
766 to complete the object initialisation. |
|
767 Error Condition : Leaves with an error code. |
|
768 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
769 @since 7.0 |
|
770 @return None |
|
771 @pre CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest is fully constructed. |
|
772 @post CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest is fully initialized. |
|
773 */ |
|
774 void ConstructL(); |
|
775 |
|
776 /** |
|
777 The context of the Unit Test. |
|
778 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
779 */ |
|
780 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
781 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
782 /* C'tor, d'tor, and method transition validators */ |
|
783 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
784 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAuthorizationSchemeNoParamValidator; |
|
785 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
786 }; // CWspHeaderWriter_AuthorizationSchemeNoParam_UnitTest |
|
787 |
|
788 // ______________________________________________________________________________ |
|
789 // |
|
790 /** |
|
791 @internal |
|
792 @class CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest |
|
793 @Depends CWspHeaderWriter & CUnitTest |
|
794 |
|
795 Comments : Unit Test for AuthorizationInvalidSchemeToken on CWspHeaderWriter, the class under test. |
|
796 */ |
|
797 class CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest : public CUnitTest |
|
798 { |
|
799 public: |
|
800 /** |
|
801 @fn NewL(CDataLogger& aDataLogger, |
|
802 MUnitTestObserver& aObserver) |
|
803 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
804 cleanup stack. |
|
805 Error Condition : Leaves with the error code. |
|
806 @exceptions KErrNoMemory |
|
807 @since 7.0 |
|
808 @param aDataLogger The output logging object. |
|
809 @param aObserver The observer of this UnitTest. |
|
810 @return CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest* The constructed object. |
|
811 @pre None. |
|
812 @post CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest is fully constructed, and initialized. |
|
813 */ |
|
814 static CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest* NewL(CDataLogger& aDataLogger, |
|
815 MUnitTestObserver& aObserver); |
|
816 |
|
817 /** |
|
818 @fn RunError(TInt aError) |
|
819 Intended Usage : Intercept the panic caused by a RunL leave, |
|
820 to restore the CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest |
|
821 object to a sensible state. |
|
822 (called by the Active Scheduler immediately before the Panic). |
|
823 Error Condition : @see CUnitTest::RunError(). |
|
824 @since 7.0 |
|
825 @return KErrNone if cleanup successful, otherwise |
|
826 @see CUnitTest::RunError() |
|
827 @pre CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest is fully constructed, and initialized. |
|
828 @post The object has been restored to a sensible state. |
|
829 */ |
|
830 inline TInt RunError(TInt aError); |
|
831 |
|
832 /** |
|
833 @fn ~CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest() |
|
834 Intended Usage : Standard Destructor. |
|
835 Error Condition : None. |
|
836 @since 7.0 |
|
837 @pre CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest is fully constructed. |
|
838 @post CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest is fully destroyed. |
|
839 */ |
|
840 ~CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest(); |
|
841 |
|
842 private: |
|
843 /** |
|
844 @fn CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest(CDataLogger& aDataLogger, |
|
845 MUnitTestObserver& aObserver) |
|
846 Intended Usage : Default constructor. |
|
847 Error Condition : None. |
|
848 @since 7.0 |
|
849 @param aDataLogger The output logging object. |
|
850 @param aObserver The observer of this UnitTest. |
|
851 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
852 @pre None. |
|
853 @post CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest is fully constructed. |
|
854 */ |
|
855 inline CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest(CDataLogger& aDataLogger, |
|
856 MUnitTestObserver& aObserver); |
|
857 |
|
858 /** |
|
859 @fn void ConstructL() |
|
860 Intended Usage : Second phase of safe two phase construction, |
|
861 to complete the object initialisation. |
|
862 Error Condition : Leaves with an error code. |
|
863 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
864 @since 7.0 |
|
865 @return None |
|
866 @pre CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest is fully constructed. |
|
867 @post CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest is fully initialized. |
|
868 */ |
|
869 void ConstructL(); |
|
870 |
|
871 /** |
|
872 The context of the Unit Test. |
|
873 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
874 */ |
|
875 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
876 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
877 /* C'tor, d'tor, and method transition validators */ |
|
878 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
879 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAuthorizationInvalidSchemeTokenValidator; |
|
880 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
881 }; // CWspHeaderWriter_AuthorizationInvalidSchemeToken_UnitTest |
|
882 |
|
883 // ______________________________________________________________________________ |
|
884 // |
|
885 /** |
|
886 @internal |
|
887 @class CWspHeaderWriter_AuthorizationScheme2Params_UnitTest |
|
888 @Depends CWspHeaderWriter & CUnitTest |
|
889 |
|
890 Comments : Unit Test for AuthorizationScheme2Params on CWspHeaderWriter, the class under test. |
|
891 */ |
|
892 class CWspHeaderWriter_AuthorizationScheme2Params_UnitTest : public CUnitTest |
|
893 { |
|
894 public: |
|
895 /** |
|
896 @fn NewL(CDataLogger& aDataLogger, |
|
897 MUnitTestObserver& aObserver) |
|
898 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
899 cleanup stack. |
|
900 Error Condition : Leaves with the error code. |
|
901 @exceptions KErrNoMemory |
|
902 @since 7.0 |
|
903 @param aDataLogger The output logging object. |
|
904 @param aObserver The observer of this UnitTest. |
|
905 @return CWspHeaderWriter_AuthorizationScheme2Params_UnitTest* The constructed object. |
|
906 @pre None. |
|
907 @post CWspHeaderWriter_AuthorizationScheme2Params_UnitTest is fully constructed, and initialized. |
|
908 */ |
|
909 static CWspHeaderWriter_AuthorizationScheme2Params_UnitTest* NewL(CDataLogger& aDataLogger, |
|
910 MUnitTestObserver& aObserver); |
|
911 |
|
912 /** |
|
913 @fn RunError(TInt aError) |
|
914 Intended Usage : Intercept the panic caused by a RunL leave, |
|
915 to restore the CWspHeaderWriter_AuthorizationScheme2Params_UnitTest |
|
916 object to a sensible state. |
|
917 (called by the Active Scheduler immediately before the Panic). |
|
918 Error Condition : @see CUnitTest::RunError(). |
|
919 @since 7.0 |
|
920 @return KErrNone if cleanup successful, otherwise |
|
921 @see CUnitTest::RunError() |
|
922 @pre CWspHeaderWriter_AuthorizationScheme2Params_UnitTest is fully constructed, and initialized. |
|
923 @post The object has been restored to a sensible state. |
|
924 */ |
|
925 inline TInt RunError(TInt aError); |
|
926 |
|
927 /** |
|
928 @fn ~CWspHeaderWriter_AuthorizationScheme2Params_UnitTest() |
|
929 Intended Usage : Standard Destructor. |
|
930 Error Condition : None. |
|
931 @since 7.0 |
|
932 @pre CWspHeaderWriter_AuthorizationScheme2Params_UnitTest is fully constructed. |
|
933 @post CWspHeaderWriter_AuthorizationScheme2Params_UnitTest is fully destroyed. |
|
934 */ |
|
935 ~CWspHeaderWriter_AuthorizationScheme2Params_UnitTest(); |
|
936 |
|
937 private: |
|
938 /** |
|
939 @fn CWspHeaderWriter_AuthorizationScheme2Params_UnitTest(CDataLogger& aDataLogger, |
|
940 MUnitTestObserver& aObserver) |
|
941 Intended Usage : Default constructor. |
|
942 Error Condition : None. |
|
943 @since 7.0 |
|
944 @param aDataLogger The output logging object. |
|
945 @param aObserver The observer of this UnitTest. |
|
946 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
947 @pre None. |
|
948 @post CWspHeaderWriter_AuthorizationScheme2Params_UnitTest is fully constructed. |
|
949 */ |
|
950 inline CWspHeaderWriter_AuthorizationScheme2Params_UnitTest(CDataLogger& aDataLogger, |
|
951 MUnitTestObserver& aObserver); |
|
952 |
|
953 /** |
|
954 @fn void ConstructL() |
|
955 Intended Usage : Second phase of safe two phase construction, |
|
956 to complete the object initialisation. |
|
957 Error Condition : Leaves with an error code. |
|
958 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
959 @since 7.0 |
|
960 @return None |
|
961 @pre CWspHeaderWriter_AuthorizationScheme2Params_UnitTest is fully constructed. |
|
962 @post CWspHeaderWriter_AuthorizationScheme2Params_UnitTest is fully initialized. |
|
963 */ |
|
964 void ConstructL(); |
|
965 |
|
966 /** |
|
967 The context of the Unit Test. |
|
968 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
969 */ |
|
970 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
971 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
972 /* C'tor, d'tor, and method transition validators */ |
|
973 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
974 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAuthorizationScheme2ParamsValidator; |
|
975 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
976 }; // CWspHeaderWriter_AuthorizationScheme2Params_UnitTest |
|
977 |
|
978 // ______________________________________________________________________________ |
|
979 // |
|
980 /** |
|
981 @internal |
|
982 @class CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest |
|
983 @Depends CWspHeaderWriter & CUnitTest |
|
984 |
|
985 Comments : Unit Test for AuthorizationScheme2ParamV1_2 on CWspHeaderWriter, the class under test. |
|
986 */ |
|
987 class CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest : public CUnitTest |
|
988 { |
|
989 public: |
|
990 /** |
|
991 @fn NewL(CDataLogger& aDataLogger, |
|
992 MUnitTestObserver& aObserver) |
|
993 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
994 cleanup stack. |
|
995 Error Condition : Leaves with the error code. |
|
996 @exceptions KErrNoMemory |
|
997 @since 7.0 |
|
998 @param aDataLogger The output logging object. |
|
999 @param aObserver The observer of this UnitTest. |
|
1000 @return CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest* The constructed object. |
|
1001 @pre None. |
|
1002 @post CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest is fully constructed, and initialized. |
|
1003 */ |
|
1004 static CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest* NewL(CDataLogger& aDataLogger, |
|
1005 MUnitTestObserver& aObserver); |
|
1006 |
|
1007 /** |
|
1008 @fn RunError(TInt aError) |
|
1009 Intended Usage : Intercept the panic caused by a RunL leave, |
|
1010 to restore the CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest |
|
1011 object to a sensible state. |
|
1012 (called by the Active Scheduler immediately before the Panic). |
|
1013 Error Condition : @see CUnitTest::RunError(). |
|
1014 @since 7.0 |
|
1015 @return KErrNone if cleanup successful, otherwise |
|
1016 @see CUnitTest::RunError() |
|
1017 @pre CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest is fully constructed, and initialized. |
|
1018 @post The object has been restored to a sensible state. |
|
1019 */ |
|
1020 inline TInt RunError(TInt aError); |
|
1021 |
|
1022 /** |
|
1023 @fn ~CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest() |
|
1024 Intended Usage : Standard Destructor. |
|
1025 Error Condition : None. |
|
1026 @since 7.0 |
|
1027 @pre CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest is fully constructed. |
|
1028 @post CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest is fully destroyed. |
|
1029 */ |
|
1030 ~CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest(); |
|
1031 |
|
1032 private: |
|
1033 /** |
|
1034 @fn CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest(CDataLogger& aDataLogger, |
|
1035 MUnitTestObserver& aObserver) |
|
1036 Intended Usage : Default constructor. |
|
1037 Error Condition : None. |
|
1038 @since 7.0 |
|
1039 @param aDataLogger The output logging object. |
|
1040 @param aObserver The observer of this UnitTest. |
|
1041 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
1042 @pre None. |
|
1043 @post CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest is fully constructed. |
|
1044 */ |
|
1045 inline CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest(CDataLogger& aDataLogger, |
|
1046 MUnitTestObserver& aObserver); |
|
1047 |
|
1048 /** |
|
1049 @fn void ConstructL() |
|
1050 Intended Usage : Second phase of safe two phase construction, |
|
1051 to complete the object initialisation. |
|
1052 Error Condition : Leaves with an error code. |
|
1053 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
1054 @since 7.0 |
|
1055 @return None |
|
1056 @pre CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest is fully constructed. |
|
1057 @post CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest is fully initialized. |
|
1058 */ |
|
1059 void ConstructL(); |
|
1060 |
|
1061 /** |
|
1062 The context of the Unit Test. |
|
1063 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
1064 */ |
|
1065 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
1066 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
1067 /* C'tor, d'tor, and method transition validators */ |
|
1068 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
1069 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAuthorizationScheme2ParamV1_2Validator; |
|
1070 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
1071 }; // CWspHeaderWriter_AuthorizationScheme2ParamV1_2_UnitTest |
|
1072 |
|
1073 // ______________________________________________________________________________ |
|
1074 // |
|
1075 /** |
|
1076 @internal |
|
1077 @class CWspHeaderWriter_ContentLocation_UnitTest |
|
1078 @Depends CWspHeaderWriter & CUnitTest |
|
1079 |
|
1080 Comments : Unit Test for ContentLocation on CWspHeaderWriter, the class under test. |
|
1081 */ |
|
1082 class CWspHeaderWriter_ContentLocation_UnitTest : public CUnitTest |
|
1083 { |
|
1084 public: |
|
1085 /** |
|
1086 @fn NewL(CDataLogger& aDataLogger, |
|
1087 MUnitTestObserver& aObserver) |
|
1088 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
1089 cleanup stack. |
|
1090 Error Condition : Leaves with the error code. |
|
1091 @exceptions KErrNoMemory |
|
1092 @since 7.0 |
|
1093 @param aDataLogger The output logging object. |
|
1094 @param aObserver The observer of this UnitTest. |
|
1095 @return CWspHeaderWriter_ContentLocation_UnitTest* The constructed object. |
|
1096 @pre None. |
|
1097 @post CWspHeaderWriter_ContentLocation_UnitTest is fully constructed, and initialized. |
|
1098 */ |
|
1099 static CWspHeaderWriter_ContentLocation_UnitTest* NewL(CDataLogger& aDataLogger, |
|
1100 MUnitTestObserver& aObserver); |
|
1101 |
|
1102 /** |
|
1103 @fn RunError(TInt aError) |
|
1104 Intended Usage : Intercept the panic caused by a RunL leave, |
|
1105 to restore the CWspHeaderWriter_ContentLocation_UnitTest |
|
1106 object to a sensible state. |
|
1107 (called by the Active Scheduler immediately before the Panic). |
|
1108 Error Condition : @see CUnitTest::RunError(). |
|
1109 @since 7.0 |
|
1110 @return KErrNone if cleanup successful, otherwise |
|
1111 @see CUnitTest::RunError() |
|
1112 @pre CWspHeaderWriter_ContentLocation_UnitTest is fully constructed, and initialized. |
|
1113 @post The object has been restored to a sensible state. |
|
1114 */ |
|
1115 inline TInt RunError(TInt aError); |
|
1116 |
|
1117 /** |
|
1118 @fn ~CWspHeaderWriter_ContentLocation_UnitTest() |
|
1119 Intended Usage : Standard Destructor. |
|
1120 Error Condition : None. |
|
1121 @since 7.0 |
|
1122 @pre CWspHeaderWriter_ContentLocation_UnitTest is fully constructed. |
|
1123 @post CWspHeaderWriter_ContentLocation_UnitTest is fully destroyed. |
|
1124 */ |
|
1125 ~CWspHeaderWriter_ContentLocation_UnitTest(); |
|
1126 |
|
1127 private: |
|
1128 /** |
|
1129 @fn CWspHeaderWriter_ContentLocation_UnitTest(CDataLogger& aDataLogger, |
|
1130 MUnitTestObserver& aObserver) |
|
1131 Intended Usage : Default constructor. |
|
1132 Error Condition : None. |
|
1133 @since 7.0 |
|
1134 @param aDataLogger The output logging object. |
|
1135 @param aObserver The observer of this UnitTest. |
|
1136 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
1137 @pre None. |
|
1138 @post CWspHeaderWriter_ContentLocation_UnitTest is fully constructed. |
|
1139 */ |
|
1140 inline CWspHeaderWriter_ContentLocation_UnitTest(CDataLogger& aDataLogger, |
|
1141 MUnitTestObserver& aObserver); |
|
1142 |
|
1143 /** |
|
1144 @fn void ConstructL() |
|
1145 Intended Usage : Second phase of safe two phase construction, |
|
1146 to complete the object initialisation. |
|
1147 Error Condition : Leaves with an error code. |
|
1148 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
1149 @since 7.0 |
|
1150 @return None |
|
1151 @pre CWspHeaderWriter_ContentLocation_UnitTest is fully constructed. |
|
1152 @post CWspHeaderWriter_ContentLocation_UnitTest is fully initialized. |
|
1153 */ |
|
1154 void ConstructL(); |
|
1155 |
|
1156 /** |
|
1157 The context of the Unit Test. |
|
1158 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
1159 */ |
|
1160 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
1161 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
1162 /* C'tor, d'tor, and method transition validators */ |
|
1163 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
1164 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentLocationValidator; |
|
1165 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
1166 }; // CWspHeaderWriter_ContentLocation_UnitTest |
|
1167 |
|
1168 // ______________________________________________________________________________ |
|
1169 // |
|
1170 /** |
|
1171 @internal |
|
1172 @class CWspHeaderWriter_ContentLocationNullText_UnitTest |
|
1173 @Depends CWspHeaderWriter & CUnitTest |
|
1174 |
|
1175 Comments : Unit Test for ContentLocationNullText on CWspHeaderWriter, the class under test. |
|
1176 */ |
|
1177 class CWspHeaderWriter_ContentLocationNullText_UnitTest : public CUnitTest |
|
1178 { |
|
1179 public: |
|
1180 /** |
|
1181 @fn NewL(CDataLogger& aDataLogger, |
|
1182 MUnitTestObserver& aObserver) |
|
1183 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
1184 cleanup stack. |
|
1185 Error Condition : Leaves with the error code. |
|
1186 @exceptions KErrNoMemory |
|
1187 @since 7.0 |
|
1188 @param aDataLogger The output logging object. |
|
1189 @param aObserver The observer of this UnitTest. |
|
1190 @return CWspHeaderWriter_ContentLocationNullText_UnitTest* The constructed object. |
|
1191 @pre None. |
|
1192 @post CWspHeaderWriter_ContentLocationNullText_UnitTest is fully constructed, and initialized. |
|
1193 */ |
|
1194 static CWspHeaderWriter_ContentLocationNullText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
1195 MUnitTestObserver& aObserver); |
|
1196 |
|
1197 /** |
|
1198 @fn RunError(TInt aError) |
|
1199 Intended Usage : Intercept the panic caused by a RunL leave, |
|
1200 to restore the CWspHeaderWriter_ContentLocationNullText_UnitTest |
|
1201 object to a sensible state. |
|
1202 (called by the Active Scheduler immediately before the Panic). |
|
1203 Error Condition : @see CUnitTest::RunError(). |
|
1204 @since 7.0 |
|
1205 @return KErrNone if cleanup successful, otherwise |
|
1206 @see CUnitTest::RunError() |
|
1207 @pre CWspHeaderWriter_ContentLocationNullText_UnitTest is fully constructed, and initialized. |
|
1208 @post The object has been restored to a sensible state. |
|
1209 */ |
|
1210 inline TInt RunError(TInt aError); |
|
1211 |
|
1212 /** |
|
1213 @fn ~CWspHeaderWriter_ContentLocationNullText_UnitTest() |
|
1214 Intended Usage : Standard Destructor. |
|
1215 Error Condition : None. |
|
1216 @since 7.0 |
|
1217 @pre CWspHeaderWriter_ContentLocationNullText_UnitTest is fully constructed. |
|
1218 @post CWspHeaderWriter_ContentLocationNullText_UnitTest is fully destroyed. |
|
1219 */ |
|
1220 ~CWspHeaderWriter_ContentLocationNullText_UnitTest(); |
|
1221 |
|
1222 private: |
|
1223 /** |
|
1224 @fn CWspHeaderWriter_ContentLocationNullText_UnitTest(CDataLogger& aDataLogger, |
|
1225 MUnitTestObserver& aObserver) |
|
1226 Intended Usage : Default constructor. |
|
1227 Error Condition : None. |
|
1228 @since 7.0 |
|
1229 @param aDataLogger The output logging object. |
|
1230 @param aObserver The observer of this UnitTest. |
|
1231 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
1232 @pre None. |
|
1233 @post CWspHeaderWriter_ContentLocationNullText_UnitTest is fully constructed. |
|
1234 */ |
|
1235 inline CWspHeaderWriter_ContentLocationNullText_UnitTest(CDataLogger& aDataLogger, |
|
1236 MUnitTestObserver& aObserver); |
|
1237 |
|
1238 /** |
|
1239 @fn void ConstructL() |
|
1240 Intended Usage : Second phase of safe two phase construction, |
|
1241 to complete the object initialisation. |
|
1242 Error Condition : Leaves with an error code. |
|
1243 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
1244 @since 7.0 |
|
1245 @return None |
|
1246 @pre CWspHeaderWriter_ContentLocationNullText_UnitTest is fully constructed. |
|
1247 @post CWspHeaderWriter_ContentLocationNullText_UnitTest is fully initialized. |
|
1248 */ |
|
1249 void ConstructL(); |
|
1250 |
|
1251 /** |
|
1252 The context of the Unit Test. |
|
1253 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
1254 */ |
|
1255 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
1256 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
1257 /* C'tor, d'tor, and method transition validators */ |
|
1258 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
1259 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentLocationNullTextValidator; |
|
1260 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
1261 }; // CWspHeaderWriter_ContentLocationNullText_UnitTest |
|
1262 |
|
1263 // ______________________________________________________________________________ |
|
1264 // |
|
1265 /** |
|
1266 @internal |
|
1267 @class CWspHeaderWriter_ContentTypeShortInt_UnitTest |
|
1268 @Depends CWspHeaderWriter & CUnitTest |
|
1269 |
|
1270 Comments : Unit Test for ContentTypeShortInt on CWspHeaderWriter, the class under test. |
|
1271 */ |
|
1272 class CWspHeaderWriter_ContentTypeShortInt_UnitTest : public CUnitTest |
|
1273 { |
|
1274 public: |
|
1275 /** |
|
1276 @fn NewL(CDataLogger& aDataLogger, |
|
1277 MUnitTestObserver& aObserver) |
|
1278 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
1279 cleanup stack. |
|
1280 Error Condition : Leaves with the error code. |
|
1281 @exceptions KErrNoMemory |
|
1282 @since 7.0 |
|
1283 @param aDataLogger The output logging object. |
|
1284 @param aObserver The observer of this UnitTest. |
|
1285 @return CWspHeaderWriter_ContentTypeShortInt_UnitTest* The constructed object. |
|
1286 @pre None. |
|
1287 @post CWspHeaderWriter_ContentTypeShortInt_UnitTest is fully constructed, and initialized. |
|
1288 */ |
|
1289 static CWspHeaderWriter_ContentTypeShortInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
1290 MUnitTestObserver& aObserver); |
|
1291 |
|
1292 /** |
|
1293 @fn RunError(TInt aError) |
|
1294 Intended Usage : Intercept the panic caused by a RunL leave, |
|
1295 to restore the CWspHeaderWriter_ContentTypeShortInt_UnitTest |
|
1296 object to a sensible state. |
|
1297 (called by the Active Scheduler immediately before the Panic). |
|
1298 Error Condition : @see CUnitTest::RunError(). |
|
1299 @since 7.0 |
|
1300 @return KErrNone if cleanup successful, otherwise |
|
1301 @see CUnitTest::RunError() |
|
1302 @pre CWspHeaderWriter_ContentTypeShortInt_UnitTest is fully constructed, and initialized. |
|
1303 @post The object has been restored to a sensible state. |
|
1304 */ |
|
1305 inline TInt RunError(TInt aError); |
|
1306 |
|
1307 /** |
|
1308 @fn ~CWspHeaderWriter_ContentTypeShortInt_UnitTest() |
|
1309 Intended Usage : Standard Destructor. |
|
1310 Error Condition : None. |
|
1311 @since 7.0 |
|
1312 @pre CWspHeaderWriter_ContentTypeShortInt_UnitTest is fully constructed. |
|
1313 @post CWspHeaderWriter_ContentTypeShortInt_UnitTest is fully destroyed. |
|
1314 */ |
|
1315 ~CWspHeaderWriter_ContentTypeShortInt_UnitTest(); |
|
1316 |
|
1317 private: |
|
1318 /** |
|
1319 @fn CWspHeaderWriter_ContentTypeShortInt_UnitTest(CDataLogger& aDataLogger, |
|
1320 MUnitTestObserver& aObserver) |
|
1321 Intended Usage : Default constructor. |
|
1322 Error Condition : None. |
|
1323 @since 7.0 |
|
1324 @param aDataLogger The output logging object. |
|
1325 @param aObserver The observer of this UnitTest. |
|
1326 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
1327 @pre None. |
|
1328 @post CWspHeaderWriter_ContentTypeShortInt_UnitTest is fully constructed. |
|
1329 */ |
|
1330 inline CWspHeaderWriter_ContentTypeShortInt_UnitTest(CDataLogger& aDataLogger, |
|
1331 MUnitTestObserver& aObserver); |
|
1332 |
|
1333 /** |
|
1334 @fn void ConstructL() |
|
1335 Intended Usage : Second phase of safe two phase construction, |
|
1336 to complete the object initialisation. |
|
1337 Error Condition : Leaves with an error code. |
|
1338 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
1339 @since 7.0 |
|
1340 @return None |
|
1341 @pre CWspHeaderWriter_ContentTypeShortInt_UnitTest is fully constructed. |
|
1342 @post CWspHeaderWriter_ContentTypeShortInt_UnitTest is fully initialized. |
|
1343 */ |
|
1344 void ConstructL(); |
|
1345 |
|
1346 /** |
|
1347 The context of the Unit Test. |
|
1348 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
1349 */ |
|
1350 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
1351 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
1352 /* C'tor, d'tor, and method transition validators */ |
|
1353 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
1354 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentTypeShortIntValidator; |
|
1355 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
1356 }; // CWspHeaderWriter_ContentTypeShortInt_UnitTest |
|
1357 |
|
1358 // ______________________________________________________________________________ |
|
1359 // |
|
1360 /** |
|
1361 @internal |
|
1362 @class CWspHeaderWriter_ContentTypeConstrainedText_UnitTest |
|
1363 @Depends CWspHeaderWriter & CUnitTest |
|
1364 |
|
1365 Comments : Unit Test for ContentTypeConstrainedText on CWspHeaderWriter, the class under test. |
|
1366 */ |
|
1367 class CWspHeaderWriter_ContentTypeConstrainedText_UnitTest : public CUnitTest |
|
1368 { |
|
1369 public: |
|
1370 /** |
|
1371 @fn NewL(CDataLogger& aDataLogger, |
|
1372 MUnitTestObserver& aObserver) |
|
1373 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
1374 cleanup stack. |
|
1375 Error Condition : Leaves with the error code. |
|
1376 @exceptions KErrNoMemory |
|
1377 @since 7.0 |
|
1378 @param aDataLogger The output logging object. |
|
1379 @param aObserver The observer of this UnitTest. |
|
1380 @return CWspHeaderWriter_ContentTypeConstrainedText_UnitTest* The constructed object. |
|
1381 @pre None. |
|
1382 @post CWspHeaderWriter_ContentTypeConstrainedText_UnitTest is fully constructed, and initialized. |
|
1383 */ |
|
1384 static CWspHeaderWriter_ContentTypeConstrainedText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
1385 MUnitTestObserver& aObserver); |
|
1386 |
|
1387 /** |
|
1388 @fn RunError(TInt aError) |
|
1389 Intended Usage : Intercept the panic caused by a RunL leave, |
|
1390 to restore the CWspHeaderWriter_ContentTypeConstrainedText_UnitTest |
|
1391 object to a sensible state. |
|
1392 (called by the Active Scheduler immediately before the Panic). |
|
1393 Error Condition : @see CUnitTest::RunError(). |
|
1394 @since 7.0 |
|
1395 @return KErrNone if cleanup successful, otherwise |
|
1396 @see CUnitTest::RunError() |
|
1397 @pre CWspHeaderWriter_ContentTypeConstrainedText_UnitTest is fully constructed, and initialized. |
|
1398 @post The object has been restored to a sensible state. |
|
1399 */ |
|
1400 inline TInt RunError(TInt aError); |
|
1401 |
|
1402 /** |
|
1403 @fn ~CWspHeaderWriter_ContentTypeConstrainedText_UnitTest() |
|
1404 Intended Usage : Standard Destructor. |
|
1405 Error Condition : None. |
|
1406 @since 7.0 |
|
1407 @pre CWspHeaderWriter_ContentTypeConstrainedText_UnitTest is fully constructed. |
|
1408 @post CWspHeaderWriter_ContentTypeConstrainedText_UnitTest is fully destroyed. |
|
1409 */ |
|
1410 ~CWspHeaderWriter_ContentTypeConstrainedText_UnitTest(); |
|
1411 |
|
1412 private: |
|
1413 /** |
|
1414 @fn CWspHeaderWriter_ContentTypeConstrainedText_UnitTest(CDataLogger& aDataLogger, |
|
1415 MUnitTestObserver& aObserver) |
|
1416 Intended Usage : Default constructor. |
|
1417 Error Condition : None. |
|
1418 @since 7.0 |
|
1419 @param aDataLogger The output logging object. |
|
1420 @param aObserver The observer of this UnitTest. |
|
1421 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
1422 @pre None. |
|
1423 @post CWspHeaderWriter_ContentTypeConstrainedText_UnitTest is fully constructed. |
|
1424 */ |
|
1425 inline CWspHeaderWriter_ContentTypeConstrainedText_UnitTest(CDataLogger& aDataLogger, |
|
1426 MUnitTestObserver& aObserver); |
|
1427 |
|
1428 /** |
|
1429 @fn void ConstructL() |
|
1430 Intended Usage : Second phase of safe two phase construction, |
|
1431 to complete the object initialisation. |
|
1432 Error Condition : Leaves with an error code. |
|
1433 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
1434 @since 7.0 |
|
1435 @return None |
|
1436 @pre CWspHeaderWriter_ContentTypeConstrainedText_UnitTest is fully constructed. |
|
1437 @post CWspHeaderWriter_ContentTypeConstrainedText_UnitTest is fully initialized. |
|
1438 */ |
|
1439 void ConstructL(); |
|
1440 |
|
1441 /** |
|
1442 The context of the Unit Test. |
|
1443 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
1444 */ |
|
1445 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
1446 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
1447 /* C'tor, d'tor, and method transition validators */ |
|
1448 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
1449 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentTypeConstrainedTextValidator; |
|
1450 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
1451 }; // CWspHeaderWriter_ContentTypeConstrainedText_UnitTest |
|
1452 |
|
1453 // ______________________________________________________________________________ |
|
1454 // |
|
1455 /** |
|
1456 @internal |
|
1457 @class CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest |
|
1458 @Depends CWspHeaderWriter & CUnitTest |
|
1459 |
|
1460 Comments : Unit Test for ContentTypeConstrainedNullText on CWspHeaderWriter, the class under test. |
|
1461 */ |
|
1462 class CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest : public CUnitTest |
|
1463 { |
|
1464 public: |
|
1465 /** |
|
1466 @fn NewL(CDataLogger& aDataLogger, |
|
1467 MUnitTestObserver& aObserver) |
|
1468 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
1469 cleanup stack. |
|
1470 Error Condition : Leaves with the error code. |
|
1471 @exceptions KErrNoMemory |
|
1472 @since 7.0 |
|
1473 @param aDataLogger The output logging object. |
|
1474 @param aObserver The observer of this UnitTest. |
|
1475 @return CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest* The constructed object. |
|
1476 @pre None. |
|
1477 @post CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest is fully constructed, and initialized. |
|
1478 */ |
|
1479 static CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
1480 MUnitTestObserver& aObserver); |
|
1481 |
|
1482 /** |
|
1483 @fn RunError(TInt aError) |
|
1484 Intended Usage : Intercept the panic caused by a RunL leave, |
|
1485 to restore the CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest |
|
1486 object to a sensible state. |
|
1487 (called by the Active Scheduler immediately before the Panic). |
|
1488 Error Condition : @see CUnitTest::RunError(). |
|
1489 @since 7.0 |
|
1490 @return KErrNone if cleanup successful, otherwise |
|
1491 @see CUnitTest::RunError() |
|
1492 @pre CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest is fully constructed, and initialized. |
|
1493 @post The object has been restored to a sensible state. |
|
1494 */ |
|
1495 inline TInt RunError(TInt aError); |
|
1496 |
|
1497 /** |
|
1498 @fn ~CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest() |
|
1499 Intended Usage : Standard Destructor. |
|
1500 Error Condition : None. |
|
1501 @since 7.0 |
|
1502 @pre CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest is fully constructed. |
|
1503 @post CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest is fully destroyed. |
|
1504 */ |
|
1505 ~CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest(); |
|
1506 |
|
1507 private: |
|
1508 /** |
|
1509 @fn CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest(CDataLogger& aDataLogger, |
|
1510 MUnitTestObserver& aObserver) |
|
1511 Intended Usage : Default constructor. |
|
1512 Error Condition : None. |
|
1513 @since 7.0 |
|
1514 @param aDataLogger The output logging object. |
|
1515 @param aObserver The observer of this UnitTest. |
|
1516 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
1517 @pre None. |
|
1518 @post CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest is fully constructed. |
|
1519 */ |
|
1520 inline CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest(CDataLogger& aDataLogger, |
|
1521 MUnitTestObserver& aObserver); |
|
1522 |
|
1523 /** |
|
1524 @fn void ConstructL() |
|
1525 Intended Usage : Second phase of safe two phase construction, |
|
1526 to complete the object initialisation. |
|
1527 Error Condition : Leaves with an error code. |
|
1528 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
1529 @since 7.0 |
|
1530 @return None |
|
1531 @pre CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest is fully constructed. |
|
1532 @post CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest is fully initialized. |
|
1533 */ |
|
1534 void ConstructL(); |
|
1535 |
|
1536 /** |
|
1537 The context of the Unit Test. |
|
1538 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
1539 */ |
|
1540 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
1541 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
1542 /* C'tor, d'tor, and method transition validators */ |
|
1543 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
1544 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentTypeConstrainedNullTextValidator; |
|
1545 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
1546 }; // CWspHeaderWriter_ContentTypeConstrainedNullText_UnitTest |
|
1547 |
|
1548 // ______________________________________________________________________________ |
|
1549 // |
|
1550 /** |
|
1551 @internal |
|
1552 @class CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest |
|
1553 @Depends CWspHeaderWriter & CUnitTest |
|
1554 |
|
1555 Comments : Unit Test for ContentTypeGeneralShortInt1Param on CWspHeaderWriter, the class under test. |
|
1556 */ |
|
1557 class CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest : public CUnitTest |
|
1558 { |
|
1559 public: |
|
1560 /** |
|
1561 @fn NewL(CDataLogger& aDataLogger, |
|
1562 MUnitTestObserver& aObserver) |
|
1563 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
1564 cleanup stack. |
|
1565 Error Condition : Leaves with the error code. |
|
1566 @exceptions KErrNoMemory |
|
1567 @since 7.0 |
|
1568 @param aDataLogger The output logging object. |
|
1569 @param aObserver The observer of this UnitTest. |
|
1570 @return CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest* The constructed object. |
|
1571 @pre None. |
|
1572 @post CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest is fully constructed, and initialized. |
|
1573 */ |
|
1574 static CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest* NewL(CDataLogger& aDataLogger, |
|
1575 MUnitTestObserver& aObserver); |
|
1576 |
|
1577 /** |
|
1578 @fn RunError(TInt aError) |
|
1579 Intended Usage : Intercept the panic caused by a RunL leave, |
|
1580 to restore the CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest |
|
1581 object to a sensible state. |
|
1582 (called by the Active Scheduler immediately before the Panic). |
|
1583 Error Condition : @see CUnitTest::RunError(). |
|
1584 @since 7.0 |
|
1585 @return KErrNone if cleanup successful, otherwise |
|
1586 @see CUnitTest::RunError() |
|
1587 @pre CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest is fully constructed, and initialized. |
|
1588 @post The object has been restored to a sensible state. |
|
1589 */ |
|
1590 inline TInt RunError(TInt aError); |
|
1591 |
|
1592 /** |
|
1593 @fn ~CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest() |
|
1594 Intended Usage : Standard Destructor. |
|
1595 Error Condition : None. |
|
1596 @since 7.0 |
|
1597 @pre CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest is fully constructed. |
|
1598 @post CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest is fully destroyed. |
|
1599 */ |
|
1600 ~CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest(); |
|
1601 |
|
1602 private: |
|
1603 /** |
|
1604 @fn CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest(CDataLogger& aDataLogger, |
|
1605 MUnitTestObserver& aObserver) |
|
1606 Intended Usage : Default constructor. |
|
1607 Error Condition : None. |
|
1608 @since 7.0 |
|
1609 @param aDataLogger The output logging object. |
|
1610 @param aObserver The observer of this UnitTest. |
|
1611 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
1612 @pre None. |
|
1613 @post CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest is fully constructed. |
|
1614 */ |
|
1615 inline CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest(CDataLogger& aDataLogger, |
|
1616 MUnitTestObserver& aObserver); |
|
1617 |
|
1618 /** |
|
1619 @fn void ConstructL() |
|
1620 Intended Usage : Second phase of safe two phase construction, |
|
1621 to complete the object initialisation. |
|
1622 Error Condition : Leaves with an error code. |
|
1623 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
1624 @since 7.0 |
|
1625 @return None |
|
1626 @pre CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest is fully constructed. |
|
1627 @post CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest is fully initialized. |
|
1628 */ |
|
1629 void ConstructL(); |
|
1630 |
|
1631 /** |
|
1632 The context of the Unit Test. |
|
1633 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
1634 */ |
|
1635 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
1636 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
1637 /* C'tor, d'tor, and method transition validators */ |
|
1638 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
1639 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentTypeGeneralShortInt1ParamValidator; |
|
1640 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
1641 }; // CWspHeaderWriter_ContentTypeGeneralShortInt1Param_UnitTest |
|
1642 |
|
1643 // ______________________________________________________________________________ |
|
1644 // |
|
1645 /** |
|
1646 @internal |
|
1647 @class CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest |
|
1648 @Depends CWspHeaderWriter & CUnitTest |
|
1649 |
|
1650 Comments : Unit Test for ContentTypeGeneralLongInt on CWspHeaderWriter, the class under test. |
|
1651 */ |
|
1652 class CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest : public CUnitTest |
|
1653 { |
|
1654 public: |
|
1655 /** |
|
1656 @fn NewL(CDataLogger& aDataLogger, |
|
1657 MUnitTestObserver& aObserver) |
|
1658 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
1659 cleanup stack. |
|
1660 Error Condition : Leaves with the error code. |
|
1661 @exceptions KErrNoMemory |
|
1662 @since 7.0 |
|
1663 @param aDataLogger The output logging object. |
|
1664 @param aObserver The observer of this UnitTest. |
|
1665 @return CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest* The constructed object. |
|
1666 @pre None. |
|
1667 @post CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest is fully constructed, and initialized. |
|
1668 */ |
|
1669 static CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
1670 MUnitTestObserver& aObserver); |
|
1671 |
|
1672 /** |
|
1673 @fn RunError(TInt aError) |
|
1674 Intended Usage : Intercept the panic caused by a RunL leave, |
|
1675 to restore the CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest |
|
1676 object to a sensible state. |
|
1677 (called by the Active Scheduler immediately before the Panic). |
|
1678 Error Condition : @see CUnitTest::RunError(). |
|
1679 @since 7.0 |
|
1680 @return KErrNone if cleanup successful, otherwise |
|
1681 @see CUnitTest::RunError() |
|
1682 @pre CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest is fully constructed, and initialized. |
|
1683 @post The object has been restored to a sensible state. |
|
1684 */ |
|
1685 inline TInt RunError(TInt aError); |
|
1686 |
|
1687 /** |
|
1688 @fn ~CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest() |
|
1689 Intended Usage : Standard Destructor. |
|
1690 Error Condition : None. |
|
1691 @since 7.0 |
|
1692 @pre CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest is fully constructed. |
|
1693 @post CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest is fully destroyed. |
|
1694 */ |
|
1695 ~CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest(); |
|
1696 |
|
1697 private: |
|
1698 /** |
|
1699 @fn CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest(CDataLogger& aDataLogger, |
|
1700 MUnitTestObserver& aObserver) |
|
1701 Intended Usage : Default constructor. |
|
1702 Error Condition : None. |
|
1703 @since 7.0 |
|
1704 @param aDataLogger The output logging object. |
|
1705 @param aObserver The observer of this UnitTest. |
|
1706 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
1707 @pre None. |
|
1708 @post CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest is fully constructed. |
|
1709 */ |
|
1710 inline CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest(CDataLogger& aDataLogger, |
|
1711 MUnitTestObserver& aObserver); |
|
1712 |
|
1713 /** |
|
1714 @fn void ConstructL() |
|
1715 Intended Usage : Second phase of safe two phase construction, |
|
1716 to complete the object initialisation. |
|
1717 Error Condition : Leaves with an error code. |
|
1718 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
1719 @since 7.0 |
|
1720 @return None |
|
1721 @pre CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest is fully constructed. |
|
1722 @post CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest is fully initialized. |
|
1723 */ |
|
1724 void ConstructL(); |
|
1725 |
|
1726 /** |
|
1727 The context of the Unit Test. |
|
1728 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
1729 */ |
|
1730 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
1731 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
1732 /* C'tor, d'tor, and method transition validators */ |
|
1733 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
1734 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentTypeGeneralLongIntValidator; |
|
1735 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
1736 }; // CWspHeaderWriter_ContentTypeGeneralLongInt_UnitTest |
|
1737 |
|
1738 // ______________________________________________________________________________ |
|
1739 // |
|
1740 /** |
|
1741 @internal |
|
1742 @class CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest |
|
1743 @Depends CWspHeaderWriter & CUnitTest |
|
1744 |
|
1745 Comments : Unit Test for ContentTypeGeneralLongInt2Params on CWspHeaderWriter, the class under test. |
|
1746 */ |
|
1747 class CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest : public CUnitTest |
|
1748 { |
|
1749 public: |
|
1750 /** |
|
1751 @fn NewL(CDataLogger& aDataLogger, |
|
1752 MUnitTestObserver& aObserver) |
|
1753 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
1754 cleanup stack. |
|
1755 Error Condition : Leaves with the error code. |
|
1756 @exceptions KErrNoMemory |
|
1757 @since 7.0 |
|
1758 @param aDataLogger The output logging object. |
|
1759 @param aObserver The observer of this UnitTest. |
|
1760 @return CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest* The constructed object. |
|
1761 @pre None. |
|
1762 @post CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest is fully constructed, and initialized. |
|
1763 */ |
|
1764 static CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest* NewL(CDataLogger& aDataLogger, |
|
1765 MUnitTestObserver& aObserver); |
|
1766 |
|
1767 /** |
|
1768 @fn RunError(TInt aError) |
|
1769 Intended Usage : Intercept the panic caused by a RunL leave, |
|
1770 to restore the CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest |
|
1771 object to a sensible state. |
|
1772 (called by the Active Scheduler immediately before the Panic). |
|
1773 Error Condition : @see CUnitTest::RunError(). |
|
1774 @since 7.0 |
|
1775 @return KErrNone if cleanup successful, otherwise |
|
1776 @see CUnitTest::RunError() |
|
1777 @pre CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest is fully constructed, and initialized. |
|
1778 @post The object has been restored to a sensible state. |
|
1779 */ |
|
1780 inline TInt RunError(TInt aError); |
|
1781 |
|
1782 /** |
|
1783 @fn ~CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest() |
|
1784 Intended Usage : Standard Destructor. |
|
1785 Error Condition : None. |
|
1786 @since 7.0 |
|
1787 @pre CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest is fully constructed. |
|
1788 @post CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest is fully destroyed. |
|
1789 */ |
|
1790 ~CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest(); |
|
1791 |
|
1792 private: |
|
1793 /** |
|
1794 @fn CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest(CDataLogger& aDataLogger, |
|
1795 MUnitTestObserver& aObserver) |
|
1796 Intended Usage : Default constructor. |
|
1797 Error Condition : None. |
|
1798 @since 7.0 |
|
1799 @param aDataLogger The output logging object. |
|
1800 @param aObserver The observer of this UnitTest. |
|
1801 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
1802 @pre None. |
|
1803 @post CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest is fully constructed. |
|
1804 */ |
|
1805 inline CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest(CDataLogger& aDataLogger, |
|
1806 MUnitTestObserver& aObserver); |
|
1807 |
|
1808 /** |
|
1809 @fn void ConstructL() |
|
1810 Intended Usage : Second phase of safe two phase construction, |
|
1811 to complete the object initialisation. |
|
1812 Error Condition : Leaves with an error code. |
|
1813 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
1814 @since 7.0 |
|
1815 @return None |
|
1816 @pre CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest is fully constructed. |
|
1817 @post CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest is fully initialized. |
|
1818 */ |
|
1819 void ConstructL(); |
|
1820 |
|
1821 /** |
|
1822 The context of the Unit Test. |
|
1823 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
1824 */ |
|
1825 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
1826 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
1827 /* C'tor, d'tor, and method transition validators */ |
|
1828 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
1829 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentTypeGeneralLongInt2ParamsValidator; |
|
1830 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
1831 }; // CWspHeaderWriter_ContentTypeGeneralLongInt2Params_UnitTest |
|
1832 |
|
1833 // ______________________________________________________________________________ |
|
1834 // |
|
1835 /** |
|
1836 @internal |
|
1837 @class CWspHeaderWriter_ContentTypeGeneralText_UnitTest |
|
1838 @Depends CWspHeaderWriter & CUnitTest |
|
1839 |
|
1840 Comments : Unit Test for ContentTypeGeneralText on CWspHeaderWriter, the class under test. |
|
1841 */ |
|
1842 class CWspHeaderWriter_ContentTypeGeneralText_UnitTest : public CUnitTest |
|
1843 { |
|
1844 public: |
|
1845 /** |
|
1846 @fn NewL(CDataLogger& aDataLogger, |
|
1847 MUnitTestObserver& aObserver) |
|
1848 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
1849 cleanup stack. |
|
1850 Error Condition : Leaves with the error code. |
|
1851 @exceptions KErrNoMemory |
|
1852 @since 7.0 |
|
1853 @param aDataLogger The output logging object. |
|
1854 @param aObserver The observer of this UnitTest. |
|
1855 @return CWspHeaderWriter_ContentTypeGeneralText_UnitTest* The constructed object. |
|
1856 @pre None. |
|
1857 @post CWspHeaderWriter_ContentTypeGeneralText_UnitTest is fully constructed, and initialized. |
|
1858 */ |
|
1859 static CWspHeaderWriter_ContentTypeGeneralText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
1860 MUnitTestObserver& aObserver); |
|
1861 |
|
1862 /** |
|
1863 @fn RunError(TInt aError) |
|
1864 Intended Usage : Intercept the panic caused by a RunL leave, |
|
1865 to restore the CWspHeaderWriter_ContentTypeGeneralText_UnitTest |
|
1866 object to a sensible state. |
|
1867 (called by the Active Scheduler immediately before the Panic). |
|
1868 Error Condition : @see CUnitTest::RunError(). |
|
1869 @since 7.0 |
|
1870 @return KErrNone if cleanup successful, otherwise |
|
1871 @see CUnitTest::RunError() |
|
1872 @pre CWspHeaderWriter_ContentTypeGeneralText_UnitTest is fully constructed, and initialized. |
|
1873 @post The object has been restored to a sensible state. |
|
1874 */ |
|
1875 inline TInt RunError(TInt aError); |
|
1876 |
|
1877 /** |
|
1878 @fn ~CWspHeaderWriter_ContentTypeGeneralText_UnitTest() |
|
1879 Intended Usage : Standard Destructor. |
|
1880 Error Condition : None. |
|
1881 @since 7.0 |
|
1882 @pre CWspHeaderWriter_ContentTypeGeneralText_UnitTest is fully constructed. |
|
1883 @post CWspHeaderWriter_ContentTypeGeneralText_UnitTest is fully destroyed. |
|
1884 */ |
|
1885 ~CWspHeaderWriter_ContentTypeGeneralText_UnitTest(); |
|
1886 |
|
1887 private: |
|
1888 /** |
|
1889 @fn CWspHeaderWriter_ContentTypeGeneralText_UnitTest(CDataLogger& aDataLogger, |
|
1890 MUnitTestObserver& aObserver) |
|
1891 Intended Usage : Default constructor. |
|
1892 Error Condition : None. |
|
1893 @since 7.0 |
|
1894 @param aDataLogger The output logging object. |
|
1895 @param aObserver The observer of this UnitTest. |
|
1896 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
1897 @pre None. |
|
1898 @post CWspHeaderWriter_ContentTypeGeneralText_UnitTest is fully constructed. |
|
1899 */ |
|
1900 inline CWspHeaderWriter_ContentTypeGeneralText_UnitTest(CDataLogger& aDataLogger, |
|
1901 MUnitTestObserver& aObserver); |
|
1902 |
|
1903 /** |
|
1904 @fn void ConstructL() |
|
1905 Intended Usage : Second phase of safe two phase construction, |
|
1906 to complete the object initialisation. |
|
1907 Error Condition : Leaves with an error code. |
|
1908 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
1909 @since 7.0 |
|
1910 @return None |
|
1911 @pre CWspHeaderWriter_ContentTypeGeneralText_UnitTest is fully constructed. |
|
1912 @post CWspHeaderWriter_ContentTypeGeneralText_UnitTest is fully initialized. |
|
1913 */ |
|
1914 void ConstructL(); |
|
1915 |
|
1916 /** |
|
1917 The context of the Unit Test. |
|
1918 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
1919 */ |
|
1920 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
1921 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
1922 /* C'tor, d'tor, and method transition validators */ |
|
1923 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
1924 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentTypeGeneralTextValidator; |
|
1925 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
1926 }; // CWspHeaderWriter_ContentTypeGeneralText_UnitTest |
|
1927 |
|
1928 // ______________________________________________________________________________ |
|
1929 // |
|
1930 /** |
|
1931 @internal |
|
1932 @class CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest |
|
1933 @Depends CWspHeaderWriter & CUnitTest |
|
1934 |
|
1935 Comments : Unit Test for ContentTypeGeneralNullText on CWspHeaderWriter, the class under test. |
|
1936 */ |
|
1937 class CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest : public CUnitTest |
|
1938 { |
|
1939 public: |
|
1940 /** |
|
1941 @fn NewL(CDataLogger& aDataLogger, |
|
1942 MUnitTestObserver& aObserver) |
|
1943 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
1944 cleanup stack. |
|
1945 Error Condition : Leaves with the error code. |
|
1946 @exceptions KErrNoMemory |
|
1947 @since 7.0 |
|
1948 @param aDataLogger The output logging object. |
|
1949 @param aObserver The observer of this UnitTest. |
|
1950 @return CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest* The constructed object. |
|
1951 @pre None. |
|
1952 @post CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest is fully constructed, and initialized. |
|
1953 */ |
|
1954 static CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
1955 MUnitTestObserver& aObserver); |
|
1956 |
|
1957 /** |
|
1958 @fn RunError(TInt aError) |
|
1959 Intended Usage : Intercept the panic caused by a RunL leave, |
|
1960 to restore the CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest |
|
1961 object to a sensible state. |
|
1962 (called by the Active Scheduler immediately before the Panic). |
|
1963 Error Condition : @see CUnitTest::RunError(). |
|
1964 @since 7.0 |
|
1965 @return KErrNone if cleanup successful, otherwise |
|
1966 @see CUnitTest::RunError() |
|
1967 @pre CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest is fully constructed, and initialized. |
|
1968 @post The object has been restored to a sensible state. |
|
1969 */ |
|
1970 inline TInt RunError(TInt aError); |
|
1971 |
|
1972 /** |
|
1973 @fn ~CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest() |
|
1974 Intended Usage : Standard Destructor. |
|
1975 Error Condition : None. |
|
1976 @since 7.0 |
|
1977 @pre CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest is fully constructed. |
|
1978 @post CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest is fully destroyed. |
|
1979 */ |
|
1980 ~CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest(); |
|
1981 |
|
1982 private: |
|
1983 /** |
|
1984 @fn CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest(CDataLogger& aDataLogger, |
|
1985 MUnitTestObserver& aObserver) |
|
1986 Intended Usage : Default constructor. |
|
1987 Error Condition : None. |
|
1988 @since 7.0 |
|
1989 @param aDataLogger The output logging object. |
|
1990 @param aObserver The observer of this UnitTest. |
|
1991 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
1992 @pre None. |
|
1993 @post CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest is fully constructed. |
|
1994 */ |
|
1995 inline CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest(CDataLogger& aDataLogger, |
|
1996 MUnitTestObserver& aObserver); |
|
1997 |
|
1998 /** |
|
1999 @fn void ConstructL() |
|
2000 Intended Usage : Second phase of safe two phase construction, |
|
2001 to complete the object initialisation. |
|
2002 Error Condition : Leaves with an error code. |
|
2003 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
2004 @since 7.0 |
|
2005 @return None |
|
2006 @pre CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest is fully constructed. |
|
2007 @post CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest is fully initialized. |
|
2008 */ |
|
2009 void ConstructL(); |
|
2010 |
|
2011 /** |
|
2012 The context of the Unit Test. |
|
2013 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
2014 */ |
|
2015 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
2016 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
2017 /* C'tor, d'tor, and method transition validators */ |
|
2018 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
2019 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentTypeGeneralNullTextValidator; |
|
2020 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
2021 }; // CWspHeaderWriter_ContentTypeGeneralNullText_UnitTest |
|
2022 |
|
2023 // ______________________________________________________________________________ |
|
2024 // |
|
2025 /** |
|
2026 @internal |
|
2027 @class CWspHeaderWriter_AcceptCharsetShortInt_UnitTest |
|
2028 @Depends CWspHeaderWriter & CUnitTest |
|
2029 |
|
2030 Comments : Unit Test for AcceptCharsetShortInt on CWspHeaderWriter, the class under test. |
|
2031 */ |
|
2032 class CWspHeaderWriter_AcceptCharsetShortInt_UnitTest : public CUnitTest |
|
2033 { |
|
2034 public: |
|
2035 /** |
|
2036 @fn NewL(CDataLogger& aDataLogger, |
|
2037 MUnitTestObserver& aObserver) |
|
2038 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
2039 cleanup stack. |
|
2040 Error Condition : Leaves with the error code. |
|
2041 @exceptions KErrNoMemory |
|
2042 @since 7.0 |
|
2043 @param aDataLogger The output logging object. |
|
2044 @param aObserver The observer of this UnitTest. |
|
2045 @return CWspHeaderWriter_AcceptCharsetShortInt_UnitTest* The constructed object. |
|
2046 @pre None. |
|
2047 @post CWspHeaderWriter_AcceptCharsetShortInt_UnitTest is fully constructed, and initialized. |
|
2048 */ |
|
2049 static CWspHeaderWriter_AcceptCharsetShortInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
2050 MUnitTestObserver& aObserver); |
|
2051 |
|
2052 /** |
|
2053 @fn RunError(TInt aError) |
|
2054 Intended Usage : Intercept the panic caused by a RunL leave, |
|
2055 to restore the CWspHeaderWriter_AcceptCharsetShortInt_UnitTest |
|
2056 object to a sensible state. |
|
2057 (called by the Active Scheduler immediately before the Panic). |
|
2058 Error Condition : @see CUnitTest::RunError(). |
|
2059 @since 7.0 |
|
2060 @return KErrNone if cleanup successful, otherwise |
|
2061 @see CUnitTest::RunError() |
|
2062 @pre CWspHeaderWriter_AcceptCharsetShortInt_UnitTest is fully constructed, and initialized. |
|
2063 @post The object has been restored to a sensible state. |
|
2064 */ |
|
2065 inline TInt RunError(TInt aError); |
|
2066 |
|
2067 /** |
|
2068 @fn ~CWspHeaderWriter_AcceptCharsetShortInt_UnitTest() |
|
2069 Intended Usage : Standard Destructor. |
|
2070 Error Condition : None. |
|
2071 @since 7.0 |
|
2072 @pre CWspHeaderWriter_AcceptCharsetShortInt_UnitTest is fully constructed. |
|
2073 @post CWspHeaderWriter_AcceptCharsetShortInt_UnitTest is fully destroyed. |
|
2074 */ |
|
2075 ~CWspHeaderWriter_AcceptCharsetShortInt_UnitTest(); |
|
2076 |
|
2077 private: |
|
2078 /** |
|
2079 @fn CWspHeaderWriter_AcceptCharsetShortInt_UnitTest(CDataLogger& aDataLogger, |
|
2080 MUnitTestObserver& aObserver) |
|
2081 Intended Usage : Default constructor. |
|
2082 Error Condition : None. |
|
2083 @since 7.0 |
|
2084 @param aDataLogger The output logging object. |
|
2085 @param aObserver The observer of this UnitTest. |
|
2086 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
2087 @pre None. |
|
2088 @post CWspHeaderWriter_AcceptCharsetShortInt_UnitTest is fully constructed. |
|
2089 */ |
|
2090 inline CWspHeaderWriter_AcceptCharsetShortInt_UnitTest(CDataLogger& aDataLogger, |
|
2091 MUnitTestObserver& aObserver); |
|
2092 |
|
2093 /** |
|
2094 @fn void ConstructL() |
|
2095 Intended Usage : Second phase of safe two phase construction, |
|
2096 to complete the object initialisation. |
|
2097 Error Condition : Leaves with an error code. |
|
2098 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
2099 @since 7.0 |
|
2100 @return None |
|
2101 @pre CWspHeaderWriter_AcceptCharsetShortInt_UnitTest is fully constructed. |
|
2102 @post CWspHeaderWriter_AcceptCharsetShortInt_UnitTest is fully initialized. |
|
2103 */ |
|
2104 void ConstructL(); |
|
2105 |
|
2106 /** |
|
2107 The context of the Unit Test. |
|
2108 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
2109 */ |
|
2110 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
2111 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
2112 /* C'tor, d'tor, and method transition validators */ |
|
2113 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
2114 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptCharsetShortIntValidator; |
|
2115 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
2116 }; // CWspHeaderWriter_AcceptCharsetShortInt_UnitTest |
|
2117 |
|
2118 // ______________________________________________________________________________ |
|
2119 // |
|
2120 /** |
|
2121 @internal |
|
2122 @class CWspHeaderWriter_AcceptCharsetText_UnitTest |
|
2123 @Depends CWspHeaderWriter & CUnitTest |
|
2124 |
|
2125 Comments : Unit Test for AcceptCharsetText on CWspHeaderWriter, the class under test. |
|
2126 */ |
|
2127 class CWspHeaderWriter_AcceptCharsetText_UnitTest : public CUnitTest |
|
2128 { |
|
2129 public: |
|
2130 /** |
|
2131 @fn NewL(CDataLogger& aDataLogger, |
|
2132 MUnitTestObserver& aObserver) |
|
2133 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
2134 cleanup stack. |
|
2135 Error Condition : Leaves with the error code. |
|
2136 @exceptions KErrNoMemory |
|
2137 @since 7.0 |
|
2138 @param aDataLogger The output logging object. |
|
2139 @param aObserver The observer of this UnitTest. |
|
2140 @return CWspHeaderWriter_AcceptCharsetText_UnitTest* The constructed object. |
|
2141 @pre None. |
|
2142 @post CWspHeaderWriter_AcceptCharsetText_UnitTest is fully constructed, and initialized. |
|
2143 */ |
|
2144 static CWspHeaderWriter_AcceptCharsetText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
2145 MUnitTestObserver& aObserver); |
|
2146 |
|
2147 /** |
|
2148 @fn RunError(TInt aError) |
|
2149 Intended Usage : Intercept the panic caused by a RunL leave, |
|
2150 to restore the CWspHeaderWriter_AcceptCharsetText_UnitTest |
|
2151 object to a sensible state. |
|
2152 (called by the Active Scheduler immediately before the Panic). |
|
2153 Error Condition : @see CUnitTest::RunError(). |
|
2154 @since 7.0 |
|
2155 @return KErrNone if cleanup successful, otherwise |
|
2156 @see CUnitTest::RunError() |
|
2157 @pre CWspHeaderWriter_AcceptCharsetText_UnitTest is fully constructed, and initialized. |
|
2158 @post The object has been restored to a sensible state. |
|
2159 */ |
|
2160 inline TInt RunError(TInt aError); |
|
2161 |
|
2162 /** |
|
2163 @fn ~CWspHeaderWriter_AcceptCharsetText_UnitTest() |
|
2164 Intended Usage : Standard Destructor. |
|
2165 Error Condition : None. |
|
2166 @since 7.0 |
|
2167 @pre CWspHeaderWriter_AcceptCharsetText_UnitTest is fully constructed. |
|
2168 @post CWspHeaderWriter_AcceptCharsetText_UnitTest is fully destroyed. |
|
2169 */ |
|
2170 ~CWspHeaderWriter_AcceptCharsetText_UnitTest(); |
|
2171 |
|
2172 private: |
|
2173 /** |
|
2174 @fn CWspHeaderWriter_AcceptCharsetText_UnitTest(CDataLogger& aDataLogger, |
|
2175 MUnitTestObserver& aObserver) |
|
2176 Intended Usage : Default constructor. |
|
2177 Error Condition : None. |
|
2178 @since 7.0 |
|
2179 @param aDataLogger The output logging object. |
|
2180 @param aObserver The observer of this UnitTest. |
|
2181 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
2182 @pre None. |
|
2183 @post CWspHeaderWriter_AcceptCharsetText_UnitTest is fully constructed. |
|
2184 */ |
|
2185 inline CWspHeaderWriter_AcceptCharsetText_UnitTest(CDataLogger& aDataLogger, |
|
2186 MUnitTestObserver& aObserver); |
|
2187 |
|
2188 /** |
|
2189 @fn void ConstructL() |
|
2190 Intended Usage : Second phase of safe two phase construction, |
|
2191 to complete the object initialisation. |
|
2192 Error Condition : Leaves with an error code. |
|
2193 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
2194 @since 7.0 |
|
2195 @return None |
|
2196 @pre CWspHeaderWriter_AcceptCharsetText_UnitTest is fully constructed. |
|
2197 @post CWspHeaderWriter_AcceptCharsetText_UnitTest is fully initialized. |
|
2198 */ |
|
2199 void ConstructL(); |
|
2200 |
|
2201 /** |
|
2202 The context of the Unit Test. |
|
2203 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
2204 */ |
|
2205 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
2206 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
2207 /* C'tor, d'tor, and method transition validators */ |
|
2208 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
2209 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptCharsetTextValidator; |
|
2210 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
2211 }; // CWspHeaderWriter_AcceptCharsetText_UnitTest |
|
2212 |
|
2213 // ______________________________________________________________________________ |
|
2214 // |
|
2215 /** |
|
2216 @internal |
|
2217 @class CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest |
|
2218 @Depends CWspHeaderWriter & CUnitTest |
|
2219 |
|
2220 Comments : Unit Test for AcceptCharsetAnyCharset on CWspHeaderWriter, the class under test. |
|
2221 */ |
|
2222 class CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest : public CUnitTest |
|
2223 { |
|
2224 public: |
|
2225 /** |
|
2226 @fn NewL(CDataLogger& aDataLogger, |
|
2227 MUnitTestObserver& aObserver) |
|
2228 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
2229 cleanup stack. |
|
2230 Error Condition : Leaves with the error code. |
|
2231 @exceptions KErrNoMemory |
|
2232 @since 7.0 |
|
2233 @param aDataLogger The output logging object. |
|
2234 @param aObserver The observer of this UnitTest. |
|
2235 @return CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest* The constructed object. |
|
2236 @pre None. |
|
2237 @post CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest is fully constructed, and initialized. |
|
2238 */ |
|
2239 static CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest* NewL(CDataLogger& aDataLogger, |
|
2240 MUnitTestObserver& aObserver); |
|
2241 |
|
2242 /** |
|
2243 @fn RunError(TInt aError) |
|
2244 Intended Usage : Intercept the panic caused by a RunL leave, |
|
2245 to restore the CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest |
|
2246 object to a sensible state. |
|
2247 (called by the Active Scheduler immediately before the Panic). |
|
2248 Error Condition : @see CUnitTest::RunError(). |
|
2249 @since 7.0 |
|
2250 @return KErrNone if cleanup successful, otherwise |
|
2251 @see CUnitTest::RunError() |
|
2252 @pre CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest is fully constructed, and initialized. |
|
2253 @post The object has been restored to a sensible state. |
|
2254 */ |
|
2255 inline TInt RunError(TInt aError); |
|
2256 |
|
2257 /** |
|
2258 @fn ~CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest() |
|
2259 Intended Usage : Standard Destructor. |
|
2260 Error Condition : None. |
|
2261 @since 7.0 |
|
2262 @pre CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest is fully constructed. |
|
2263 @post CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest is fully destroyed. |
|
2264 */ |
|
2265 ~CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest(); |
|
2266 |
|
2267 private: |
|
2268 /** |
|
2269 @fn CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest(CDataLogger& aDataLogger, |
|
2270 MUnitTestObserver& aObserver) |
|
2271 Intended Usage : Default constructor. |
|
2272 Error Condition : None. |
|
2273 @since 7.0 |
|
2274 @param aDataLogger The output logging object. |
|
2275 @param aObserver The observer of this UnitTest. |
|
2276 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
2277 @pre None. |
|
2278 @post CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest is fully constructed. |
|
2279 */ |
|
2280 inline CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest(CDataLogger& aDataLogger, |
|
2281 MUnitTestObserver& aObserver); |
|
2282 |
|
2283 /** |
|
2284 @fn void ConstructL() |
|
2285 Intended Usage : Second phase of safe two phase construction, |
|
2286 to complete the object initialisation. |
|
2287 Error Condition : Leaves with an error code. |
|
2288 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
2289 @since 7.0 |
|
2290 @return None |
|
2291 @pre CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest is fully constructed. |
|
2292 @post CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest is fully initialized. |
|
2293 */ |
|
2294 void ConstructL(); |
|
2295 |
|
2296 /** |
|
2297 The context of the Unit Test. |
|
2298 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
2299 */ |
|
2300 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
2301 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
2302 /* C'tor, d'tor, and method transition validators */ |
|
2303 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
2304 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptCharsetAnyCharsetValidator; |
|
2305 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
2306 }; // CWspHeaderWriter_AcceptCharsetAnyCharset_UnitTest |
|
2307 |
|
2308 // ______________________________________________________________________________ |
|
2309 // |
|
2310 /** |
|
2311 @internal |
|
2312 @class CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest |
|
2313 @Depends CWspHeaderWriter & CUnitTest |
|
2314 |
|
2315 Comments : Unit Test for AcceptCharsetGeneralShortIntWithQVal on CWspHeaderWriter, the class under test. |
|
2316 */ |
|
2317 class CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest : public CUnitTest |
|
2318 { |
|
2319 public: |
|
2320 /** |
|
2321 @fn NewL(CDataLogger& aDataLogger, |
|
2322 MUnitTestObserver& aObserver) |
|
2323 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
2324 cleanup stack. |
|
2325 Error Condition : Leaves with the error code. |
|
2326 @exceptions KErrNoMemory |
|
2327 @since 7.0 |
|
2328 @param aDataLogger The output logging object. |
|
2329 @param aObserver The observer of this UnitTest. |
|
2330 @return CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest* The constructed object. |
|
2331 @pre None. |
|
2332 @post CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest is fully constructed, and initialized. |
|
2333 */ |
|
2334 static CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest* NewL(CDataLogger& aDataLogger, |
|
2335 MUnitTestObserver& aObserver); |
|
2336 |
|
2337 /** |
|
2338 @fn RunError(TInt aError) |
|
2339 Intended Usage : Intercept the panic caused by a RunL leave, |
|
2340 to restore the CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest |
|
2341 object to a sensible state. |
|
2342 (called by the Active Scheduler immediately before the Panic). |
|
2343 Error Condition : @see CUnitTest::RunError(). |
|
2344 @since 7.0 |
|
2345 @return KErrNone if cleanup successful, otherwise |
|
2346 @see CUnitTest::RunError() |
|
2347 @pre CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest is fully constructed, and initialized. |
|
2348 @post The object has been restored to a sensible state. |
|
2349 */ |
|
2350 inline TInt RunError(TInt aError); |
|
2351 |
|
2352 /** |
|
2353 @fn ~CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest() |
|
2354 Intended Usage : Standard Destructor. |
|
2355 Error Condition : None. |
|
2356 @since 7.0 |
|
2357 @pre CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest is fully constructed. |
|
2358 @post CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest is fully destroyed. |
|
2359 */ |
|
2360 ~CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest(); |
|
2361 |
|
2362 private: |
|
2363 /** |
|
2364 @fn CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest(CDataLogger& aDataLogger, |
|
2365 MUnitTestObserver& aObserver) |
|
2366 Intended Usage : Default constructor. |
|
2367 Error Condition : None. |
|
2368 @since 7.0 |
|
2369 @param aDataLogger The output logging object. |
|
2370 @param aObserver The observer of this UnitTest. |
|
2371 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
2372 @pre None. |
|
2373 @post CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest is fully constructed. |
|
2374 */ |
|
2375 inline CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest(CDataLogger& aDataLogger, |
|
2376 MUnitTestObserver& aObserver); |
|
2377 |
|
2378 /** |
|
2379 @fn void ConstructL() |
|
2380 Intended Usage : Second phase of safe two phase construction, |
|
2381 to complete the object initialisation. |
|
2382 Error Condition : Leaves with an error code. |
|
2383 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
2384 @since 7.0 |
|
2385 @return None |
|
2386 @pre CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest is fully constructed. |
|
2387 @post CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest is fully initialized. |
|
2388 */ |
|
2389 void ConstructL(); |
|
2390 |
|
2391 /** |
|
2392 The context of the Unit Test. |
|
2393 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
2394 */ |
|
2395 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
2396 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
2397 /* C'tor, d'tor, and method transition validators */ |
|
2398 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
2399 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptCharsetGeneralShortIntWithQValValidator; |
|
2400 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
2401 }; // CWspHeaderWriter_AcceptCharsetGeneralShortIntWithQVal_UnitTest |
|
2402 |
|
2403 // ______________________________________________________________________________ |
|
2404 // |
|
2405 /** |
|
2406 @internal |
|
2407 @class CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest |
|
2408 @Depends CWspHeaderWriter & CUnitTest |
|
2409 |
|
2410 Comments : Unit Test for AcceptCharsetGeneralLongIntQVal on CWspHeaderWriter, the class under test. |
|
2411 */ |
|
2412 class CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest : public CUnitTest |
|
2413 { |
|
2414 public: |
|
2415 /** |
|
2416 @fn NewL(CDataLogger& aDataLogger, |
|
2417 MUnitTestObserver& aObserver) |
|
2418 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
2419 cleanup stack. |
|
2420 Error Condition : Leaves with the error code. |
|
2421 @exceptions KErrNoMemory |
|
2422 @since 7.0 |
|
2423 @param aDataLogger The output logging object. |
|
2424 @param aObserver The observer of this UnitTest. |
|
2425 @return CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest* The constructed object. |
|
2426 @pre None. |
|
2427 @post CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest is fully constructed, and initialized. |
|
2428 */ |
|
2429 static CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest* NewL(CDataLogger& aDataLogger, |
|
2430 MUnitTestObserver& aObserver); |
|
2431 |
|
2432 /** |
|
2433 @fn RunError(TInt aError) |
|
2434 Intended Usage : Intercept the panic caused by a RunL leave, |
|
2435 to restore the CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest |
|
2436 object to a sensible state. |
|
2437 (called by the Active Scheduler immediately before the Panic). |
|
2438 Error Condition : @see CUnitTest::RunError(). |
|
2439 @since 7.0 |
|
2440 @return KErrNone if cleanup successful, otherwise |
|
2441 @see CUnitTest::RunError() |
|
2442 @pre CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest is fully constructed, and initialized. |
|
2443 @post The object has been restored to a sensible state. |
|
2444 */ |
|
2445 inline TInt RunError(TInt aError); |
|
2446 |
|
2447 /** |
|
2448 @fn ~CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest() |
|
2449 Intended Usage : Standard Destructor. |
|
2450 Error Condition : None. |
|
2451 @since 7.0 |
|
2452 @pre CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest is fully constructed. |
|
2453 @post CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest is fully destroyed. |
|
2454 */ |
|
2455 ~CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest(); |
|
2456 |
|
2457 private: |
|
2458 /** |
|
2459 @fn CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest(CDataLogger& aDataLogger, |
|
2460 MUnitTestObserver& aObserver) |
|
2461 Intended Usage : Default constructor. |
|
2462 Error Condition : None. |
|
2463 @since 7.0 |
|
2464 @param aDataLogger The output logging object. |
|
2465 @param aObserver The observer of this UnitTest. |
|
2466 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
2467 @pre None. |
|
2468 @post CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest is fully constructed. |
|
2469 */ |
|
2470 inline CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest(CDataLogger& aDataLogger, |
|
2471 MUnitTestObserver& aObserver); |
|
2472 |
|
2473 /** |
|
2474 @fn void ConstructL() |
|
2475 Intended Usage : Second phase of safe two phase construction, |
|
2476 to complete the object initialisation. |
|
2477 Error Condition : Leaves with an error code. |
|
2478 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
2479 @since 7.0 |
|
2480 @return None |
|
2481 @pre CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest is fully constructed. |
|
2482 @post CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest is fully initialized. |
|
2483 */ |
|
2484 void ConstructL(); |
|
2485 |
|
2486 /** |
|
2487 The context of the Unit Test. |
|
2488 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
2489 */ |
|
2490 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
2491 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
2492 /* C'tor, d'tor, and method transition validators */ |
|
2493 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
2494 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptCharsetGeneralLongIntQValValidator; |
|
2495 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
2496 }; // CWspHeaderWriter_AcceptCharsetGeneralLongIntQVal_UnitTest |
|
2497 |
|
2498 // ______________________________________________________________________________ |
|
2499 // |
|
2500 /** |
|
2501 @internal |
|
2502 @class CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest |
|
2503 @Depends CWspHeaderWriter & CUnitTest |
|
2504 |
|
2505 Comments : Unit Test for AcceptCharsetGeneralTextQVal on CWspHeaderWriter, the class under test. |
|
2506 */ |
|
2507 class CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest : public CUnitTest |
|
2508 { |
|
2509 public: |
|
2510 /** |
|
2511 @fn NewL(CDataLogger& aDataLogger, |
|
2512 MUnitTestObserver& aObserver) |
|
2513 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
2514 cleanup stack. |
|
2515 Error Condition : Leaves with the error code. |
|
2516 @exceptions KErrNoMemory |
|
2517 @since 7.0 |
|
2518 @param aDataLogger The output logging object. |
|
2519 @param aObserver The observer of this UnitTest. |
|
2520 @return CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest* The constructed object. |
|
2521 @pre None. |
|
2522 @post CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest is fully constructed, and initialized. |
|
2523 */ |
|
2524 static CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest* NewL(CDataLogger& aDataLogger, |
|
2525 MUnitTestObserver& aObserver); |
|
2526 |
|
2527 /** |
|
2528 @fn RunError(TInt aError) |
|
2529 Intended Usage : Intercept the panic caused by a RunL leave, |
|
2530 to restore the CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest |
|
2531 object to a sensible state. |
|
2532 (called by the Active Scheduler immediately before the Panic). |
|
2533 Error Condition : @see CUnitTest::RunError(). |
|
2534 @since 7.0 |
|
2535 @return KErrNone if cleanup successful, otherwise |
|
2536 @see CUnitTest::RunError() |
|
2537 @pre CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest is fully constructed, and initialized. |
|
2538 @post The object has been restored to a sensible state. |
|
2539 */ |
|
2540 inline TInt RunError(TInt aError); |
|
2541 |
|
2542 /** |
|
2543 @fn ~CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest() |
|
2544 Intended Usage : Standard Destructor. |
|
2545 Error Condition : None. |
|
2546 @since 7.0 |
|
2547 @pre CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest is fully constructed. |
|
2548 @post CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest is fully destroyed. |
|
2549 */ |
|
2550 ~CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest(); |
|
2551 |
|
2552 private: |
|
2553 /** |
|
2554 @fn CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest(CDataLogger& aDataLogger, |
|
2555 MUnitTestObserver& aObserver) |
|
2556 Intended Usage : Default constructor. |
|
2557 Error Condition : None. |
|
2558 @since 7.0 |
|
2559 @param aDataLogger The output logging object. |
|
2560 @param aObserver The observer of this UnitTest. |
|
2561 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
2562 @pre None. |
|
2563 @post CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest is fully constructed. |
|
2564 */ |
|
2565 inline CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest(CDataLogger& aDataLogger, |
|
2566 MUnitTestObserver& aObserver); |
|
2567 |
|
2568 /** |
|
2569 @fn void ConstructL() |
|
2570 Intended Usage : Second phase of safe two phase construction, |
|
2571 to complete the object initialisation. |
|
2572 Error Condition : Leaves with an error code. |
|
2573 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
2574 @since 7.0 |
|
2575 @return None |
|
2576 @pre CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest is fully constructed. |
|
2577 @post CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest is fully initialized. |
|
2578 */ |
|
2579 void ConstructL(); |
|
2580 |
|
2581 /** |
|
2582 The context of the Unit Test. |
|
2583 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
2584 */ |
|
2585 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
2586 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
2587 /* C'tor, d'tor, and method transition validators */ |
|
2588 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
2589 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptCharsetGeneralTextQValValidator; |
|
2590 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
2591 }; // CWspHeaderWriter_AcceptCharsetGeneralTextQVal_UnitTest |
|
2592 |
|
2593 // ______________________________________________________________________________ |
|
2594 // |
|
2595 /** |
|
2596 @internal |
|
2597 @class CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest |
|
2598 @Depends CWspHeaderWriter & CUnitTest |
|
2599 |
|
2600 Comments : Unit Test for AcceptCharsetAnyCharsetV1_2 on CWspHeaderWriter, the class under test. |
|
2601 */ |
|
2602 class CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest : public CUnitTest |
|
2603 { |
|
2604 public: |
|
2605 /** |
|
2606 @fn NewL(CDataLogger& aDataLogger, |
|
2607 MUnitTestObserver& aObserver) |
|
2608 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
2609 cleanup stack. |
|
2610 Error Condition : Leaves with the error code. |
|
2611 @exceptions KErrNoMemory |
|
2612 @since 7.0 |
|
2613 @param aDataLogger The output logging object. |
|
2614 @param aObserver The observer of this UnitTest. |
|
2615 @return CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest* The constructed object. |
|
2616 @pre None. |
|
2617 @post CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest is fully constructed, and initialized. |
|
2618 */ |
|
2619 static CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest* NewL(CDataLogger& aDataLogger, |
|
2620 MUnitTestObserver& aObserver); |
|
2621 |
|
2622 /** |
|
2623 @fn RunError(TInt aError) |
|
2624 Intended Usage : Intercept the panic caused by a RunL leave, |
|
2625 to restore the CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest |
|
2626 object to a sensible state. |
|
2627 (called by the Active Scheduler immediately before the Panic). |
|
2628 Error Condition : @see CUnitTest::RunError(). |
|
2629 @since 7.0 |
|
2630 @return KErrNone if cleanup successful, otherwise |
|
2631 @see CUnitTest::RunError() |
|
2632 @pre CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest is fully constructed, and initialized. |
|
2633 @post The object has been restored to a sensible state. |
|
2634 */ |
|
2635 inline TInt RunError(TInt aError); |
|
2636 |
|
2637 /** |
|
2638 @fn ~CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest() |
|
2639 Intended Usage : Standard Destructor. |
|
2640 Error Condition : None. |
|
2641 @since 7.0 |
|
2642 @pre CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest is fully constructed. |
|
2643 @post CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest is fully destroyed. |
|
2644 */ |
|
2645 ~CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest(); |
|
2646 |
|
2647 private: |
|
2648 /** |
|
2649 @fn CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest(CDataLogger& aDataLogger, |
|
2650 MUnitTestObserver& aObserver) |
|
2651 Intended Usage : Default constructor. |
|
2652 Error Condition : None. |
|
2653 @since 7.0 |
|
2654 @param aDataLogger The output logging object. |
|
2655 @param aObserver The observer of this UnitTest. |
|
2656 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
2657 @pre None. |
|
2658 @post CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest is fully constructed. |
|
2659 */ |
|
2660 inline CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest(CDataLogger& aDataLogger, |
|
2661 MUnitTestObserver& aObserver); |
|
2662 |
|
2663 /** |
|
2664 @fn void ConstructL() |
|
2665 Intended Usage : Second phase of safe two phase construction, |
|
2666 to complete the object initialisation. |
|
2667 Error Condition : Leaves with an error code. |
|
2668 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
2669 @since 7.0 |
|
2670 @return None |
|
2671 @pre CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest is fully constructed. |
|
2672 @post CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest is fully initialized. |
|
2673 */ |
|
2674 void ConstructL(); |
|
2675 |
|
2676 /** |
|
2677 The context of the Unit Test. |
|
2678 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
2679 */ |
|
2680 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
2681 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
2682 /* C'tor, d'tor, and method transition validators */ |
|
2683 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
2684 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptCharsetAnyCharsetV1_2Validator; |
|
2685 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
2686 }; // CWspHeaderWriter_AcceptCharsetAnyCharsetV1_2_UnitTest |
|
2687 |
|
2688 // ______________________________________________________________________________ |
|
2689 // |
|
2690 /** |
|
2691 @internal |
|
2692 @class CWspHeaderWriter_AcceptLanguageShortInt_UnitTest |
|
2693 @Depends CWspHeaderWriter & CUnitTest |
|
2694 |
|
2695 Comments : Unit Test for AcceptLanguageShortInt on CWspHeaderWriter, the class under test. |
|
2696 */ |
|
2697 class CWspHeaderWriter_AcceptLanguageShortInt_UnitTest : public CUnitTest |
|
2698 { |
|
2699 public: |
|
2700 /** |
|
2701 @fn NewL(CDataLogger& aDataLogger, |
|
2702 MUnitTestObserver& aObserver) |
|
2703 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
2704 cleanup stack. |
|
2705 Error Condition : Leaves with the error code. |
|
2706 @exceptions KErrNoMemory |
|
2707 @since 7.0 |
|
2708 @param aDataLogger The output logging object. |
|
2709 @param aObserver The observer of this UnitTest. |
|
2710 @return CWspHeaderWriter_AcceptLanguageShortInt_UnitTest* The constructed object. |
|
2711 @pre None. |
|
2712 @post CWspHeaderWriter_AcceptLanguageShortInt_UnitTest is fully constructed, and initialized. |
|
2713 */ |
|
2714 static CWspHeaderWriter_AcceptLanguageShortInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
2715 MUnitTestObserver& aObserver); |
|
2716 |
|
2717 /** |
|
2718 @fn RunError(TInt aError) |
|
2719 Intended Usage : Intercept the panic caused by a RunL leave, |
|
2720 to restore the CWspHeaderWriter_AcceptLanguageShortInt_UnitTest |
|
2721 object to a sensible state. |
|
2722 (called by the Active Scheduler immediately before the Panic). |
|
2723 Error Condition : @see CUnitTest::RunError(). |
|
2724 @since 7.0 |
|
2725 @return KErrNone if cleanup successful, otherwise |
|
2726 @see CUnitTest::RunError() |
|
2727 @pre CWspHeaderWriter_AcceptLanguageShortInt_UnitTest is fully constructed, and initialized. |
|
2728 @post The object has been restored to a sensible state. |
|
2729 */ |
|
2730 inline TInt RunError(TInt aError); |
|
2731 |
|
2732 /** |
|
2733 @fn ~CWspHeaderWriter_AcceptLanguageShortInt_UnitTest() |
|
2734 Intended Usage : Standard Destructor. |
|
2735 Error Condition : None. |
|
2736 @since 7.0 |
|
2737 @pre CWspHeaderWriter_AcceptLanguageShortInt_UnitTest is fully constructed. |
|
2738 @post CWspHeaderWriter_AcceptLanguageShortInt_UnitTest is fully destroyed. |
|
2739 */ |
|
2740 ~CWspHeaderWriter_AcceptLanguageShortInt_UnitTest(); |
|
2741 |
|
2742 private: |
|
2743 /** |
|
2744 @fn CWspHeaderWriter_AcceptLanguageShortInt_UnitTest(CDataLogger& aDataLogger, |
|
2745 MUnitTestObserver& aObserver) |
|
2746 Intended Usage : Default constructor. |
|
2747 Error Condition : None. |
|
2748 @since 7.0 |
|
2749 @param aDataLogger The output logging object. |
|
2750 @param aObserver The observer of this UnitTest. |
|
2751 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
2752 @pre None. |
|
2753 @post CWspHeaderWriter_AcceptLanguageShortInt_UnitTest is fully constructed. |
|
2754 */ |
|
2755 inline CWspHeaderWriter_AcceptLanguageShortInt_UnitTest(CDataLogger& aDataLogger, |
|
2756 MUnitTestObserver& aObserver); |
|
2757 |
|
2758 /** |
|
2759 @fn void ConstructL() |
|
2760 Intended Usage : Second phase of safe two phase construction, |
|
2761 to complete the object initialisation. |
|
2762 Error Condition : Leaves with an error code. |
|
2763 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
2764 @since 7.0 |
|
2765 @return None |
|
2766 @pre CWspHeaderWriter_AcceptLanguageShortInt_UnitTest is fully constructed. |
|
2767 @post CWspHeaderWriter_AcceptLanguageShortInt_UnitTest is fully initialized. |
|
2768 */ |
|
2769 void ConstructL(); |
|
2770 |
|
2771 /** |
|
2772 The context of the Unit Test. |
|
2773 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
2774 */ |
|
2775 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
2776 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
2777 /* C'tor, d'tor, and method transition validators */ |
|
2778 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
2779 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptLanguageShortIntValidator; |
|
2780 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
2781 }; // CWspHeaderWriter_AcceptLanguageShortInt_UnitTest |
|
2782 |
|
2783 // ______________________________________________________________________________ |
|
2784 // |
|
2785 /** |
|
2786 @internal |
|
2787 @class CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest |
|
2788 @Depends CWspHeaderWriter & CUnitTest |
|
2789 |
|
2790 Comments : Unit Test for AcceptLanguageAnyLang on CWspHeaderWriter, the class under test. |
|
2791 */ |
|
2792 class CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest : public CUnitTest |
|
2793 { |
|
2794 public: |
|
2795 /** |
|
2796 @fn NewL(CDataLogger& aDataLogger, |
|
2797 MUnitTestObserver& aObserver) |
|
2798 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
2799 cleanup stack. |
|
2800 Error Condition : Leaves with the error code. |
|
2801 @exceptions KErrNoMemory |
|
2802 @since 7.0 |
|
2803 @param aDataLogger The output logging object. |
|
2804 @param aObserver The observer of this UnitTest. |
|
2805 @return CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest* The constructed object. |
|
2806 @pre None. |
|
2807 @post CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest is fully constructed, and initialized. |
|
2808 */ |
|
2809 static CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest* NewL(CDataLogger& aDataLogger, |
|
2810 MUnitTestObserver& aObserver); |
|
2811 |
|
2812 /** |
|
2813 @fn RunError(TInt aError) |
|
2814 Intended Usage : Intercept the panic caused by a RunL leave, |
|
2815 to restore the CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest |
|
2816 object to a sensible state. |
|
2817 (called by the Active Scheduler immediately before the Panic). |
|
2818 Error Condition : @see CUnitTest::RunError(). |
|
2819 @since 7.0 |
|
2820 @return KErrNone if cleanup successful, otherwise |
|
2821 @see CUnitTest::RunError() |
|
2822 @pre CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest is fully constructed, and initialized. |
|
2823 @post The object has been restored to a sensible state. |
|
2824 */ |
|
2825 inline TInt RunError(TInt aError); |
|
2826 |
|
2827 /** |
|
2828 @fn ~CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest() |
|
2829 Intended Usage : Standard Destructor. |
|
2830 Error Condition : None. |
|
2831 @since 7.0 |
|
2832 @pre CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest is fully constructed. |
|
2833 @post CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest is fully destroyed. |
|
2834 */ |
|
2835 ~CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest(); |
|
2836 |
|
2837 private: |
|
2838 /** |
|
2839 @fn CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest(CDataLogger& aDataLogger, |
|
2840 MUnitTestObserver& aObserver) |
|
2841 Intended Usage : Default constructor. |
|
2842 Error Condition : None. |
|
2843 @since 7.0 |
|
2844 @param aDataLogger The output logging object. |
|
2845 @param aObserver The observer of this UnitTest. |
|
2846 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
2847 @pre None. |
|
2848 @post CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest is fully constructed. |
|
2849 */ |
|
2850 inline CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest(CDataLogger& aDataLogger, |
|
2851 MUnitTestObserver& aObserver); |
|
2852 |
|
2853 /** |
|
2854 @fn void ConstructL() |
|
2855 Intended Usage : Second phase of safe two phase construction, |
|
2856 to complete the object initialisation. |
|
2857 Error Condition : Leaves with an error code. |
|
2858 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
2859 @since 7.0 |
|
2860 @return None |
|
2861 @pre CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest is fully constructed. |
|
2862 @post CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest is fully initialized. |
|
2863 */ |
|
2864 void ConstructL(); |
|
2865 |
|
2866 /** |
|
2867 The context of the Unit Test. |
|
2868 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
2869 */ |
|
2870 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
2871 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
2872 /* C'tor, d'tor, and method transition validators */ |
|
2873 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
2874 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptLanguageAnyLangValidator; |
|
2875 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
2876 }; // CWspHeaderWriter_AcceptLanguageAnyLang_UnitTest |
|
2877 |
|
2878 // ______________________________________________________________________________ |
|
2879 // |
|
2880 /** |
|
2881 @internal |
|
2882 @class CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest |
|
2883 @Depends CWspHeaderWriter & CUnitTest |
|
2884 |
|
2885 Comments : Unit Test for AcceptLanguageGeneralShortQVal on CWspHeaderWriter, the class under test. |
|
2886 */ |
|
2887 class CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest : public CUnitTest |
|
2888 { |
|
2889 public: |
|
2890 /** |
|
2891 @fn NewL(CDataLogger& aDataLogger, |
|
2892 MUnitTestObserver& aObserver) |
|
2893 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
2894 cleanup stack. |
|
2895 Error Condition : Leaves with the error code. |
|
2896 @exceptions KErrNoMemory |
|
2897 @since 7.0 |
|
2898 @param aDataLogger The output logging object. |
|
2899 @param aObserver The observer of this UnitTest. |
|
2900 @return CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest* The constructed object. |
|
2901 @pre None. |
|
2902 @post CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest is fully constructed, and initialized. |
|
2903 */ |
|
2904 static CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest* NewL(CDataLogger& aDataLogger, |
|
2905 MUnitTestObserver& aObserver); |
|
2906 |
|
2907 /** |
|
2908 @fn RunError(TInt aError) |
|
2909 Intended Usage : Intercept the panic caused by a RunL leave, |
|
2910 to restore the CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest |
|
2911 object to a sensible state. |
|
2912 (called by the Active Scheduler immediately before the Panic). |
|
2913 Error Condition : @see CUnitTest::RunError(). |
|
2914 @since 7.0 |
|
2915 @return KErrNone if cleanup successful, otherwise |
|
2916 @see CUnitTest::RunError() |
|
2917 @pre CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest is fully constructed, and initialized. |
|
2918 @post The object has been restored to a sensible state. |
|
2919 */ |
|
2920 inline TInt RunError(TInt aError); |
|
2921 |
|
2922 /** |
|
2923 @fn ~CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest() |
|
2924 Intended Usage : Standard Destructor. |
|
2925 Error Condition : None. |
|
2926 @since 7.0 |
|
2927 @pre CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest is fully constructed. |
|
2928 @post CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest is fully destroyed. |
|
2929 */ |
|
2930 ~CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest(); |
|
2931 |
|
2932 private: |
|
2933 /** |
|
2934 @fn CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest(CDataLogger& aDataLogger, |
|
2935 MUnitTestObserver& aObserver) |
|
2936 Intended Usage : Default constructor. |
|
2937 Error Condition : None. |
|
2938 @since 7.0 |
|
2939 @param aDataLogger The output logging object. |
|
2940 @param aObserver The observer of this UnitTest. |
|
2941 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
2942 @pre None. |
|
2943 @post CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest is fully constructed. |
|
2944 */ |
|
2945 inline CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest(CDataLogger& aDataLogger, |
|
2946 MUnitTestObserver& aObserver); |
|
2947 |
|
2948 /** |
|
2949 @fn void ConstructL() |
|
2950 Intended Usage : Second phase of safe two phase construction, |
|
2951 to complete the object initialisation. |
|
2952 Error Condition : Leaves with an error code. |
|
2953 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
2954 @since 7.0 |
|
2955 @return None |
|
2956 @pre CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest is fully constructed. |
|
2957 @post CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest is fully initialized. |
|
2958 */ |
|
2959 void ConstructL(); |
|
2960 |
|
2961 /** |
|
2962 The context of the Unit Test. |
|
2963 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
2964 */ |
|
2965 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
2966 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
2967 /* C'tor, d'tor, and method transition validators */ |
|
2968 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
2969 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptLanguageGeneralShortQValValidator; |
|
2970 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
2971 }; // CWspHeaderWriter_AcceptLanguageGeneralShortQVal_UnitTest |
|
2972 |
|
2973 // ______________________________________________________________________________ |
|
2974 // |
|
2975 /** |
|
2976 @internal |
|
2977 @class CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest |
|
2978 @Depends CWspHeaderWriter & CUnitTest |
|
2979 |
|
2980 Comments : Unit Test for ContentLanguageGeneralLongInt on CWspHeaderWriter, the class under test. |
|
2981 */ |
|
2982 class CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest : public CUnitTest |
|
2983 { |
|
2984 public: |
|
2985 /** |
|
2986 @fn NewL(CDataLogger& aDataLogger, |
|
2987 MUnitTestObserver& aObserver) |
|
2988 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
2989 cleanup stack. |
|
2990 Error Condition : Leaves with the error code. |
|
2991 @exceptions KErrNoMemory |
|
2992 @since 7.0 |
|
2993 @param aDataLogger The output logging object. |
|
2994 @param aObserver The observer of this UnitTest. |
|
2995 @return CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest* The constructed object. |
|
2996 @pre None. |
|
2997 @post CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest is fully constructed, and initialized. |
|
2998 */ |
|
2999 static CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
3000 MUnitTestObserver& aObserver); |
|
3001 |
|
3002 /** |
|
3003 @fn RunError(TInt aError) |
|
3004 Intended Usage : Intercept the panic caused by a RunL leave, |
|
3005 to restore the CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest |
|
3006 object to a sensible state. |
|
3007 (called by the Active Scheduler immediately before the Panic). |
|
3008 Error Condition : @see CUnitTest::RunError(). |
|
3009 @since 7.0 |
|
3010 @return KErrNone if cleanup successful, otherwise |
|
3011 @see CUnitTest::RunError() |
|
3012 @pre CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest is fully constructed, and initialized. |
|
3013 @post The object has been restored to a sensible state. |
|
3014 */ |
|
3015 inline TInt RunError(TInt aError); |
|
3016 |
|
3017 /** |
|
3018 @fn ~CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest() |
|
3019 Intended Usage : Standard Destructor. |
|
3020 Error Condition : None. |
|
3021 @since 7.0 |
|
3022 @pre CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest is fully constructed. |
|
3023 @post CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest is fully destroyed. |
|
3024 */ |
|
3025 ~CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest(); |
|
3026 |
|
3027 private: |
|
3028 /** |
|
3029 @fn CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest(CDataLogger& aDataLogger, |
|
3030 MUnitTestObserver& aObserver) |
|
3031 Intended Usage : Default constructor. |
|
3032 Error Condition : None. |
|
3033 @since 7.0 |
|
3034 @param aDataLogger The output logging object. |
|
3035 @param aObserver The observer of this UnitTest. |
|
3036 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
3037 @pre None. |
|
3038 @post CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest is fully constructed. |
|
3039 */ |
|
3040 inline CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest(CDataLogger& aDataLogger, |
|
3041 MUnitTestObserver& aObserver); |
|
3042 |
|
3043 /** |
|
3044 @fn void ConstructL() |
|
3045 Intended Usage : Second phase of safe two phase construction, |
|
3046 to complete the object initialisation. |
|
3047 Error Condition : Leaves with an error code. |
|
3048 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
3049 @since 7.0 |
|
3050 @return None |
|
3051 @pre CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest is fully constructed. |
|
3052 @post CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest is fully initialized. |
|
3053 */ |
|
3054 void ConstructL(); |
|
3055 |
|
3056 /** |
|
3057 The context of the Unit Test. |
|
3058 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
3059 */ |
|
3060 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
3061 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
3062 /* C'tor, d'tor, and method transition validators */ |
|
3063 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
3064 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentLanguageGeneralLongIntValidator; |
|
3065 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
3066 }; // CWspHeaderWriter_ContentLanguageGeneralLongInt_UnitTest |
|
3067 |
|
3068 // ______________________________________________________________________________ |
|
3069 // |
|
3070 /** |
|
3071 @internal |
|
3072 @class CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest |
|
3073 @Depends CWspHeaderWriter & CUnitTest |
|
3074 |
|
3075 Comments : Unit Test for AcceptLanguageGeneralTextQVal on CWspHeaderWriter, the class under test. |
|
3076 */ |
|
3077 class CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest : public CUnitTest |
|
3078 { |
|
3079 public: |
|
3080 /** |
|
3081 @fn NewL(CDataLogger& aDataLogger, |
|
3082 MUnitTestObserver& aObserver) |
|
3083 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
3084 cleanup stack. |
|
3085 Error Condition : Leaves with the error code. |
|
3086 @exceptions KErrNoMemory |
|
3087 @since 7.0 |
|
3088 @param aDataLogger The output logging object. |
|
3089 @param aObserver The observer of this UnitTest. |
|
3090 @return CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest* The constructed object. |
|
3091 @pre None. |
|
3092 @post CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest is fully constructed, and initialized. |
|
3093 */ |
|
3094 static CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest* NewL(CDataLogger& aDataLogger, |
|
3095 MUnitTestObserver& aObserver); |
|
3096 |
|
3097 /** |
|
3098 @fn RunError(TInt aError) |
|
3099 Intended Usage : Intercept the panic caused by a RunL leave, |
|
3100 to restore the CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest |
|
3101 object to a sensible state. |
|
3102 (called by the Active Scheduler immediately before the Panic). |
|
3103 Error Condition : @see CUnitTest::RunError(). |
|
3104 @since 7.0 |
|
3105 @return KErrNone if cleanup successful, otherwise |
|
3106 @see CUnitTest::RunError() |
|
3107 @pre CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest is fully constructed, and initialized. |
|
3108 @post The object has been restored to a sensible state. |
|
3109 */ |
|
3110 inline TInt RunError(TInt aError); |
|
3111 |
|
3112 /** |
|
3113 @fn ~CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest() |
|
3114 Intended Usage : Standard Destructor. |
|
3115 Error Condition : None. |
|
3116 @since 7.0 |
|
3117 @pre CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest is fully constructed. |
|
3118 @post CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest is fully destroyed. |
|
3119 */ |
|
3120 ~CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest(); |
|
3121 |
|
3122 private: |
|
3123 /** |
|
3124 @fn CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest(CDataLogger& aDataLogger, |
|
3125 MUnitTestObserver& aObserver) |
|
3126 Intended Usage : Default constructor. |
|
3127 Error Condition : None. |
|
3128 @since 7.0 |
|
3129 @param aDataLogger The output logging object. |
|
3130 @param aObserver The observer of this UnitTest. |
|
3131 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
3132 @pre None. |
|
3133 @post CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest is fully constructed. |
|
3134 */ |
|
3135 inline CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest(CDataLogger& aDataLogger, |
|
3136 MUnitTestObserver& aObserver); |
|
3137 |
|
3138 /** |
|
3139 @fn void ConstructL() |
|
3140 Intended Usage : Second phase of safe two phase construction, |
|
3141 to complete the object initialisation. |
|
3142 Error Condition : Leaves with an error code. |
|
3143 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
3144 @since 7.0 |
|
3145 @return None |
|
3146 @pre CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest is fully constructed. |
|
3147 @post CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest is fully initialized. |
|
3148 */ |
|
3149 void ConstructL(); |
|
3150 |
|
3151 /** |
|
3152 The context of the Unit Test. |
|
3153 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
3154 */ |
|
3155 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
3156 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
3157 /* C'tor, d'tor, and method transition validators */ |
|
3158 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
3159 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptLanguageGeneralTextQValValidator; |
|
3160 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
3161 }; // CWspHeaderWriter_AcceptLanguageGeneralTextQVal_UnitTest |
|
3162 |
|
3163 // ______________________________________________________________________________ |
|
3164 // |
|
3165 /** |
|
3166 @internal |
|
3167 @class CWspHeaderWriter_AcceptLanguageText_UnitTest |
|
3168 @Depends CWspHeaderWriter & CUnitTest |
|
3169 |
|
3170 Comments : Unit Test for AcceptLanguageText on CWspHeaderWriter, the class under test. |
|
3171 */ |
|
3172 class CWspHeaderWriter_AcceptLanguageText_UnitTest : public CUnitTest |
|
3173 { |
|
3174 public: |
|
3175 /** |
|
3176 @fn NewL(CDataLogger& aDataLogger, |
|
3177 MUnitTestObserver& aObserver) |
|
3178 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
3179 cleanup stack. |
|
3180 Error Condition : Leaves with the error code. |
|
3181 @exceptions KErrNoMemory |
|
3182 @since 7.0 |
|
3183 @param aDataLogger The output logging object. |
|
3184 @param aObserver The observer of this UnitTest. |
|
3185 @return CWspHeaderWriter_AcceptLanguageText_UnitTest* The constructed object. |
|
3186 @pre None. |
|
3187 @post CWspHeaderWriter_AcceptLanguageText_UnitTest is fully constructed, and initialized. |
|
3188 */ |
|
3189 static CWspHeaderWriter_AcceptLanguageText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
3190 MUnitTestObserver& aObserver); |
|
3191 |
|
3192 /** |
|
3193 @fn RunError(TInt aError) |
|
3194 Intended Usage : Intercept the panic caused by a RunL leave, |
|
3195 to restore the CWspHeaderWriter_AcceptLanguageText_UnitTest |
|
3196 object to a sensible state. |
|
3197 (called by the Active Scheduler immediately before the Panic). |
|
3198 Error Condition : @see CUnitTest::RunError(). |
|
3199 @since 7.0 |
|
3200 @return KErrNone if cleanup successful, otherwise |
|
3201 @see CUnitTest::RunError() |
|
3202 @pre CWspHeaderWriter_AcceptLanguageText_UnitTest is fully constructed, and initialized. |
|
3203 @post The object has been restored to a sensible state. |
|
3204 */ |
|
3205 inline TInt RunError(TInt aError); |
|
3206 |
|
3207 /** |
|
3208 @fn ~CWspHeaderWriter_AcceptLanguageText_UnitTest() |
|
3209 Intended Usage : Standard Destructor. |
|
3210 Error Condition : None. |
|
3211 @since 7.0 |
|
3212 @pre CWspHeaderWriter_AcceptLanguageText_UnitTest is fully constructed. |
|
3213 @post CWspHeaderWriter_AcceptLanguageText_UnitTest is fully destroyed. |
|
3214 */ |
|
3215 ~CWspHeaderWriter_AcceptLanguageText_UnitTest(); |
|
3216 |
|
3217 private: |
|
3218 /** |
|
3219 @fn CWspHeaderWriter_AcceptLanguageText_UnitTest(CDataLogger& aDataLogger, |
|
3220 MUnitTestObserver& aObserver) |
|
3221 Intended Usage : Default constructor. |
|
3222 Error Condition : None. |
|
3223 @since 7.0 |
|
3224 @param aDataLogger The output logging object. |
|
3225 @param aObserver The observer of this UnitTest. |
|
3226 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
3227 @pre None. |
|
3228 @post CWspHeaderWriter_AcceptLanguageText_UnitTest is fully constructed. |
|
3229 */ |
|
3230 inline CWspHeaderWriter_AcceptLanguageText_UnitTest(CDataLogger& aDataLogger, |
|
3231 MUnitTestObserver& aObserver); |
|
3232 |
|
3233 /** |
|
3234 @fn void ConstructL() |
|
3235 Intended Usage : Second phase of safe two phase construction, |
|
3236 to complete the object initialisation. |
|
3237 Error Condition : Leaves with an error code. |
|
3238 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
3239 @since 7.0 |
|
3240 @return None |
|
3241 @pre CWspHeaderWriter_AcceptLanguageText_UnitTest is fully constructed. |
|
3242 @post CWspHeaderWriter_AcceptLanguageText_UnitTest is fully initialized. |
|
3243 */ |
|
3244 void ConstructL(); |
|
3245 |
|
3246 /** |
|
3247 The context of the Unit Test. |
|
3248 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
3249 */ |
|
3250 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
3251 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
3252 /* C'tor, d'tor, and method transition validators */ |
|
3253 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
3254 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptLanguageTextValidator; |
|
3255 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
3256 }; // CWspHeaderWriter_AcceptLanguageText_UnitTest |
|
3257 |
|
3258 // ______________________________________________________________________________ |
|
3259 // |
|
3260 /** |
|
3261 @internal |
|
3262 @class CWspHeaderWriter_ContentEncodingGZip_UnitTest |
|
3263 @Depends CWspHeaderWriter & CUnitTest |
|
3264 |
|
3265 Comments : Unit Test for ContentEncodingGZip on CWspHeaderWriter, the class under test. |
|
3266 */ |
|
3267 class CWspHeaderWriter_ContentEncodingGZip_UnitTest : public CUnitTest |
|
3268 { |
|
3269 public: |
|
3270 /** |
|
3271 @fn NewL(CDataLogger& aDataLogger, |
|
3272 MUnitTestObserver& aObserver) |
|
3273 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
3274 cleanup stack. |
|
3275 Error Condition : Leaves with the error code. |
|
3276 @exceptions KErrNoMemory |
|
3277 @since 7.0 |
|
3278 @param aDataLogger The output logging object. |
|
3279 @param aObserver The observer of this UnitTest. |
|
3280 @return CWspHeaderWriter_ContentEncodingGZip_UnitTest* The constructed object. |
|
3281 @pre None. |
|
3282 @post CWspHeaderWriter_ContentEncodingGZip_UnitTest is fully constructed, and initialized. |
|
3283 */ |
|
3284 static CWspHeaderWriter_ContentEncodingGZip_UnitTest* NewL(CDataLogger& aDataLogger, |
|
3285 MUnitTestObserver& aObserver); |
|
3286 |
|
3287 /** |
|
3288 @fn RunError(TInt aError) |
|
3289 Intended Usage : Intercept the panic caused by a RunL leave, |
|
3290 to restore the CWspHeaderWriter_ContentEncodingGZip_UnitTest |
|
3291 object to a sensible state. |
|
3292 (called by the Active Scheduler immediately before the Panic). |
|
3293 Error Condition : @see CUnitTest::RunError(). |
|
3294 @since 7.0 |
|
3295 @return KErrNone if cleanup successful, otherwise |
|
3296 @see CUnitTest::RunError() |
|
3297 @pre CWspHeaderWriter_ContentEncodingGZip_UnitTest is fully constructed, and initialized. |
|
3298 @post The object has been restored to a sensible state. |
|
3299 */ |
|
3300 inline TInt RunError(TInt aError); |
|
3301 |
|
3302 /** |
|
3303 @fn ~CWspHeaderWriter_ContentEncodingGZip_UnitTest() |
|
3304 Intended Usage : Standard Destructor. |
|
3305 Error Condition : None. |
|
3306 @since 7.0 |
|
3307 @pre CWspHeaderWriter_ContentEncodingGZip_UnitTest is fully constructed. |
|
3308 @post CWspHeaderWriter_ContentEncodingGZip_UnitTest is fully destroyed. |
|
3309 */ |
|
3310 ~CWspHeaderWriter_ContentEncodingGZip_UnitTest(); |
|
3311 |
|
3312 private: |
|
3313 /** |
|
3314 @fn CWspHeaderWriter_ContentEncodingGZip_UnitTest(CDataLogger& aDataLogger, |
|
3315 MUnitTestObserver& aObserver) |
|
3316 Intended Usage : Default constructor. |
|
3317 Error Condition : None. |
|
3318 @since 7.0 |
|
3319 @param aDataLogger The output logging object. |
|
3320 @param aObserver The observer of this UnitTest. |
|
3321 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
3322 @pre None. |
|
3323 @post CWspHeaderWriter_ContentEncodingGZip_UnitTest is fully constructed. |
|
3324 */ |
|
3325 inline CWspHeaderWriter_ContentEncodingGZip_UnitTest(CDataLogger& aDataLogger, |
|
3326 MUnitTestObserver& aObserver); |
|
3327 |
|
3328 /** |
|
3329 @fn void ConstructL() |
|
3330 Intended Usage : Second phase of safe two phase construction, |
|
3331 to complete the object initialisation. |
|
3332 Error Condition : Leaves with an error code. |
|
3333 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
3334 @since 7.0 |
|
3335 @return None |
|
3336 @pre CWspHeaderWriter_ContentEncodingGZip_UnitTest is fully constructed. |
|
3337 @post CWspHeaderWriter_ContentEncodingGZip_UnitTest is fully initialized. |
|
3338 */ |
|
3339 void ConstructL(); |
|
3340 |
|
3341 /** |
|
3342 The context of the Unit Test. |
|
3343 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
3344 */ |
|
3345 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
3346 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
3347 /* C'tor, d'tor, and method transition validators */ |
|
3348 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
3349 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentEncodingGZipValidator; |
|
3350 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
3351 }; // CWspHeaderWriter_ContentEncodingGZip_UnitTest |
|
3352 |
|
3353 // ______________________________________________________________________________ |
|
3354 // |
|
3355 /** |
|
3356 @internal |
|
3357 @class CWspHeaderWriter_ContentEncodingCompress_UnitTest |
|
3358 @Depends CWspHeaderWriter & CUnitTest |
|
3359 |
|
3360 Comments : Unit Test for ContentEncodingCompress on CWspHeaderWriter, the class under test. |
|
3361 */ |
|
3362 class CWspHeaderWriter_ContentEncodingCompress_UnitTest : public CUnitTest |
|
3363 { |
|
3364 public: |
|
3365 /** |
|
3366 @fn NewL(CDataLogger& aDataLogger, |
|
3367 MUnitTestObserver& aObserver) |
|
3368 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
3369 cleanup stack. |
|
3370 Error Condition : Leaves with the error code. |
|
3371 @exceptions KErrNoMemory |
|
3372 @since 7.0 |
|
3373 @param aDataLogger The output logging object. |
|
3374 @param aObserver The observer of this UnitTest. |
|
3375 @return CWspHeaderWriter_ContentEncodingCompress_UnitTest* The constructed object. |
|
3376 @pre None. |
|
3377 @post CWspHeaderWriter_ContentEncodingCompress_UnitTest is fully constructed, and initialized. |
|
3378 */ |
|
3379 static CWspHeaderWriter_ContentEncodingCompress_UnitTest* NewL(CDataLogger& aDataLogger, |
|
3380 MUnitTestObserver& aObserver); |
|
3381 |
|
3382 /** |
|
3383 @fn RunError(TInt aError) |
|
3384 Intended Usage : Intercept the panic caused by a RunL leave, |
|
3385 to restore the CWspHeaderWriter_ContentEncodingCompress_UnitTest |
|
3386 object to a sensible state. |
|
3387 (called by the Active Scheduler immediately before the Panic). |
|
3388 Error Condition : @see CUnitTest::RunError(). |
|
3389 @since 7.0 |
|
3390 @return KErrNone if cleanup successful, otherwise |
|
3391 @see CUnitTest::RunError() |
|
3392 @pre CWspHeaderWriter_ContentEncodingCompress_UnitTest is fully constructed, and initialized. |
|
3393 @post The object has been restored to a sensible state. |
|
3394 */ |
|
3395 inline TInt RunError(TInt aError); |
|
3396 |
|
3397 /** |
|
3398 @fn ~CWspHeaderWriter_ContentEncodingCompress_UnitTest() |
|
3399 Intended Usage : Standard Destructor. |
|
3400 Error Condition : None. |
|
3401 @since 7.0 |
|
3402 @pre CWspHeaderWriter_ContentEncodingCompress_UnitTest is fully constructed. |
|
3403 @post CWspHeaderWriter_ContentEncodingCompress_UnitTest is fully destroyed. |
|
3404 */ |
|
3405 ~CWspHeaderWriter_ContentEncodingCompress_UnitTest(); |
|
3406 |
|
3407 private: |
|
3408 /** |
|
3409 @fn CWspHeaderWriter_ContentEncodingCompress_UnitTest(CDataLogger& aDataLogger, |
|
3410 MUnitTestObserver& aObserver) |
|
3411 Intended Usage : Default constructor. |
|
3412 Error Condition : None. |
|
3413 @since 7.0 |
|
3414 @param aDataLogger The output logging object. |
|
3415 @param aObserver The observer of this UnitTest. |
|
3416 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
3417 @pre None. |
|
3418 @post CWspHeaderWriter_ContentEncodingCompress_UnitTest is fully constructed. |
|
3419 */ |
|
3420 inline CWspHeaderWriter_ContentEncodingCompress_UnitTest(CDataLogger& aDataLogger, |
|
3421 MUnitTestObserver& aObserver); |
|
3422 |
|
3423 /** |
|
3424 @fn void ConstructL() |
|
3425 Intended Usage : Second phase of safe two phase construction, |
|
3426 to complete the object initialisation. |
|
3427 Error Condition : Leaves with an error code. |
|
3428 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
3429 @since 7.0 |
|
3430 @return None |
|
3431 @pre CWspHeaderWriter_ContentEncodingCompress_UnitTest is fully constructed. |
|
3432 @post CWspHeaderWriter_ContentEncodingCompress_UnitTest is fully initialized. |
|
3433 */ |
|
3434 void ConstructL(); |
|
3435 |
|
3436 /** |
|
3437 The context of the Unit Test. |
|
3438 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
3439 */ |
|
3440 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
3441 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
3442 /* C'tor, d'tor, and method transition validators */ |
|
3443 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
3444 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentEncodingCompressValidator; |
|
3445 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
3446 }; // CWspHeaderWriter_ContentEncodingCompress_UnitTest |
|
3447 |
|
3448 // ______________________________________________________________________________ |
|
3449 // |
|
3450 /** |
|
3451 @internal |
|
3452 @class CWspHeaderWriter_ContentEncodingDeflate_UnitTest |
|
3453 @Depends CWspHeaderWriter & CUnitTest |
|
3454 |
|
3455 Comments : Unit Test for ContentEncodingDeflate on CWspHeaderWriter, the class under test. |
|
3456 */ |
|
3457 class CWspHeaderWriter_ContentEncodingDeflate_UnitTest : public CUnitTest |
|
3458 { |
|
3459 public: |
|
3460 /** |
|
3461 @fn NewL(CDataLogger& aDataLogger, |
|
3462 MUnitTestObserver& aObserver) |
|
3463 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
3464 cleanup stack. |
|
3465 Error Condition : Leaves with the error code. |
|
3466 @exceptions KErrNoMemory |
|
3467 @since 7.0 |
|
3468 @param aDataLogger The output logging object. |
|
3469 @param aObserver The observer of this UnitTest. |
|
3470 @return CWspHeaderWriter_ContentEncodingDeflate_UnitTest* The constructed object. |
|
3471 @pre None. |
|
3472 @post CWspHeaderWriter_ContentEncodingDeflate_UnitTest is fully constructed, and initialized. |
|
3473 */ |
|
3474 static CWspHeaderWriter_ContentEncodingDeflate_UnitTest* NewL(CDataLogger& aDataLogger, |
|
3475 MUnitTestObserver& aObserver); |
|
3476 |
|
3477 /** |
|
3478 @fn RunError(TInt aError) |
|
3479 Intended Usage : Intercept the panic caused by a RunL leave, |
|
3480 to restore the CWspHeaderWriter_ContentEncodingDeflate_UnitTest |
|
3481 object to a sensible state. |
|
3482 (called by the Active Scheduler immediately before the Panic). |
|
3483 Error Condition : @see CUnitTest::RunError(). |
|
3484 @since 7.0 |
|
3485 @return KErrNone if cleanup successful, otherwise |
|
3486 @see CUnitTest::RunError() |
|
3487 @pre CWspHeaderWriter_ContentEncodingDeflate_UnitTest is fully constructed, and initialized. |
|
3488 @post The object has been restored to a sensible state. |
|
3489 */ |
|
3490 inline TInt RunError(TInt aError); |
|
3491 |
|
3492 /** |
|
3493 @fn ~CWspHeaderWriter_ContentEncodingDeflate_UnitTest() |
|
3494 Intended Usage : Standard Destructor. |
|
3495 Error Condition : None. |
|
3496 @since 7.0 |
|
3497 @pre CWspHeaderWriter_ContentEncodingDeflate_UnitTest is fully constructed. |
|
3498 @post CWspHeaderWriter_ContentEncodingDeflate_UnitTest is fully destroyed. |
|
3499 */ |
|
3500 ~CWspHeaderWriter_ContentEncodingDeflate_UnitTest(); |
|
3501 |
|
3502 private: |
|
3503 /** |
|
3504 @fn CWspHeaderWriter_ContentEncodingDeflate_UnitTest(CDataLogger& aDataLogger, |
|
3505 MUnitTestObserver& aObserver) |
|
3506 Intended Usage : Default constructor. |
|
3507 Error Condition : None. |
|
3508 @since 7.0 |
|
3509 @param aDataLogger The output logging object. |
|
3510 @param aObserver The observer of this UnitTest. |
|
3511 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
3512 @pre None. |
|
3513 @post CWspHeaderWriter_ContentEncodingDeflate_UnitTest is fully constructed. |
|
3514 */ |
|
3515 inline CWspHeaderWriter_ContentEncodingDeflate_UnitTest(CDataLogger& aDataLogger, |
|
3516 MUnitTestObserver& aObserver); |
|
3517 |
|
3518 /** |
|
3519 @fn void ConstructL() |
|
3520 Intended Usage : Second phase of safe two phase construction, |
|
3521 to complete the object initialisation. |
|
3522 Error Condition : Leaves with an error code. |
|
3523 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
3524 @since 7.0 |
|
3525 @return None |
|
3526 @pre CWspHeaderWriter_ContentEncodingDeflate_UnitTest is fully constructed. |
|
3527 @post CWspHeaderWriter_ContentEncodingDeflate_UnitTest is fully initialized. |
|
3528 */ |
|
3529 void ConstructL(); |
|
3530 |
|
3531 /** |
|
3532 The context of the Unit Test. |
|
3533 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
3534 */ |
|
3535 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
3536 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
3537 /* C'tor, d'tor, and method transition validators */ |
|
3538 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
3539 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentEncodingDeflateValidator; |
|
3540 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
3541 }; // CWspHeaderWriter_ContentEncodingDeflate_UnitTest |
|
3542 |
|
3543 // ______________________________________________________________________________ |
|
3544 // |
|
3545 /** |
|
3546 @internal |
|
3547 @class CWspHeaderWriter_ContentEncodingText_UnitTest |
|
3548 @Depends CWspHeaderWriter & CUnitTest |
|
3549 |
|
3550 Comments : Unit Test for ContentEncodingText on CWspHeaderWriter, the class under test. |
|
3551 */ |
|
3552 class CWspHeaderWriter_ContentEncodingText_UnitTest : public CUnitTest |
|
3553 { |
|
3554 public: |
|
3555 /** |
|
3556 @fn NewL(CDataLogger& aDataLogger, |
|
3557 MUnitTestObserver& aObserver) |
|
3558 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
3559 cleanup stack. |
|
3560 Error Condition : Leaves with the error code. |
|
3561 @exceptions KErrNoMemory |
|
3562 @since 7.0 |
|
3563 @param aDataLogger The output logging object. |
|
3564 @param aObserver The observer of this UnitTest. |
|
3565 @return CWspHeaderWriter_ContentEncodingText_UnitTest* The constructed object. |
|
3566 @pre None. |
|
3567 @post CWspHeaderWriter_ContentEncodingText_UnitTest is fully constructed, and initialized. |
|
3568 */ |
|
3569 static CWspHeaderWriter_ContentEncodingText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
3570 MUnitTestObserver& aObserver); |
|
3571 |
|
3572 /** |
|
3573 @fn RunError(TInt aError) |
|
3574 Intended Usage : Intercept the panic caused by a RunL leave, |
|
3575 to restore the CWspHeaderWriter_ContentEncodingText_UnitTest |
|
3576 object to a sensible state. |
|
3577 (called by the Active Scheduler immediately before the Panic). |
|
3578 Error Condition : @see CUnitTest::RunError(). |
|
3579 @since 7.0 |
|
3580 @return KErrNone if cleanup successful, otherwise |
|
3581 @see CUnitTest::RunError() |
|
3582 @pre CWspHeaderWriter_ContentEncodingText_UnitTest is fully constructed, and initialized. |
|
3583 @post The object has been restored to a sensible state. |
|
3584 */ |
|
3585 inline TInt RunError(TInt aError); |
|
3586 |
|
3587 /** |
|
3588 @fn ~CWspHeaderWriter_ContentEncodingText_UnitTest() |
|
3589 Intended Usage : Standard Destructor. |
|
3590 Error Condition : None. |
|
3591 @since 7.0 |
|
3592 @pre CWspHeaderWriter_ContentEncodingText_UnitTest is fully constructed. |
|
3593 @post CWspHeaderWriter_ContentEncodingText_UnitTest is fully destroyed. |
|
3594 */ |
|
3595 ~CWspHeaderWriter_ContentEncodingText_UnitTest(); |
|
3596 |
|
3597 private: |
|
3598 /** |
|
3599 @fn CWspHeaderWriter_ContentEncodingText_UnitTest(CDataLogger& aDataLogger, |
|
3600 MUnitTestObserver& aObserver) |
|
3601 Intended Usage : Default constructor. |
|
3602 Error Condition : None. |
|
3603 @since 7.0 |
|
3604 @param aDataLogger The output logging object. |
|
3605 @param aObserver The observer of this UnitTest. |
|
3606 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
3607 @pre None. |
|
3608 @post CWspHeaderWriter_ContentEncodingText_UnitTest is fully constructed. |
|
3609 */ |
|
3610 inline CWspHeaderWriter_ContentEncodingText_UnitTest(CDataLogger& aDataLogger, |
|
3611 MUnitTestObserver& aObserver); |
|
3612 |
|
3613 /** |
|
3614 @fn void ConstructL() |
|
3615 Intended Usage : Second phase of safe two phase construction, |
|
3616 to complete the object initialisation. |
|
3617 Error Condition : Leaves with an error code. |
|
3618 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
3619 @since 7.0 |
|
3620 @return None |
|
3621 @pre CWspHeaderWriter_ContentEncodingText_UnitTest is fully constructed. |
|
3622 @post CWspHeaderWriter_ContentEncodingText_UnitTest is fully initialized. |
|
3623 */ |
|
3624 void ConstructL(); |
|
3625 |
|
3626 /** |
|
3627 The context of the Unit Test. |
|
3628 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
3629 */ |
|
3630 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
3631 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
3632 /* C'tor, d'tor, and method transition validators */ |
|
3633 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
3634 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentEncodingTextValidator; |
|
3635 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
3636 }; // CWspHeaderWriter_ContentEncodingText_UnitTest |
|
3637 |
|
3638 // ______________________________________________________________________________ |
|
3639 // |
|
3640 /** |
|
3641 @internal |
|
3642 @class CWspHeaderWriter_ContentLanguageShortInt_UnitTest |
|
3643 @Depends CWspHeaderWriter & CUnitTest |
|
3644 |
|
3645 Comments : Unit Test for ContentLanguageShortInt on CWspHeaderWriter, the class under test. |
|
3646 */ |
|
3647 class CWspHeaderWriter_ContentLanguageShortInt_UnitTest : public CUnitTest |
|
3648 { |
|
3649 public: |
|
3650 /** |
|
3651 @fn NewL(CDataLogger& aDataLogger, |
|
3652 MUnitTestObserver& aObserver) |
|
3653 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
3654 cleanup stack. |
|
3655 Error Condition : Leaves with the error code. |
|
3656 @exceptions KErrNoMemory |
|
3657 @since 7.0 |
|
3658 @param aDataLogger The output logging object. |
|
3659 @param aObserver The observer of this UnitTest. |
|
3660 @return CWspHeaderWriter_ContentLanguageShortInt_UnitTest* The constructed object. |
|
3661 @pre None. |
|
3662 @post CWspHeaderWriter_ContentLanguageShortInt_UnitTest is fully constructed, and initialized. |
|
3663 */ |
|
3664 static CWspHeaderWriter_ContentLanguageShortInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
3665 MUnitTestObserver& aObserver); |
|
3666 |
|
3667 /** |
|
3668 @fn RunError(TInt aError) |
|
3669 Intended Usage : Intercept the panic caused by a RunL leave, |
|
3670 to restore the CWspHeaderWriter_ContentLanguageShortInt_UnitTest |
|
3671 object to a sensible state. |
|
3672 (called by the Active Scheduler immediately before the Panic). |
|
3673 Error Condition : @see CUnitTest::RunError(). |
|
3674 @since 7.0 |
|
3675 @return KErrNone if cleanup successful, otherwise |
|
3676 @see CUnitTest::RunError() |
|
3677 @pre CWspHeaderWriter_ContentLanguageShortInt_UnitTest is fully constructed, and initialized. |
|
3678 @post The object has been restored to a sensible state. |
|
3679 */ |
|
3680 inline TInt RunError(TInt aError); |
|
3681 |
|
3682 /** |
|
3683 @fn ~CWspHeaderWriter_ContentLanguageShortInt_UnitTest() |
|
3684 Intended Usage : Standard Destructor. |
|
3685 Error Condition : None. |
|
3686 @since 7.0 |
|
3687 @pre CWspHeaderWriter_ContentLanguageShortInt_UnitTest is fully constructed. |
|
3688 @post CWspHeaderWriter_ContentLanguageShortInt_UnitTest is fully destroyed. |
|
3689 */ |
|
3690 ~CWspHeaderWriter_ContentLanguageShortInt_UnitTest(); |
|
3691 |
|
3692 private: |
|
3693 /** |
|
3694 @fn CWspHeaderWriter_ContentLanguageShortInt_UnitTest(CDataLogger& aDataLogger, |
|
3695 MUnitTestObserver& aObserver) |
|
3696 Intended Usage : Default constructor. |
|
3697 Error Condition : None. |
|
3698 @since 7.0 |
|
3699 @param aDataLogger The output logging object. |
|
3700 @param aObserver The observer of this UnitTest. |
|
3701 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
3702 @pre None. |
|
3703 @post CWspHeaderWriter_ContentLanguageShortInt_UnitTest is fully constructed. |
|
3704 */ |
|
3705 inline CWspHeaderWriter_ContentLanguageShortInt_UnitTest(CDataLogger& aDataLogger, |
|
3706 MUnitTestObserver& aObserver); |
|
3707 |
|
3708 /** |
|
3709 @fn void ConstructL() |
|
3710 Intended Usage : Second phase of safe two phase construction, |
|
3711 to complete the object initialisation. |
|
3712 Error Condition : Leaves with an error code. |
|
3713 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
3714 @since 7.0 |
|
3715 @return None |
|
3716 @pre CWspHeaderWriter_ContentLanguageShortInt_UnitTest is fully constructed. |
|
3717 @post CWspHeaderWriter_ContentLanguageShortInt_UnitTest is fully initialized. |
|
3718 */ |
|
3719 void ConstructL(); |
|
3720 |
|
3721 /** |
|
3722 The context of the Unit Test. |
|
3723 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
3724 */ |
|
3725 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
3726 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
3727 /* C'tor, d'tor, and method transition validators */ |
|
3728 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
3729 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentLanguageShortIntValidator; |
|
3730 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
3731 }; // CWspHeaderWriter_ContentLanguageShortInt_UnitTest |
|
3732 |
|
3733 // ______________________________________________________________________________ |
|
3734 // |
|
3735 /** |
|
3736 @internal |
|
3737 @class CWspHeaderWriter_ContentLanguageLongInt_UnitTest |
|
3738 @Depends CWspHeaderWriter & CUnitTest |
|
3739 |
|
3740 Comments : Unit Test for ContentLanguageLongInt on CWspHeaderWriter, the class under test. |
|
3741 */ |
|
3742 class CWspHeaderWriter_ContentLanguageLongInt_UnitTest : public CUnitTest |
|
3743 { |
|
3744 public: |
|
3745 /** |
|
3746 @fn NewL(CDataLogger& aDataLogger, |
|
3747 MUnitTestObserver& aObserver) |
|
3748 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
3749 cleanup stack. |
|
3750 Error Condition : Leaves with the error code. |
|
3751 @exceptions KErrNoMemory |
|
3752 @since 7.0 |
|
3753 @param aDataLogger The output logging object. |
|
3754 @param aObserver The observer of this UnitTest. |
|
3755 @return CWspHeaderWriter_ContentLanguageLongInt_UnitTest* The constructed object. |
|
3756 @pre None. |
|
3757 @post CWspHeaderWriter_ContentLanguageLongInt_UnitTest is fully constructed, and initialized. |
|
3758 */ |
|
3759 static CWspHeaderWriter_ContentLanguageLongInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
3760 MUnitTestObserver& aObserver); |
|
3761 |
|
3762 /** |
|
3763 @fn RunError(TInt aError) |
|
3764 Intended Usage : Intercept the panic caused by a RunL leave, |
|
3765 to restore the CWspHeaderWriter_ContentLanguageLongInt_UnitTest |
|
3766 object to a sensible state. |
|
3767 (called by the Active Scheduler immediately before the Panic). |
|
3768 Error Condition : @see CUnitTest::RunError(). |
|
3769 @since 7.0 |
|
3770 @return KErrNone if cleanup successful, otherwise |
|
3771 @see CUnitTest::RunError() |
|
3772 @pre CWspHeaderWriter_ContentLanguageLongInt_UnitTest is fully constructed, and initialized. |
|
3773 @post The object has been restored to a sensible state. |
|
3774 */ |
|
3775 inline TInt RunError(TInt aError); |
|
3776 |
|
3777 /** |
|
3778 @fn ~CWspHeaderWriter_ContentLanguageLongInt_UnitTest() |
|
3779 Intended Usage : Standard Destructor. |
|
3780 Error Condition : None. |
|
3781 @since 7.0 |
|
3782 @pre CWspHeaderWriter_ContentLanguageLongInt_UnitTest is fully constructed. |
|
3783 @post CWspHeaderWriter_ContentLanguageLongInt_UnitTest is fully destroyed. |
|
3784 */ |
|
3785 ~CWspHeaderWriter_ContentLanguageLongInt_UnitTest(); |
|
3786 |
|
3787 private: |
|
3788 /** |
|
3789 @fn CWspHeaderWriter_ContentLanguageLongInt_UnitTest(CDataLogger& aDataLogger, |
|
3790 MUnitTestObserver& aObserver) |
|
3791 Intended Usage : Default constructor. |
|
3792 Error Condition : None. |
|
3793 @since 7.0 |
|
3794 @param aDataLogger The output logging object. |
|
3795 @param aObserver The observer of this UnitTest. |
|
3796 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
3797 @pre None. |
|
3798 @post CWspHeaderWriter_ContentLanguageLongInt_UnitTest is fully constructed. |
|
3799 */ |
|
3800 inline CWspHeaderWriter_ContentLanguageLongInt_UnitTest(CDataLogger& aDataLogger, |
|
3801 MUnitTestObserver& aObserver); |
|
3802 |
|
3803 /** |
|
3804 @fn void ConstructL() |
|
3805 Intended Usage : Second phase of safe two phase construction, |
|
3806 to complete the object initialisation. |
|
3807 Error Condition : Leaves with an error code. |
|
3808 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
3809 @since 7.0 |
|
3810 @return None |
|
3811 @pre CWspHeaderWriter_ContentLanguageLongInt_UnitTest is fully constructed. |
|
3812 @post CWspHeaderWriter_ContentLanguageLongInt_UnitTest is fully initialized. |
|
3813 */ |
|
3814 void ConstructL(); |
|
3815 |
|
3816 /** |
|
3817 The context of the Unit Test. |
|
3818 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
3819 */ |
|
3820 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
3821 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
3822 /* C'tor, d'tor, and method transition validators */ |
|
3823 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
3824 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentLanguageLongIntValidator; |
|
3825 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
3826 }; // CWspHeaderWriter_ContentLanguageLongInt_UnitTest |
|
3827 |
|
3828 // ______________________________________________________________________________ |
|
3829 // |
|
3830 /** |
|
3831 @internal |
|
3832 @class CWspHeaderWriter_ContentLanguageText_UnitTest |
|
3833 @Depends CWspHeaderWriter & CUnitTest |
|
3834 |
|
3835 Comments : Unit Test for ContentLanguageText on CWspHeaderWriter, the class under test. |
|
3836 */ |
|
3837 class CWspHeaderWriter_ContentLanguageText_UnitTest : public CUnitTest |
|
3838 { |
|
3839 public: |
|
3840 /** |
|
3841 @fn NewL(CDataLogger& aDataLogger, |
|
3842 MUnitTestObserver& aObserver) |
|
3843 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
3844 cleanup stack. |
|
3845 Error Condition : Leaves with the error code. |
|
3846 @exceptions KErrNoMemory |
|
3847 @since 7.0 |
|
3848 @param aDataLogger The output logging object. |
|
3849 @param aObserver The observer of this UnitTest. |
|
3850 @return CWspHeaderWriter_ContentLanguageText_UnitTest* The constructed object. |
|
3851 @pre None. |
|
3852 @post CWspHeaderWriter_ContentLanguageText_UnitTest is fully constructed, and initialized. |
|
3853 */ |
|
3854 static CWspHeaderWriter_ContentLanguageText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
3855 MUnitTestObserver& aObserver); |
|
3856 |
|
3857 /** |
|
3858 @fn RunError(TInt aError) |
|
3859 Intended Usage : Intercept the panic caused by a RunL leave, |
|
3860 to restore the CWspHeaderWriter_ContentLanguageText_UnitTest |
|
3861 object to a sensible state. |
|
3862 (called by the Active Scheduler immediately before the Panic). |
|
3863 Error Condition : @see CUnitTest::RunError(). |
|
3864 @since 7.0 |
|
3865 @return KErrNone if cleanup successful, otherwise |
|
3866 @see CUnitTest::RunError() |
|
3867 @pre CWspHeaderWriter_ContentLanguageText_UnitTest is fully constructed, and initialized. |
|
3868 @post The object has been restored to a sensible state. |
|
3869 */ |
|
3870 inline TInt RunError(TInt aError); |
|
3871 |
|
3872 /** |
|
3873 @fn ~CWspHeaderWriter_ContentLanguageText_UnitTest() |
|
3874 Intended Usage : Standard Destructor. |
|
3875 Error Condition : None. |
|
3876 @since 7.0 |
|
3877 @pre CWspHeaderWriter_ContentLanguageText_UnitTest is fully constructed. |
|
3878 @post CWspHeaderWriter_ContentLanguageText_UnitTest is fully destroyed. |
|
3879 */ |
|
3880 ~CWspHeaderWriter_ContentLanguageText_UnitTest(); |
|
3881 |
|
3882 private: |
|
3883 /** |
|
3884 @fn CWspHeaderWriter_ContentLanguageText_UnitTest(CDataLogger& aDataLogger, |
|
3885 MUnitTestObserver& aObserver) |
|
3886 Intended Usage : Default constructor. |
|
3887 Error Condition : None. |
|
3888 @since 7.0 |
|
3889 @param aDataLogger The output logging object. |
|
3890 @param aObserver The observer of this UnitTest. |
|
3891 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
3892 @pre None. |
|
3893 @post CWspHeaderWriter_ContentLanguageText_UnitTest is fully constructed. |
|
3894 */ |
|
3895 inline CWspHeaderWriter_ContentLanguageText_UnitTest(CDataLogger& aDataLogger, |
|
3896 MUnitTestObserver& aObserver); |
|
3897 |
|
3898 /** |
|
3899 @fn void ConstructL() |
|
3900 Intended Usage : Second phase of safe two phase construction, |
|
3901 to complete the object initialisation. |
|
3902 Error Condition : Leaves with an error code. |
|
3903 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
3904 @since 7.0 |
|
3905 @return None |
|
3906 @pre CWspHeaderWriter_ContentLanguageText_UnitTest is fully constructed. |
|
3907 @post CWspHeaderWriter_ContentLanguageText_UnitTest is fully initialized. |
|
3908 */ |
|
3909 void ConstructL(); |
|
3910 |
|
3911 /** |
|
3912 The context of the Unit Test. |
|
3913 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
3914 */ |
|
3915 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
3916 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
3917 /* C'tor, d'tor, and method transition validators */ |
|
3918 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
3919 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentLanguageTextValidator; |
|
3920 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
3921 }; // CWspHeaderWriter_ContentLanguageText_UnitTest |
|
3922 |
|
3923 // ______________________________________________________________________________ |
|
3924 // |
|
3925 /** |
|
3926 @internal |
|
3927 @class CWspHeaderWriter_ContentMD516ByteData_UnitTest |
|
3928 @Depends CWspHeaderWriter & CUnitTest |
|
3929 |
|
3930 Comments : Unit Test for ContentMD516ByteData on CWspHeaderWriter, the class under test. |
|
3931 */ |
|
3932 class CWspHeaderWriter_ContentMD516ByteData_UnitTest : public CUnitTest |
|
3933 { |
|
3934 public: |
|
3935 /** |
|
3936 @fn NewL(CDataLogger& aDataLogger, |
|
3937 MUnitTestObserver& aObserver) |
|
3938 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
3939 cleanup stack. |
|
3940 Error Condition : Leaves with the error code. |
|
3941 @exceptions KErrNoMemory |
|
3942 @since 7.0 |
|
3943 @param aDataLogger The output logging object. |
|
3944 @param aObserver The observer of this UnitTest. |
|
3945 @return CWspHeaderWriter_ContentMD516ByteData_UnitTest* The constructed object. |
|
3946 @pre None. |
|
3947 @post CWspHeaderWriter_ContentMD516ByteData_UnitTest is fully constructed, and initialized. |
|
3948 */ |
|
3949 static CWspHeaderWriter_ContentMD516ByteData_UnitTest* NewL(CDataLogger& aDataLogger, |
|
3950 MUnitTestObserver& aObserver); |
|
3951 |
|
3952 /** |
|
3953 @fn RunError(TInt aError) |
|
3954 Intended Usage : Intercept the panic caused by a RunL leave, |
|
3955 to restore the CWspHeaderWriter_ContentMD516ByteData_UnitTest |
|
3956 object to a sensible state. |
|
3957 (called by the Active Scheduler immediately before the Panic). |
|
3958 Error Condition : @see CUnitTest::RunError(). |
|
3959 @since 7.0 |
|
3960 @return KErrNone if cleanup successful, otherwise |
|
3961 @see CUnitTest::RunError() |
|
3962 @pre CWspHeaderWriter_ContentMD516ByteData_UnitTest is fully constructed, and initialized. |
|
3963 @post The object has been restored to a sensible state. |
|
3964 */ |
|
3965 inline TInt RunError(TInt aError); |
|
3966 |
|
3967 /** |
|
3968 @fn ~CWspHeaderWriter_ContentMD516ByteData_UnitTest() |
|
3969 Intended Usage : Standard Destructor. |
|
3970 Error Condition : None. |
|
3971 @since 7.0 |
|
3972 @pre CWspHeaderWriter_ContentMD516ByteData_UnitTest is fully constructed. |
|
3973 @post CWspHeaderWriter_ContentMD516ByteData_UnitTest is fully destroyed. |
|
3974 */ |
|
3975 ~CWspHeaderWriter_ContentMD516ByteData_UnitTest(); |
|
3976 |
|
3977 private: |
|
3978 /** |
|
3979 @fn CWspHeaderWriter_ContentMD516ByteData_UnitTest(CDataLogger& aDataLogger, |
|
3980 MUnitTestObserver& aObserver) |
|
3981 Intended Usage : Default constructor. |
|
3982 Error Condition : None. |
|
3983 @since 7.0 |
|
3984 @param aDataLogger The output logging object. |
|
3985 @param aObserver The observer of this UnitTest. |
|
3986 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
3987 @pre None. |
|
3988 @post CWspHeaderWriter_ContentMD516ByteData_UnitTest is fully constructed. |
|
3989 */ |
|
3990 inline CWspHeaderWriter_ContentMD516ByteData_UnitTest(CDataLogger& aDataLogger, |
|
3991 MUnitTestObserver& aObserver); |
|
3992 |
|
3993 /** |
|
3994 @fn void ConstructL() |
|
3995 Intended Usage : Second phase of safe two phase construction, |
|
3996 to complete the object initialisation. |
|
3997 Error Condition : Leaves with an error code. |
|
3998 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
3999 @since 7.0 |
|
4000 @return None |
|
4001 @pre CWspHeaderWriter_ContentMD516ByteData_UnitTest is fully constructed. |
|
4002 @post CWspHeaderWriter_ContentMD516ByteData_UnitTest is fully initialized. |
|
4003 */ |
|
4004 void ConstructL(); |
|
4005 |
|
4006 /** |
|
4007 The context of the Unit Test. |
|
4008 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
4009 */ |
|
4010 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
4011 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
4012 /* C'tor, d'tor, and method transition validators */ |
|
4013 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
4014 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentMD516ByteDataValidator; |
|
4015 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
4016 }; // CWspHeaderWriter_ContentMD516ByteData_UnitTest |
|
4017 |
|
4018 // ______________________________________________________________________________ |
|
4019 // |
|
4020 /** |
|
4021 @internal |
|
4022 @class CWspHeaderWriter_ContentMD531ByteData_UnitTest |
|
4023 @Depends CWspHeaderWriter & CUnitTest |
|
4024 |
|
4025 Comments : Unit Test for ContentMD531ByteData on CWspHeaderWriter, the class under test. |
|
4026 */ |
|
4027 class CWspHeaderWriter_ContentMD531ByteData_UnitTest : public CUnitTest |
|
4028 { |
|
4029 public: |
|
4030 /** |
|
4031 @fn NewL(CDataLogger& aDataLogger, |
|
4032 MUnitTestObserver& aObserver) |
|
4033 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
4034 cleanup stack. |
|
4035 Error Condition : Leaves with the error code. |
|
4036 @exceptions KErrNoMemory |
|
4037 @since 7.0 |
|
4038 @param aDataLogger The output logging object. |
|
4039 @param aObserver The observer of this UnitTest. |
|
4040 @return CWspHeaderWriter_ContentMD531ByteData_UnitTest* The constructed object. |
|
4041 @pre None. |
|
4042 @post CWspHeaderWriter_ContentMD531ByteData_UnitTest is fully constructed, and initialized. |
|
4043 */ |
|
4044 static CWspHeaderWriter_ContentMD531ByteData_UnitTest* NewL(CDataLogger& aDataLogger, |
|
4045 MUnitTestObserver& aObserver); |
|
4046 |
|
4047 /** |
|
4048 @fn RunError(TInt aError) |
|
4049 Intended Usage : Intercept the panic caused by a RunL leave, |
|
4050 to restore the CWspHeaderWriter_ContentMD531ByteData_UnitTest |
|
4051 object to a sensible state. |
|
4052 (called by the Active Scheduler immediately before the Panic). |
|
4053 Error Condition : @see CUnitTest::RunError(). |
|
4054 @since 7.0 |
|
4055 @return KErrNone if cleanup successful, otherwise |
|
4056 @see CUnitTest::RunError() |
|
4057 @pre CWspHeaderWriter_ContentMD531ByteData_UnitTest is fully constructed, and initialized. |
|
4058 @post The object has been restored to a sensible state. |
|
4059 */ |
|
4060 inline TInt RunError(TInt aError); |
|
4061 |
|
4062 /** |
|
4063 @fn ~CWspHeaderWriter_ContentMD531ByteData_UnitTest() |
|
4064 Intended Usage : Standard Destructor. |
|
4065 Error Condition : None. |
|
4066 @since 7.0 |
|
4067 @pre CWspHeaderWriter_ContentMD531ByteData_UnitTest is fully constructed. |
|
4068 @post CWspHeaderWriter_ContentMD531ByteData_UnitTest is fully destroyed. |
|
4069 */ |
|
4070 ~CWspHeaderWriter_ContentMD531ByteData_UnitTest(); |
|
4071 |
|
4072 private: |
|
4073 /** |
|
4074 @fn CWspHeaderWriter_ContentMD531ByteData_UnitTest(CDataLogger& aDataLogger, |
|
4075 MUnitTestObserver& aObserver) |
|
4076 Intended Usage : Default constructor. |
|
4077 Error Condition : None. |
|
4078 @since 7.0 |
|
4079 @param aDataLogger The output logging object. |
|
4080 @param aObserver The observer of this UnitTest. |
|
4081 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
4082 @pre None. |
|
4083 @post CWspHeaderWriter_ContentMD531ByteData_UnitTest is fully constructed. |
|
4084 */ |
|
4085 inline CWspHeaderWriter_ContentMD531ByteData_UnitTest(CDataLogger& aDataLogger, |
|
4086 MUnitTestObserver& aObserver); |
|
4087 |
|
4088 /** |
|
4089 @fn void ConstructL() |
|
4090 Intended Usage : Second phase of safe two phase construction, |
|
4091 to complete the object initialisation. |
|
4092 Error Condition : Leaves with an error code. |
|
4093 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
4094 @since 7.0 |
|
4095 @return None |
|
4096 @pre CWspHeaderWriter_ContentMD531ByteData_UnitTest is fully constructed. |
|
4097 @post CWspHeaderWriter_ContentMD531ByteData_UnitTest is fully initialized. |
|
4098 */ |
|
4099 void ConstructL(); |
|
4100 |
|
4101 /** |
|
4102 The context of the Unit Test. |
|
4103 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
4104 */ |
|
4105 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
4106 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
4107 /* C'tor, d'tor, and method transition validators */ |
|
4108 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
4109 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentMD531ByteDataValidator; |
|
4110 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
4111 }; // CWspHeaderWriter_ContentMD531ByteData_UnitTest |
|
4112 |
|
4113 // ______________________________________________________________________________ |
|
4114 // |
|
4115 /** |
|
4116 @internal |
|
4117 @class CWspHeaderWriter_Date_UnitTest |
|
4118 @Depends CWspHeaderWriter & CUnitTest |
|
4119 |
|
4120 Comments : Unit Test for Date on CWspHeaderWriter, the class under test. |
|
4121 */ |
|
4122 class CWspHeaderWriter_Date_UnitTest : public CUnitTest |
|
4123 { |
|
4124 public: |
|
4125 /** |
|
4126 @fn NewL(CDataLogger& aDataLogger, |
|
4127 MUnitTestObserver& aObserver) |
|
4128 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
4129 cleanup stack. |
|
4130 Error Condition : Leaves with the error code. |
|
4131 @exceptions KErrNoMemory |
|
4132 @since 7.0 |
|
4133 @param aDataLogger The output logging object. |
|
4134 @param aObserver The observer of this UnitTest. |
|
4135 @return CWspHeaderWriter_Date_UnitTest* The constructed object. |
|
4136 @pre None. |
|
4137 @post CWspHeaderWriter_Date_UnitTest is fully constructed, and initialized. |
|
4138 */ |
|
4139 static CWspHeaderWriter_Date_UnitTest* NewL(CDataLogger& aDataLogger, |
|
4140 MUnitTestObserver& aObserver); |
|
4141 |
|
4142 /** |
|
4143 @fn RunError(TInt aError) |
|
4144 Intended Usage : Intercept the panic caused by a RunL leave, |
|
4145 to restore the CWspHeaderWriter_Date_UnitTest |
|
4146 object to a sensible state. |
|
4147 (called by the Active Scheduler immediately before the Panic). |
|
4148 Error Condition : @see CUnitTest::RunError(). |
|
4149 @since 7.0 |
|
4150 @return KErrNone if cleanup successful, otherwise |
|
4151 @see CUnitTest::RunError() |
|
4152 @pre CWspHeaderWriter_Date_UnitTest is fully constructed, and initialized. |
|
4153 @post The object has been restored to a sensible state. |
|
4154 */ |
|
4155 inline TInt RunError(TInt aError); |
|
4156 |
|
4157 /** |
|
4158 @fn ~CWspHeaderWriter_Date_UnitTest() |
|
4159 Intended Usage : Standard Destructor. |
|
4160 Error Condition : None. |
|
4161 @since 7.0 |
|
4162 @pre CWspHeaderWriter_Date_UnitTest is fully constructed. |
|
4163 @post CWspHeaderWriter_Date_UnitTest is fully destroyed. |
|
4164 */ |
|
4165 ~CWspHeaderWriter_Date_UnitTest(); |
|
4166 |
|
4167 private: |
|
4168 /** |
|
4169 @fn CWspHeaderWriter_Date_UnitTest(CDataLogger& aDataLogger, |
|
4170 MUnitTestObserver& aObserver) |
|
4171 Intended Usage : Default constructor. |
|
4172 Error Condition : None. |
|
4173 @since 7.0 |
|
4174 @param aDataLogger The output logging object. |
|
4175 @param aObserver The observer of this UnitTest. |
|
4176 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
4177 @pre None. |
|
4178 @post CWspHeaderWriter_Date_UnitTest is fully constructed. |
|
4179 */ |
|
4180 inline CWspHeaderWriter_Date_UnitTest(CDataLogger& aDataLogger, |
|
4181 MUnitTestObserver& aObserver); |
|
4182 |
|
4183 /** |
|
4184 @fn void ConstructL() |
|
4185 Intended Usage : Second phase of safe two phase construction, |
|
4186 to complete the object initialisation. |
|
4187 Error Condition : Leaves with an error code. |
|
4188 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
4189 @since 7.0 |
|
4190 @return None |
|
4191 @pre CWspHeaderWriter_Date_UnitTest is fully constructed. |
|
4192 @post CWspHeaderWriter_Date_UnitTest is fully initialized. |
|
4193 */ |
|
4194 void ConstructL(); |
|
4195 |
|
4196 /** |
|
4197 The context of the Unit Test. |
|
4198 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
4199 */ |
|
4200 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
4201 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
4202 /* C'tor, d'tor, and method transition validators */ |
|
4203 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
4204 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iDateValidator; |
|
4205 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
4206 }; // CWspHeaderWriter_Date_UnitTest |
|
4207 |
|
4208 // ______________________________________________________________________________ |
|
4209 // |
|
4210 /** |
|
4211 @internal |
|
4212 @class CWspHeaderWriter_FromText_UnitTest |
|
4213 @Depends CWspHeaderWriter & CUnitTest |
|
4214 |
|
4215 Comments : Unit Test for FromText on CWspHeaderWriter, the class under test. |
|
4216 */ |
|
4217 class CWspHeaderWriter_FromText_UnitTest : public CUnitTest |
|
4218 { |
|
4219 public: |
|
4220 /** |
|
4221 @fn NewL(CDataLogger& aDataLogger, |
|
4222 MUnitTestObserver& aObserver) |
|
4223 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
4224 cleanup stack. |
|
4225 Error Condition : Leaves with the error code. |
|
4226 @exceptions KErrNoMemory |
|
4227 @since 7.0 |
|
4228 @param aDataLogger The output logging object. |
|
4229 @param aObserver The observer of this UnitTest. |
|
4230 @return CWspHeaderWriter_FromText_UnitTest* The constructed object. |
|
4231 @pre None. |
|
4232 @post CWspHeaderWriter_FromText_UnitTest is fully constructed, and initialized. |
|
4233 */ |
|
4234 static CWspHeaderWriter_FromText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
4235 MUnitTestObserver& aObserver); |
|
4236 |
|
4237 /** |
|
4238 @fn RunError(TInt aError) |
|
4239 Intended Usage : Intercept the panic caused by a RunL leave, |
|
4240 to restore the CWspHeaderWriter_FromText_UnitTest |
|
4241 object to a sensible state. |
|
4242 (called by the Active Scheduler immediately before the Panic). |
|
4243 Error Condition : @see CUnitTest::RunError(). |
|
4244 @since 7.0 |
|
4245 @return KErrNone if cleanup successful, otherwise |
|
4246 @see CUnitTest::RunError() |
|
4247 @pre CWspHeaderWriter_FromText_UnitTest is fully constructed, and initialized. |
|
4248 @post The object has been restored to a sensible state. |
|
4249 */ |
|
4250 inline TInt RunError(TInt aError); |
|
4251 |
|
4252 /** |
|
4253 @fn ~CWspHeaderWriter_FromText_UnitTest() |
|
4254 Intended Usage : Standard Destructor. |
|
4255 Error Condition : None. |
|
4256 @since 7.0 |
|
4257 @pre CWspHeaderWriter_FromText_UnitTest is fully constructed. |
|
4258 @post CWspHeaderWriter_FromText_UnitTest is fully destroyed. |
|
4259 */ |
|
4260 ~CWspHeaderWriter_FromText_UnitTest(); |
|
4261 |
|
4262 private: |
|
4263 /** |
|
4264 @fn CWspHeaderWriter_FromText_UnitTest(CDataLogger& aDataLogger, |
|
4265 MUnitTestObserver& aObserver) |
|
4266 Intended Usage : Default constructor. |
|
4267 Error Condition : None. |
|
4268 @since 7.0 |
|
4269 @param aDataLogger The output logging object. |
|
4270 @param aObserver The observer of this UnitTest. |
|
4271 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
4272 @pre None. |
|
4273 @post CWspHeaderWriter_FromText_UnitTest is fully constructed. |
|
4274 */ |
|
4275 inline CWspHeaderWriter_FromText_UnitTest(CDataLogger& aDataLogger, |
|
4276 MUnitTestObserver& aObserver); |
|
4277 |
|
4278 /** |
|
4279 @fn void ConstructL() |
|
4280 Intended Usage : Second phase of safe two phase construction, |
|
4281 to complete the object initialisation. |
|
4282 Error Condition : Leaves with an error code. |
|
4283 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
4284 @since 7.0 |
|
4285 @return None |
|
4286 @pre CWspHeaderWriter_FromText_UnitTest is fully constructed. |
|
4287 @post CWspHeaderWriter_FromText_UnitTest is fully initialized. |
|
4288 */ |
|
4289 void ConstructL(); |
|
4290 |
|
4291 /** |
|
4292 The context of the Unit Test. |
|
4293 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
4294 */ |
|
4295 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
4296 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
4297 /* C'tor, d'tor, and method transition validators */ |
|
4298 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
4299 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iFromTextValidator; |
|
4300 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
4301 }; // CWspHeaderWriter_FromText_UnitTest |
|
4302 |
|
4303 // ______________________________________________________________________________ |
|
4304 // |
|
4305 /** |
|
4306 @internal |
|
4307 @class CWspHeaderWriter_FromNullText_UnitTest |
|
4308 @Depends CWspHeaderWriter & CUnitTest |
|
4309 |
|
4310 Comments : Unit Test for FromNullText on CWspHeaderWriter, the class under test. |
|
4311 */ |
|
4312 class CWspHeaderWriter_FromNullText_UnitTest : public CUnitTest |
|
4313 { |
|
4314 public: |
|
4315 /** |
|
4316 @fn NewL(CDataLogger& aDataLogger, |
|
4317 MUnitTestObserver& aObserver) |
|
4318 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
4319 cleanup stack. |
|
4320 Error Condition : Leaves with the error code. |
|
4321 @exceptions KErrNoMemory |
|
4322 @since 7.0 |
|
4323 @param aDataLogger The output logging object. |
|
4324 @param aObserver The observer of this UnitTest. |
|
4325 @return CWspHeaderWriter_FromNullText_UnitTest* The constructed object. |
|
4326 @pre None. |
|
4327 @post CWspHeaderWriter_FromNullText_UnitTest is fully constructed, and initialized. |
|
4328 */ |
|
4329 static CWspHeaderWriter_FromNullText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
4330 MUnitTestObserver& aObserver); |
|
4331 |
|
4332 /** |
|
4333 @fn RunError(TInt aError) |
|
4334 Intended Usage : Intercept the panic caused by a RunL leave, |
|
4335 to restore the CWspHeaderWriter_FromNullText_UnitTest |
|
4336 object to a sensible state. |
|
4337 (called by the Active Scheduler immediately before the Panic). |
|
4338 Error Condition : @see CUnitTest::RunError(). |
|
4339 @since 7.0 |
|
4340 @return KErrNone if cleanup successful, otherwise |
|
4341 @see CUnitTest::RunError() |
|
4342 @pre CWspHeaderWriter_FromNullText_UnitTest is fully constructed, and initialized. |
|
4343 @post The object has been restored to a sensible state. |
|
4344 */ |
|
4345 inline TInt RunError(TInt aError); |
|
4346 |
|
4347 /** |
|
4348 @fn ~CWspHeaderWriter_FromNullText_UnitTest() |
|
4349 Intended Usage : Standard Destructor. |
|
4350 Error Condition : None. |
|
4351 @since 7.0 |
|
4352 @pre CWspHeaderWriter_FromNullText_UnitTest is fully constructed. |
|
4353 @post CWspHeaderWriter_FromNullText_UnitTest is fully destroyed. |
|
4354 */ |
|
4355 ~CWspHeaderWriter_FromNullText_UnitTest(); |
|
4356 |
|
4357 private: |
|
4358 /** |
|
4359 @fn CWspHeaderWriter_FromNullText_UnitTest(CDataLogger& aDataLogger, |
|
4360 MUnitTestObserver& aObserver) |
|
4361 Intended Usage : Default constructor. |
|
4362 Error Condition : None. |
|
4363 @since 7.0 |
|
4364 @param aDataLogger The output logging object. |
|
4365 @param aObserver The observer of this UnitTest. |
|
4366 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
4367 @pre None. |
|
4368 @post CWspHeaderWriter_FromNullText_UnitTest is fully constructed. |
|
4369 */ |
|
4370 inline CWspHeaderWriter_FromNullText_UnitTest(CDataLogger& aDataLogger, |
|
4371 MUnitTestObserver& aObserver); |
|
4372 |
|
4373 /** |
|
4374 @fn void ConstructL() |
|
4375 Intended Usage : Second phase of safe two phase construction, |
|
4376 to complete the object initialisation. |
|
4377 Error Condition : Leaves with an error code. |
|
4378 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
4379 @since 7.0 |
|
4380 @return None |
|
4381 @pre CWspHeaderWriter_FromNullText_UnitTest is fully constructed. |
|
4382 @post CWspHeaderWriter_FromNullText_UnitTest is fully initialized. |
|
4383 */ |
|
4384 void ConstructL(); |
|
4385 |
|
4386 /** |
|
4387 The context of the Unit Test. |
|
4388 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
4389 */ |
|
4390 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
4391 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
4392 /* C'tor, d'tor, and method transition validators */ |
|
4393 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
4394 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iFromNullTextValidator; |
|
4395 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
4396 }; // CWspHeaderWriter_FromNullText_UnitTest |
|
4397 |
|
4398 // ______________________________________________________________________________ |
|
4399 // |
|
4400 /** |
|
4401 @internal |
|
4402 @class CWspHeaderWriter_LastModified_UnitTest |
|
4403 @Depends CWspHeaderWriter & CUnitTest |
|
4404 |
|
4405 Comments : Unit Test for LastModified on CWspHeaderWriter, the class under test. |
|
4406 */ |
|
4407 class CWspHeaderWriter_LastModified_UnitTest : public CUnitTest |
|
4408 { |
|
4409 public: |
|
4410 /** |
|
4411 @fn NewL(CDataLogger& aDataLogger, |
|
4412 MUnitTestObserver& aObserver) |
|
4413 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
4414 cleanup stack. |
|
4415 Error Condition : Leaves with the error code. |
|
4416 @exceptions KErrNoMemory |
|
4417 @since 7.0 |
|
4418 @param aDataLogger The output logging object. |
|
4419 @param aObserver The observer of this UnitTest. |
|
4420 @return CWspHeaderWriter_LastModified_UnitTest* The constructed object. |
|
4421 @pre None. |
|
4422 @post CWspHeaderWriter_LastModified_UnitTest is fully constructed, and initialized. |
|
4423 */ |
|
4424 static CWspHeaderWriter_LastModified_UnitTest* NewL(CDataLogger& aDataLogger, |
|
4425 MUnitTestObserver& aObserver); |
|
4426 |
|
4427 /** |
|
4428 @fn RunError(TInt aError) |
|
4429 Intended Usage : Intercept the panic caused by a RunL leave, |
|
4430 to restore the CWspHeaderWriter_LastModified_UnitTest |
|
4431 object to a sensible state. |
|
4432 (called by the Active Scheduler immediately before the Panic). |
|
4433 Error Condition : @see CUnitTest::RunError(). |
|
4434 @since 7.0 |
|
4435 @return KErrNone if cleanup successful, otherwise |
|
4436 @see CUnitTest::RunError() |
|
4437 @pre CWspHeaderWriter_LastModified_UnitTest is fully constructed, and initialized. |
|
4438 @post The object has been restored to a sensible state. |
|
4439 */ |
|
4440 inline TInt RunError(TInt aError); |
|
4441 |
|
4442 /** |
|
4443 @fn ~CWspHeaderWriter_LastModified_UnitTest() |
|
4444 Intended Usage : Standard Destructor. |
|
4445 Error Condition : None. |
|
4446 @since 7.0 |
|
4447 @pre CWspHeaderWriter_LastModified_UnitTest is fully constructed. |
|
4448 @post CWspHeaderWriter_LastModified_UnitTest is fully destroyed. |
|
4449 */ |
|
4450 ~CWspHeaderWriter_LastModified_UnitTest(); |
|
4451 |
|
4452 private: |
|
4453 /** |
|
4454 @fn CWspHeaderWriter_LastModified_UnitTest(CDataLogger& aDataLogger, |
|
4455 MUnitTestObserver& aObserver) |
|
4456 Intended Usage : Default constructor. |
|
4457 Error Condition : None. |
|
4458 @since 7.0 |
|
4459 @param aDataLogger The output logging object. |
|
4460 @param aObserver The observer of this UnitTest. |
|
4461 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
4462 @pre None. |
|
4463 @post CWspHeaderWriter_LastModified_UnitTest is fully constructed. |
|
4464 */ |
|
4465 inline CWspHeaderWriter_LastModified_UnitTest(CDataLogger& aDataLogger, |
|
4466 MUnitTestObserver& aObserver); |
|
4467 |
|
4468 /** |
|
4469 @fn void ConstructL() |
|
4470 Intended Usage : Second phase of safe two phase construction, |
|
4471 to complete the object initialisation. |
|
4472 Error Condition : Leaves with an error code. |
|
4473 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
4474 @since 7.0 |
|
4475 @return None |
|
4476 @pre CWspHeaderWriter_LastModified_UnitTest is fully constructed. |
|
4477 @post CWspHeaderWriter_LastModified_UnitTest is fully initialized. |
|
4478 */ |
|
4479 void ConstructL(); |
|
4480 |
|
4481 /** |
|
4482 The context of the Unit Test. |
|
4483 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
4484 */ |
|
4485 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
4486 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
4487 /* C'tor, d'tor, and method transition validators */ |
|
4488 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
4489 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iLastModifiedValidator; |
|
4490 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
4491 }; // CWspHeaderWriter_LastModified_UnitTest |
|
4492 |
|
4493 // ______________________________________________________________________________ |
|
4494 // |
|
4495 /** |
|
4496 @internal |
|
4497 @class CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest |
|
4498 @Depends CWspHeaderWriter & CUnitTest |
|
4499 |
|
4500 Comments : Unit Test for RangeByteRangeNoLastPos on CWspHeaderWriter, the class under test. |
|
4501 */ |
|
4502 class CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest : public CUnitTest |
|
4503 { |
|
4504 public: |
|
4505 /** |
|
4506 @fn NewL(CDataLogger& aDataLogger, |
|
4507 MUnitTestObserver& aObserver) |
|
4508 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
4509 cleanup stack. |
|
4510 Error Condition : Leaves with the error code. |
|
4511 @exceptions KErrNoMemory |
|
4512 @since 7.0 |
|
4513 @param aDataLogger The output logging object. |
|
4514 @param aObserver The observer of this UnitTest. |
|
4515 @return CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest* The constructed object. |
|
4516 @pre None. |
|
4517 @post CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest is fully constructed, and initialized. |
|
4518 */ |
|
4519 static CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest* NewL(CDataLogger& aDataLogger, |
|
4520 MUnitTestObserver& aObserver); |
|
4521 |
|
4522 /** |
|
4523 @fn RunError(TInt aError) |
|
4524 Intended Usage : Intercept the panic caused by a RunL leave, |
|
4525 to restore the CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest |
|
4526 object to a sensible state. |
|
4527 (called by the Active Scheduler immediately before the Panic). |
|
4528 Error Condition : @see CUnitTest::RunError(). |
|
4529 @since 7.0 |
|
4530 @return KErrNone if cleanup successful, otherwise |
|
4531 @see CUnitTest::RunError() |
|
4532 @pre CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest is fully constructed, and initialized. |
|
4533 @post The object has been restored to a sensible state. |
|
4534 */ |
|
4535 inline TInt RunError(TInt aError); |
|
4536 |
|
4537 /** |
|
4538 @fn ~CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest() |
|
4539 Intended Usage : Standard Destructor. |
|
4540 Error Condition : None. |
|
4541 @since 7.0 |
|
4542 @pre CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest is fully constructed. |
|
4543 @post CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest is fully destroyed. |
|
4544 */ |
|
4545 ~CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest(); |
|
4546 |
|
4547 private: |
|
4548 /** |
|
4549 @fn CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest(CDataLogger& aDataLogger, |
|
4550 MUnitTestObserver& aObserver) |
|
4551 Intended Usage : Default constructor. |
|
4552 Error Condition : None. |
|
4553 @since 7.0 |
|
4554 @param aDataLogger The output logging object. |
|
4555 @param aObserver The observer of this UnitTest. |
|
4556 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
4557 @pre None. |
|
4558 @post CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest is fully constructed. |
|
4559 */ |
|
4560 inline CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest(CDataLogger& aDataLogger, |
|
4561 MUnitTestObserver& aObserver); |
|
4562 |
|
4563 /** |
|
4564 @fn void ConstructL() |
|
4565 Intended Usage : Second phase of safe two phase construction, |
|
4566 to complete the object initialisation. |
|
4567 Error Condition : Leaves with an error code. |
|
4568 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
4569 @since 7.0 |
|
4570 @return None |
|
4571 @pre CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest is fully constructed. |
|
4572 @post CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest is fully initialized. |
|
4573 */ |
|
4574 void ConstructL(); |
|
4575 |
|
4576 /** |
|
4577 The context of the Unit Test. |
|
4578 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
4579 */ |
|
4580 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
4581 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
4582 /* C'tor, d'tor, and method transition validators */ |
|
4583 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
4584 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iRangeByteRangeNoLastPosValidator; |
|
4585 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
4586 }; // CWspHeaderWriter_RangeByteRangeNoLastPos_UnitTest |
|
4587 |
|
4588 // ______________________________________________________________________________ |
|
4589 // |
|
4590 /** |
|
4591 @internal |
|
4592 @class CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest |
|
4593 @Depends CWspHeaderWriter & CUnitTest |
|
4594 |
|
4595 Comments : Unit Test for RangeByteRangeWithLastPos on CWspHeaderWriter, the class under test. |
|
4596 */ |
|
4597 class CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest : public CUnitTest |
|
4598 { |
|
4599 public: |
|
4600 /** |
|
4601 @fn NewL(CDataLogger& aDataLogger, |
|
4602 MUnitTestObserver& aObserver) |
|
4603 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
4604 cleanup stack. |
|
4605 Error Condition : Leaves with the error code. |
|
4606 @exceptions KErrNoMemory |
|
4607 @since 7.0 |
|
4608 @param aDataLogger The output logging object. |
|
4609 @param aObserver The observer of this UnitTest. |
|
4610 @return CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest* The constructed object. |
|
4611 @pre None. |
|
4612 @post CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest is fully constructed, and initialized. |
|
4613 */ |
|
4614 static CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest* NewL(CDataLogger& aDataLogger, |
|
4615 MUnitTestObserver& aObserver); |
|
4616 |
|
4617 /** |
|
4618 @fn RunError(TInt aError) |
|
4619 Intended Usage : Intercept the panic caused by a RunL leave, |
|
4620 to restore the CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest |
|
4621 object to a sensible state. |
|
4622 (called by the Active Scheduler immediately before the Panic). |
|
4623 Error Condition : @see CUnitTest::RunError(). |
|
4624 @since 7.0 |
|
4625 @return KErrNone if cleanup successful, otherwise |
|
4626 @see CUnitTest::RunError() |
|
4627 @pre CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest is fully constructed, and initialized. |
|
4628 @post The object has been restored to a sensible state. |
|
4629 */ |
|
4630 inline TInt RunError(TInt aError); |
|
4631 |
|
4632 /** |
|
4633 @fn ~CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest() |
|
4634 Intended Usage : Standard Destructor. |
|
4635 Error Condition : None. |
|
4636 @since 7.0 |
|
4637 @pre CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest is fully constructed. |
|
4638 @post CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest is fully destroyed. |
|
4639 */ |
|
4640 ~CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest(); |
|
4641 |
|
4642 private: |
|
4643 /** |
|
4644 @fn CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest(CDataLogger& aDataLogger, |
|
4645 MUnitTestObserver& aObserver) |
|
4646 Intended Usage : Default constructor. |
|
4647 Error Condition : None. |
|
4648 @since 7.0 |
|
4649 @param aDataLogger The output logging object. |
|
4650 @param aObserver The observer of this UnitTest. |
|
4651 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
4652 @pre None. |
|
4653 @post CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest is fully constructed. |
|
4654 */ |
|
4655 inline CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest(CDataLogger& aDataLogger, |
|
4656 MUnitTestObserver& aObserver); |
|
4657 |
|
4658 /** |
|
4659 @fn void ConstructL() |
|
4660 Intended Usage : Second phase of safe two phase construction, |
|
4661 to complete the object initialisation. |
|
4662 Error Condition : Leaves with an error code. |
|
4663 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
4664 @since 7.0 |
|
4665 @return None |
|
4666 @pre CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest is fully constructed. |
|
4667 @post CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest is fully initialized. |
|
4668 */ |
|
4669 void ConstructL(); |
|
4670 |
|
4671 /** |
|
4672 The context of the Unit Test. |
|
4673 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
4674 */ |
|
4675 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
4676 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
4677 /* C'tor, d'tor, and method transition validators */ |
|
4678 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
4679 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iRangeByteRangeWithLastPosValidator; |
|
4680 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
4681 }; // CWspHeaderWriter_RangeByteRangeWithLastPos_UnitTest |
|
4682 |
|
4683 // ______________________________________________________________________________ |
|
4684 // |
|
4685 /** |
|
4686 @internal |
|
4687 @class CWspHeaderWriter_RangeSuffixRange_UnitTest |
|
4688 @Depends CWspHeaderWriter & CUnitTest |
|
4689 |
|
4690 Comments : Unit Test for RangeSuffixRange on CWspHeaderWriter, the class under test. |
|
4691 */ |
|
4692 class CWspHeaderWriter_RangeSuffixRange_UnitTest : public CUnitTest |
|
4693 { |
|
4694 public: |
|
4695 /** |
|
4696 @fn NewL(CDataLogger& aDataLogger, |
|
4697 MUnitTestObserver& aObserver) |
|
4698 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
4699 cleanup stack. |
|
4700 Error Condition : Leaves with the error code. |
|
4701 @exceptions KErrNoMemory |
|
4702 @since 7.0 |
|
4703 @param aDataLogger The output logging object. |
|
4704 @param aObserver The observer of this UnitTest. |
|
4705 @return CWspHeaderWriter_RangeSuffixRange_UnitTest* The constructed object. |
|
4706 @pre None. |
|
4707 @post CWspHeaderWriter_RangeSuffixRange_UnitTest is fully constructed, and initialized. |
|
4708 */ |
|
4709 static CWspHeaderWriter_RangeSuffixRange_UnitTest* NewL(CDataLogger& aDataLogger, |
|
4710 MUnitTestObserver& aObserver); |
|
4711 |
|
4712 /** |
|
4713 @fn RunError(TInt aError) |
|
4714 Intended Usage : Intercept the panic caused by a RunL leave, |
|
4715 to restore the CWspHeaderWriter_RangeSuffixRange_UnitTest |
|
4716 object to a sensible state. |
|
4717 (called by the Active Scheduler immediately before the Panic). |
|
4718 Error Condition : @see CUnitTest::RunError(). |
|
4719 @since 7.0 |
|
4720 @return KErrNone if cleanup successful, otherwise |
|
4721 @see CUnitTest::RunError() |
|
4722 @pre CWspHeaderWriter_RangeSuffixRange_UnitTest is fully constructed, and initialized. |
|
4723 @post The object has been restored to a sensible state. |
|
4724 */ |
|
4725 inline TInt RunError(TInt aError); |
|
4726 |
|
4727 /** |
|
4728 @fn ~CWspHeaderWriter_RangeSuffixRange_UnitTest() |
|
4729 Intended Usage : Standard Destructor. |
|
4730 Error Condition : None. |
|
4731 @since 7.0 |
|
4732 @pre CWspHeaderWriter_RangeSuffixRange_UnitTest is fully constructed. |
|
4733 @post CWspHeaderWriter_RangeSuffixRange_UnitTest is fully destroyed. |
|
4734 */ |
|
4735 ~CWspHeaderWriter_RangeSuffixRange_UnitTest(); |
|
4736 |
|
4737 private: |
|
4738 /** |
|
4739 @fn CWspHeaderWriter_RangeSuffixRange_UnitTest(CDataLogger& aDataLogger, |
|
4740 MUnitTestObserver& aObserver) |
|
4741 Intended Usage : Default constructor. |
|
4742 Error Condition : None. |
|
4743 @since 7.0 |
|
4744 @param aDataLogger The output logging object. |
|
4745 @param aObserver The observer of this UnitTest. |
|
4746 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
4747 @pre None. |
|
4748 @post CWspHeaderWriter_RangeSuffixRange_UnitTest is fully constructed. |
|
4749 */ |
|
4750 inline CWspHeaderWriter_RangeSuffixRange_UnitTest(CDataLogger& aDataLogger, |
|
4751 MUnitTestObserver& aObserver); |
|
4752 |
|
4753 /** |
|
4754 @fn void ConstructL() |
|
4755 Intended Usage : Second phase of safe two phase construction, |
|
4756 to complete the object initialisation. |
|
4757 Error Condition : Leaves with an error code. |
|
4758 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
4759 @since 7.0 |
|
4760 @return None |
|
4761 @pre CWspHeaderWriter_RangeSuffixRange_UnitTest is fully constructed. |
|
4762 @post CWspHeaderWriter_RangeSuffixRange_UnitTest is fully initialized. |
|
4763 */ |
|
4764 void ConstructL(); |
|
4765 |
|
4766 /** |
|
4767 The context of the Unit Test. |
|
4768 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
4769 */ |
|
4770 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
4771 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
4772 /* C'tor, d'tor, and method transition validators */ |
|
4773 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
4774 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iRangeSuffixRangeValidator; |
|
4775 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
4776 }; // CWspHeaderWriter_RangeSuffixRange_UnitTest |
|
4777 |
|
4778 // ______________________________________________________________________________ |
|
4779 // |
|
4780 /** |
|
4781 @internal |
|
4782 @class CWspHeaderWriter_RefererUri_UnitTest |
|
4783 @Depends CWspHeaderWriter & CUnitTest |
|
4784 |
|
4785 Comments : Unit Test for RefererUri on CWspHeaderWriter, the class under test. |
|
4786 */ |
|
4787 class CWspHeaderWriter_RefererUri_UnitTest : public CUnitTest |
|
4788 { |
|
4789 public: |
|
4790 /** |
|
4791 @fn NewL(CDataLogger& aDataLogger, |
|
4792 MUnitTestObserver& aObserver) |
|
4793 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
4794 cleanup stack. |
|
4795 Error Condition : Leaves with the error code. |
|
4796 @exceptions KErrNoMemory |
|
4797 @since 7.0 |
|
4798 @param aDataLogger The output logging object. |
|
4799 @param aObserver The observer of this UnitTest. |
|
4800 @return CWspHeaderWriter_RefererUri_UnitTest* The constructed object. |
|
4801 @pre None. |
|
4802 @post CWspHeaderWriter_RefererUri_UnitTest is fully constructed, and initialized. |
|
4803 */ |
|
4804 static CWspHeaderWriter_RefererUri_UnitTest* NewL(CDataLogger& aDataLogger, |
|
4805 MUnitTestObserver& aObserver); |
|
4806 |
|
4807 /** |
|
4808 @fn RunError(TInt aError) |
|
4809 Intended Usage : Intercept the panic caused by a RunL leave, |
|
4810 to restore the CWspHeaderWriter_RefererUri_UnitTest |
|
4811 object to a sensible state. |
|
4812 (called by the Active Scheduler immediately before the Panic). |
|
4813 Error Condition : @see CUnitTest::RunError(). |
|
4814 @since 7.0 |
|
4815 @return KErrNone if cleanup successful, otherwise |
|
4816 @see CUnitTest::RunError() |
|
4817 @pre CWspHeaderWriter_RefererUri_UnitTest is fully constructed, and initialized. |
|
4818 @post The object has been restored to a sensible state. |
|
4819 */ |
|
4820 inline TInt RunError(TInt aError); |
|
4821 |
|
4822 /** |
|
4823 @fn ~CWspHeaderWriter_RefererUri_UnitTest() |
|
4824 Intended Usage : Standard Destructor. |
|
4825 Error Condition : None. |
|
4826 @since 7.0 |
|
4827 @pre CWspHeaderWriter_RefererUri_UnitTest is fully constructed. |
|
4828 @post CWspHeaderWriter_RefererUri_UnitTest is fully destroyed. |
|
4829 */ |
|
4830 ~CWspHeaderWriter_RefererUri_UnitTest(); |
|
4831 |
|
4832 private: |
|
4833 /** |
|
4834 @fn CWspHeaderWriter_RefererUri_UnitTest(CDataLogger& aDataLogger, |
|
4835 MUnitTestObserver& aObserver) |
|
4836 Intended Usage : Default constructor. |
|
4837 Error Condition : None. |
|
4838 @since 7.0 |
|
4839 @param aDataLogger The output logging object. |
|
4840 @param aObserver The observer of this UnitTest. |
|
4841 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
4842 @pre None. |
|
4843 @post CWspHeaderWriter_RefererUri_UnitTest is fully constructed. |
|
4844 */ |
|
4845 inline CWspHeaderWriter_RefererUri_UnitTest(CDataLogger& aDataLogger, |
|
4846 MUnitTestObserver& aObserver); |
|
4847 |
|
4848 /** |
|
4849 @fn void ConstructL() |
|
4850 Intended Usage : Second phase of safe two phase construction, |
|
4851 to complete the object initialisation. |
|
4852 Error Condition : Leaves with an error code. |
|
4853 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
4854 @since 7.0 |
|
4855 @return None |
|
4856 @pre CWspHeaderWriter_RefererUri_UnitTest is fully constructed. |
|
4857 @post CWspHeaderWriter_RefererUri_UnitTest is fully initialized. |
|
4858 */ |
|
4859 void ConstructL(); |
|
4860 |
|
4861 /** |
|
4862 The context of the Unit Test. |
|
4863 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
4864 */ |
|
4865 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
4866 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
4867 /* C'tor, d'tor, and method transition validators */ |
|
4868 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
4869 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iRefererUriValidator; |
|
4870 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
4871 }; // CWspHeaderWriter_RefererUri_UnitTest |
|
4872 |
|
4873 // ______________________________________________________________________________ |
|
4874 // |
|
4875 /** |
|
4876 @internal |
|
4877 @class CWspHeaderWriter_RefererNullText_UnitTest |
|
4878 @Depends CWspHeaderWriter & CUnitTest |
|
4879 |
|
4880 Comments : Unit Test for RefererNullText on CWspHeaderWriter, the class under test. |
|
4881 */ |
|
4882 class CWspHeaderWriter_RefererNullText_UnitTest : public CUnitTest |
|
4883 { |
|
4884 public: |
|
4885 /** |
|
4886 @fn NewL(CDataLogger& aDataLogger, |
|
4887 MUnitTestObserver& aObserver) |
|
4888 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
4889 cleanup stack. |
|
4890 Error Condition : Leaves with the error code. |
|
4891 @exceptions KErrNoMemory |
|
4892 @since 7.0 |
|
4893 @param aDataLogger The output logging object. |
|
4894 @param aObserver The observer of this UnitTest. |
|
4895 @return CWspHeaderWriter_RefererNullText_UnitTest* The constructed object. |
|
4896 @pre None. |
|
4897 @post CWspHeaderWriter_RefererNullText_UnitTest is fully constructed, and initialized. |
|
4898 */ |
|
4899 static CWspHeaderWriter_RefererNullText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
4900 MUnitTestObserver& aObserver); |
|
4901 |
|
4902 /** |
|
4903 @fn RunError(TInt aError) |
|
4904 Intended Usage : Intercept the panic caused by a RunL leave, |
|
4905 to restore the CWspHeaderWriter_RefererNullText_UnitTest |
|
4906 object to a sensible state. |
|
4907 (called by the Active Scheduler immediately before the Panic). |
|
4908 Error Condition : @see CUnitTest::RunError(). |
|
4909 @since 7.0 |
|
4910 @return KErrNone if cleanup successful, otherwise |
|
4911 @see CUnitTest::RunError() |
|
4912 @pre CWspHeaderWriter_RefererNullText_UnitTest is fully constructed, and initialized. |
|
4913 @post The object has been restored to a sensible state. |
|
4914 */ |
|
4915 inline TInt RunError(TInt aError); |
|
4916 |
|
4917 /** |
|
4918 @fn ~CWspHeaderWriter_RefererNullText_UnitTest() |
|
4919 Intended Usage : Standard Destructor. |
|
4920 Error Condition : None. |
|
4921 @since 7.0 |
|
4922 @pre CWspHeaderWriter_RefererNullText_UnitTest is fully constructed. |
|
4923 @post CWspHeaderWriter_RefererNullText_UnitTest is fully destroyed. |
|
4924 */ |
|
4925 ~CWspHeaderWriter_RefererNullText_UnitTest(); |
|
4926 |
|
4927 private: |
|
4928 /** |
|
4929 @fn CWspHeaderWriter_RefererNullText_UnitTest(CDataLogger& aDataLogger, |
|
4930 MUnitTestObserver& aObserver) |
|
4931 Intended Usage : Default constructor. |
|
4932 Error Condition : None. |
|
4933 @since 7.0 |
|
4934 @param aDataLogger The output logging object. |
|
4935 @param aObserver The observer of this UnitTest. |
|
4936 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
4937 @pre None. |
|
4938 @post CWspHeaderWriter_RefererNullText_UnitTest is fully constructed. |
|
4939 */ |
|
4940 inline CWspHeaderWriter_RefererNullText_UnitTest(CDataLogger& aDataLogger, |
|
4941 MUnitTestObserver& aObserver); |
|
4942 |
|
4943 /** |
|
4944 @fn void ConstructL() |
|
4945 Intended Usage : Second phase of safe two phase construction, |
|
4946 to complete the object initialisation. |
|
4947 Error Condition : Leaves with an error code. |
|
4948 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
4949 @since 7.0 |
|
4950 @return None |
|
4951 @pre CWspHeaderWriter_RefererNullText_UnitTest is fully constructed. |
|
4952 @post CWspHeaderWriter_RefererNullText_UnitTest is fully initialized. |
|
4953 */ |
|
4954 void ConstructL(); |
|
4955 |
|
4956 /** |
|
4957 The context of the Unit Test. |
|
4958 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
4959 */ |
|
4960 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
4961 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
4962 /* C'tor, d'tor, and method transition validators */ |
|
4963 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
4964 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iRefererNullTextValidator; |
|
4965 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
4966 }; // CWspHeaderWriter_RefererNullText_UnitTest |
|
4967 |
|
4968 // ______________________________________________________________________________ |
|
4969 // |
|
4970 /** |
|
4971 @internal |
|
4972 @class CWspHeaderWriter_ViaUri_UnitTest |
|
4973 @Depends CWspHeaderWriter & CUnitTest |
|
4974 |
|
4975 Comments : Unit Test for ViaUri on CWspHeaderWriter, the class under test. |
|
4976 */ |
|
4977 class CWspHeaderWriter_ViaUri_UnitTest : public CUnitTest |
|
4978 { |
|
4979 public: |
|
4980 /** |
|
4981 @fn NewL(CDataLogger& aDataLogger, |
|
4982 MUnitTestObserver& aObserver) |
|
4983 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
4984 cleanup stack. |
|
4985 Error Condition : Leaves with the error code. |
|
4986 @exceptions KErrNoMemory |
|
4987 @since 7.0 |
|
4988 @param aDataLogger The output logging object. |
|
4989 @param aObserver The observer of this UnitTest. |
|
4990 @return CWspHeaderWriter_ViaUri_UnitTest* The constructed object. |
|
4991 @pre None. |
|
4992 @post CWspHeaderWriter_ViaUri_UnitTest is fully constructed, and initialized. |
|
4993 */ |
|
4994 static CWspHeaderWriter_ViaUri_UnitTest* NewL(CDataLogger& aDataLogger, |
|
4995 MUnitTestObserver& aObserver); |
|
4996 |
|
4997 /** |
|
4998 @fn RunError(TInt aError) |
|
4999 Intended Usage : Intercept the panic caused by a RunL leave, |
|
5000 to restore the CWspHeaderWriter_ViaUri_UnitTest |
|
5001 object to a sensible state. |
|
5002 (called by the Active Scheduler immediately before the Panic). |
|
5003 Error Condition : @see CUnitTest::RunError(). |
|
5004 @since 7.0 |
|
5005 @return KErrNone if cleanup successful, otherwise |
|
5006 @see CUnitTest::RunError() |
|
5007 @pre CWspHeaderWriter_ViaUri_UnitTest is fully constructed, and initialized. |
|
5008 @post The object has been restored to a sensible state. |
|
5009 */ |
|
5010 inline TInt RunError(TInt aError); |
|
5011 |
|
5012 /** |
|
5013 @fn ~CWspHeaderWriter_ViaUri_UnitTest() |
|
5014 Intended Usage : Standard Destructor. |
|
5015 Error Condition : None. |
|
5016 @since 7.0 |
|
5017 @pre CWspHeaderWriter_ViaUri_UnitTest is fully constructed. |
|
5018 @post CWspHeaderWriter_ViaUri_UnitTest is fully destroyed. |
|
5019 */ |
|
5020 ~CWspHeaderWriter_ViaUri_UnitTest(); |
|
5021 |
|
5022 private: |
|
5023 /** |
|
5024 @fn CWspHeaderWriter_ViaUri_UnitTest(CDataLogger& aDataLogger, |
|
5025 MUnitTestObserver& aObserver) |
|
5026 Intended Usage : Default constructor. |
|
5027 Error Condition : None. |
|
5028 @since 7.0 |
|
5029 @param aDataLogger The output logging object. |
|
5030 @param aObserver The observer of this UnitTest. |
|
5031 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
5032 @pre None. |
|
5033 @post CWspHeaderWriter_ViaUri_UnitTest is fully constructed. |
|
5034 */ |
|
5035 inline CWspHeaderWriter_ViaUri_UnitTest(CDataLogger& aDataLogger, |
|
5036 MUnitTestObserver& aObserver); |
|
5037 |
|
5038 /** |
|
5039 @fn void ConstructL() |
|
5040 Intended Usage : Second phase of safe two phase construction, |
|
5041 to complete the object initialisation. |
|
5042 Error Condition : Leaves with an error code. |
|
5043 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
5044 @since 7.0 |
|
5045 @return None |
|
5046 @pre CWspHeaderWriter_ViaUri_UnitTest is fully constructed. |
|
5047 @post CWspHeaderWriter_ViaUri_UnitTest is fully initialized. |
|
5048 */ |
|
5049 void ConstructL(); |
|
5050 |
|
5051 /** |
|
5052 The context of the Unit Test. |
|
5053 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
5054 */ |
|
5055 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
5056 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
5057 /* C'tor, d'tor, and method transition validators */ |
|
5058 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
5059 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iViaUriValidator; |
|
5060 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
5061 }; // CWspHeaderWriter_ViaUri_UnitTest |
|
5062 |
|
5063 // ______________________________________________________________________________ |
|
5064 // |
|
5065 /** |
|
5066 @internal |
|
5067 @class CWspHeaderWriter_ViaNullText_UnitTest |
|
5068 @Depends CWspHeaderWriter & CUnitTest |
|
5069 |
|
5070 Comments : Unit Test for ViaNullText on CWspHeaderWriter, the class under test. |
|
5071 */ |
|
5072 class CWspHeaderWriter_ViaNullText_UnitTest : public CUnitTest |
|
5073 { |
|
5074 public: |
|
5075 /** |
|
5076 @fn NewL(CDataLogger& aDataLogger, |
|
5077 MUnitTestObserver& aObserver) |
|
5078 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
5079 cleanup stack. |
|
5080 Error Condition : Leaves with the error code. |
|
5081 @exceptions KErrNoMemory |
|
5082 @since 7.0 |
|
5083 @param aDataLogger The output logging object. |
|
5084 @param aObserver The observer of this UnitTest. |
|
5085 @return CWspHeaderWriter_ViaNullText_UnitTest* The constructed object. |
|
5086 @pre None. |
|
5087 @post CWspHeaderWriter_ViaNullText_UnitTest is fully constructed, and initialized. |
|
5088 */ |
|
5089 static CWspHeaderWriter_ViaNullText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
5090 MUnitTestObserver& aObserver); |
|
5091 |
|
5092 /** |
|
5093 @fn RunError(TInt aError) |
|
5094 Intended Usage : Intercept the panic caused by a RunL leave, |
|
5095 to restore the CWspHeaderWriter_ViaNullText_UnitTest |
|
5096 object to a sensible state. |
|
5097 (called by the Active Scheduler immediately before the Panic). |
|
5098 Error Condition : @see CUnitTest::RunError(). |
|
5099 @since 7.0 |
|
5100 @return KErrNone if cleanup successful, otherwise |
|
5101 @see CUnitTest::RunError() |
|
5102 @pre CWspHeaderWriter_ViaNullText_UnitTest is fully constructed, and initialized. |
|
5103 @post The object has been restored to a sensible state. |
|
5104 */ |
|
5105 inline TInt RunError(TInt aError); |
|
5106 |
|
5107 /** |
|
5108 @fn ~CWspHeaderWriter_ViaNullText_UnitTest() |
|
5109 Intended Usage : Standard Destructor. |
|
5110 Error Condition : None. |
|
5111 @since 7.0 |
|
5112 @pre CWspHeaderWriter_ViaNullText_UnitTest is fully constructed. |
|
5113 @post CWspHeaderWriter_ViaNullText_UnitTest is fully destroyed. |
|
5114 */ |
|
5115 ~CWspHeaderWriter_ViaNullText_UnitTest(); |
|
5116 |
|
5117 private: |
|
5118 /** |
|
5119 @fn CWspHeaderWriter_ViaNullText_UnitTest(CDataLogger& aDataLogger, |
|
5120 MUnitTestObserver& aObserver) |
|
5121 Intended Usage : Default constructor. |
|
5122 Error Condition : None. |
|
5123 @since 7.0 |
|
5124 @param aDataLogger The output logging object. |
|
5125 @param aObserver The observer of this UnitTest. |
|
5126 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
5127 @pre None. |
|
5128 @post CWspHeaderWriter_ViaNullText_UnitTest is fully constructed. |
|
5129 */ |
|
5130 inline CWspHeaderWriter_ViaNullText_UnitTest(CDataLogger& aDataLogger, |
|
5131 MUnitTestObserver& aObserver); |
|
5132 |
|
5133 /** |
|
5134 @fn void ConstructL() |
|
5135 Intended Usage : Second phase of safe two phase construction, |
|
5136 to complete the object initialisation. |
|
5137 Error Condition : Leaves with an error code. |
|
5138 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
5139 @since 7.0 |
|
5140 @return None |
|
5141 @pre CWspHeaderWriter_ViaNullText_UnitTest is fully constructed. |
|
5142 @post CWspHeaderWriter_ViaNullText_UnitTest is fully initialized. |
|
5143 */ |
|
5144 void ConstructL(); |
|
5145 |
|
5146 /** |
|
5147 The context of the Unit Test. |
|
5148 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
5149 */ |
|
5150 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
5151 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
5152 /* C'tor, d'tor, and method transition validators */ |
|
5153 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
5154 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iViaNullTextValidator; |
|
5155 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
5156 }; // CWspHeaderWriter_ViaNullText_UnitTest |
|
5157 |
|
5158 // ______________________________________________________________________________ |
|
5159 // |
|
5160 /** |
|
5161 @internal |
|
5162 @class CWspHeaderWriter_XWapAppIdUri_UnitTest |
|
5163 @Depends CWspHeaderWriter & CUnitTest |
|
5164 |
|
5165 Comments : Unit Test for XWapAppIdUri on CWspHeaderWriter, the class under test. |
|
5166 */ |
|
5167 class CWspHeaderWriter_XWapAppIdUri_UnitTest : public CUnitTest |
|
5168 { |
|
5169 public: |
|
5170 /** |
|
5171 @fn NewL(CDataLogger& aDataLogger, |
|
5172 MUnitTestObserver& aObserver) |
|
5173 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
5174 cleanup stack. |
|
5175 Error Condition : Leaves with the error code. |
|
5176 @exceptions KErrNoMemory |
|
5177 @since 7.0 |
|
5178 @param aDataLogger The output logging object. |
|
5179 @param aObserver The observer of this UnitTest. |
|
5180 @return CWspHeaderWriter_XWapAppIdUri_UnitTest* The constructed object. |
|
5181 @pre None. |
|
5182 @post CWspHeaderWriter_XWapAppIdUri_UnitTest is fully constructed, and initialized. |
|
5183 */ |
|
5184 static CWspHeaderWriter_XWapAppIdUri_UnitTest* NewL(CDataLogger& aDataLogger, |
|
5185 MUnitTestObserver& aObserver); |
|
5186 |
|
5187 /** |
|
5188 @fn RunError(TInt aError) |
|
5189 Intended Usage : Intercept the panic caused by a RunL leave, |
|
5190 to restore the CWspHeaderWriter_XWapAppIdUri_UnitTest |
|
5191 object to a sensible state. |
|
5192 (called by the Active Scheduler immediately before the Panic). |
|
5193 Error Condition : @see CUnitTest::RunError(). |
|
5194 @since 7.0 |
|
5195 @return KErrNone if cleanup successful, otherwise |
|
5196 @see CUnitTest::RunError() |
|
5197 @pre CWspHeaderWriter_XWapAppIdUri_UnitTest is fully constructed, and initialized. |
|
5198 @post The object has been restored to a sensible state. |
|
5199 */ |
|
5200 inline TInt RunError(TInt aError); |
|
5201 |
|
5202 /** |
|
5203 @fn ~CWspHeaderWriter_XWapAppIdUri_UnitTest() |
|
5204 Intended Usage : Standard Destructor. |
|
5205 Error Condition : None. |
|
5206 @since 7.0 |
|
5207 @pre CWspHeaderWriter_XWapAppIdUri_UnitTest is fully constructed. |
|
5208 @post CWspHeaderWriter_XWapAppIdUri_UnitTest is fully destroyed. |
|
5209 */ |
|
5210 ~CWspHeaderWriter_XWapAppIdUri_UnitTest(); |
|
5211 |
|
5212 private: |
|
5213 /** |
|
5214 @fn CWspHeaderWriter_XWapAppIdUri_UnitTest(CDataLogger& aDataLogger, |
|
5215 MUnitTestObserver& aObserver) |
|
5216 Intended Usage : Default constructor. |
|
5217 Error Condition : None. |
|
5218 @since 7.0 |
|
5219 @param aDataLogger The output logging object. |
|
5220 @param aObserver The observer of this UnitTest. |
|
5221 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
5222 @pre None. |
|
5223 @post CWspHeaderWriter_XWapAppIdUri_UnitTest is fully constructed. |
|
5224 */ |
|
5225 inline CWspHeaderWriter_XWapAppIdUri_UnitTest(CDataLogger& aDataLogger, |
|
5226 MUnitTestObserver& aObserver); |
|
5227 |
|
5228 /** |
|
5229 @fn void ConstructL() |
|
5230 Intended Usage : Second phase of safe two phase construction, |
|
5231 to complete the object initialisation. |
|
5232 Error Condition : Leaves with an error code. |
|
5233 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
5234 @since 7.0 |
|
5235 @return None |
|
5236 @pre CWspHeaderWriter_XWapAppIdUri_UnitTest is fully constructed. |
|
5237 @post CWspHeaderWriter_XWapAppIdUri_UnitTest is fully initialized. |
|
5238 */ |
|
5239 void ConstructL(); |
|
5240 |
|
5241 /** |
|
5242 The context of the Unit Test. |
|
5243 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
5244 */ |
|
5245 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
5246 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
5247 /* C'tor, d'tor, and method transition validators */ |
|
5248 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
5249 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iXWapAppIdUriValidator; |
|
5250 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
5251 }; // CWspHeaderWriter_XWapAppIdUri_UnitTest |
|
5252 |
|
5253 // ______________________________________________________________________________ |
|
5254 // |
|
5255 /** |
|
5256 @internal |
|
5257 @class CWspHeaderWriter_XWapAppIdNullText_UnitTest |
|
5258 @Depends CWspHeaderWriter & CUnitTest |
|
5259 |
|
5260 Comments : Unit Test for XWapAppIdNullText on CWspHeaderWriter, the class under test. |
|
5261 */ |
|
5262 class CWspHeaderWriter_XWapAppIdNullText_UnitTest : public CUnitTest |
|
5263 { |
|
5264 public: |
|
5265 /** |
|
5266 @fn NewL(CDataLogger& aDataLogger, |
|
5267 MUnitTestObserver& aObserver) |
|
5268 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
5269 cleanup stack. |
|
5270 Error Condition : Leaves with the error code. |
|
5271 @exceptions KErrNoMemory |
|
5272 @since 7.0 |
|
5273 @param aDataLogger The output logging object. |
|
5274 @param aObserver The observer of this UnitTest. |
|
5275 @return CWspHeaderWriter_XWapAppIdNullText_UnitTest* The constructed object. |
|
5276 @pre None. |
|
5277 @post CWspHeaderWriter_XWapAppIdNullText_UnitTest is fully constructed, and initialized. |
|
5278 */ |
|
5279 static CWspHeaderWriter_XWapAppIdNullText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
5280 MUnitTestObserver& aObserver); |
|
5281 |
|
5282 /** |
|
5283 @fn RunError(TInt aError) |
|
5284 Intended Usage : Intercept the panic caused by a RunL leave, |
|
5285 to restore the CWspHeaderWriter_XWapAppIdNullText_UnitTest |
|
5286 object to a sensible state. |
|
5287 (called by the Active Scheduler immediately before the Panic). |
|
5288 Error Condition : @see CUnitTest::RunError(). |
|
5289 @since 7.0 |
|
5290 @return KErrNone if cleanup successful, otherwise |
|
5291 @see CUnitTest::RunError() |
|
5292 @pre CWspHeaderWriter_XWapAppIdNullText_UnitTest is fully constructed, and initialized. |
|
5293 @post The object has been restored to a sensible state. |
|
5294 */ |
|
5295 inline TInt RunError(TInt aError); |
|
5296 |
|
5297 /** |
|
5298 @fn ~CWspHeaderWriter_XWapAppIdNullText_UnitTest() |
|
5299 Intended Usage : Standard Destructor. |
|
5300 Error Condition : None. |
|
5301 @since 7.0 |
|
5302 @pre CWspHeaderWriter_XWapAppIdNullText_UnitTest is fully constructed. |
|
5303 @post CWspHeaderWriter_XWapAppIdNullText_UnitTest is fully destroyed. |
|
5304 */ |
|
5305 ~CWspHeaderWriter_XWapAppIdNullText_UnitTest(); |
|
5306 |
|
5307 private: |
|
5308 /** |
|
5309 @fn CWspHeaderWriter_XWapAppIdNullText_UnitTest(CDataLogger& aDataLogger, |
|
5310 MUnitTestObserver& aObserver) |
|
5311 Intended Usage : Default constructor. |
|
5312 Error Condition : None. |
|
5313 @since 7.0 |
|
5314 @param aDataLogger The output logging object. |
|
5315 @param aObserver The observer of this UnitTest. |
|
5316 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
5317 @pre None. |
|
5318 @post CWspHeaderWriter_XWapAppIdNullText_UnitTest is fully constructed. |
|
5319 */ |
|
5320 inline CWspHeaderWriter_XWapAppIdNullText_UnitTest(CDataLogger& aDataLogger, |
|
5321 MUnitTestObserver& aObserver); |
|
5322 |
|
5323 /** |
|
5324 @fn void ConstructL() |
|
5325 Intended Usage : Second phase of safe two phase construction, |
|
5326 to complete the object initialisation. |
|
5327 Error Condition : Leaves with an error code. |
|
5328 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
5329 @since 7.0 |
|
5330 @return None |
|
5331 @pre CWspHeaderWriter_XWapAppIdNullText_UnitTest is fully constructed. |
|
5332 @post CWspHeaderWriter_XWapAppIdNullText_UnitTest is fully initialized. |
|
5333 */ |
|
5334 void ConstructL(); |
|
5335 |
|
5336 /** |
|
5337 The context of the Unit Test. |
|
5338 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
5339 */ |
|
5340 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
5341 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
5342 /* C'tor, d'tor, and method transition validators */ |
|
5343 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
5344 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iXWapAppIdNullTextValidator; |
|
5345 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
5346 }; // CWspHeaderWriter_XWapAppIdNullText_UnitTest |
|
5347 |
|
5348 // ______________________________________________________________________________ |
|
5349 // |
|
5350 /** |
|
5351 @internal |
|
5352 @class CWspHeaderWriter_XWapAppIdShortInt_UnitTest |
|
5353 @Depends CWspHeaderWriter & CUnitTest |
|
5354 |
|
5355 Comments : Unit Test for XWapAppIdShortInt on CWspHeaderWriter, the class under test. |
|
5356 */ |
|
5357 class CWspHeaderWriter_XWapAppIdShortInt_UnitTest : public CUnitTest |
|
5358 { |
|
5359 public: |
|
5360 /** |
|
5361 @fn NewL(CDataLogger& aDataLogger, |
|
5362 MUnitTestObserver& aObserver) |
|
5363 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
5364 cleanup stack. |
|
5365 Error Condition : Leaves with the error code. |
|
5366 @exceptions KErrNoMemory |
|
5367 @since 7.0 |
|
5368 @param aDataLogger The output logging object. |
|
5369 @param aObserver The observer of this UnitTest. |
|
5370 @return CWspHeaderWriter_XWapAppIdShortInt_UnitTest* The constructed object. |
|
5371 @pre None. |
|
5372 @post CWspHeaderWriter_XWapAppIdShortInt_UnitTest is fully constructed, and initialized. |
|
5373 */ |
|
5374 static CWspHeaderWriter_XWapAppIdShortInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
5375 MUnitTestObserver& aObserver); |
|
5376 |
|
5377 /** |
|
5378 @fn RunError(TInt aError) |
|
5379 Intended Usage : Intercept the panic caused by a RunL leave, |
|
5380 to restore the CWspHeaderWriter_XWapAppIdShortInt_UnitTest |
|
5381 object to a sensible state. |
|
5382 (called by the Active Scheduler immediately before the Panic). |
|
5383 Error Condition : @see CUnitTest::RunError(). |
|
5384 @since 7.0 |
|
5385 @return KErrNone if cleanup successful, otherwise |
|
5386 @see CUnitTest::RunError() |
|
5387 @pre CWspHeaderWriter_XWapAppIdShortInt_UnitTest is fully constructed, and initialized. |
|
5388 @post The object has been restored to a sensible state. |
|
5389 */ |
|
5390 inline TInt RunError(TInt aError); |
|
5391 |
|
5392 /** |
|
5393 @fn ~CWspHeaderWriter_XWapAppIdShortInt_UnitTest() |
|
5394 Intended Usage : Standard Destructor. |
|
5395 Error Condition : None. |
|
5396 @since 7.0 |
|
5397 @pre CWspHeaderWriter_XWapAppIdShortInt_UnitTest is fully constructed. |
|
5398 @post CWspHeaderWriter_XWapAppIdShortInt_UnitTest is fully destroyed. |
|
5399 */ |
|
5400 ~CWspHeaderWriter_XWapAppIdShortInt_UnitTest(); |
|
5401 |
|
5402 private: |
|
5403 /** |
|
5404 @fn CWspHeaderWriter_XWapAppIdShortInt_UnitTest(CDataLogger& aDataLogger, |
|
5405 MUnitTestObserver& aObserver) |
|
5406 Intended Usage : Default constructor. |
|
5407 Error Condition : None. |
|
5408 @since 7.0 |
|
5409 @param aDataLogger The output logging object. |
|
5410 @param aObserver The observer of this UnitTest. |
|
5411 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
5412 @pre None. |
|
5413 @post CWspHeaderWriter_XWapAppIdShortInt_UnitTest is fully constructed. |
|
5414 */ |
|
5415 inline CWspHeaderWriter_XWapAppIdShortInt_UnitTest(CDataLogger& aDataLogger, |
|
5416 MUnitTestObserver& aObserver); |
|
5417 |
|
5418 /** |
|
5419 @fn void ConstructL() |
|
5420 Intended Usage : Second phase of safe two phase construction, |
|
5421 to complete the object initialisation. |
|
5422 Error Condition : Leaves with an error code. |
|
5423 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
5424 @since 7.0 |
|
5425 @return None |
|
5426 @pre CWspHeaderWriter_XWapAppIdShortInt_UnitTest is fully constructed. |
|
5427 @post CWspHeaderWriter_XWapAppIdShortInt_UnitTest is fully initialized. |
|
5428 */ |
|
5429 void ConstructL(); |
|
5430 |
|
5431 /** |
|
5432 The context of the Unit Test. |
|
5433 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
5434 */ |
|
5435 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
5436 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
5437 /* C'tor, d'tor, and method transition validators */ |
|
5438 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
5439 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iXWapAppIdShortIntValidator; |
|
5440 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
5441 }; // CWspHeaderWriter_XWapAppIdShortInt_UnitTest |
|
5442 |
|
5443 // ______________________________________________________________________________ |
|
5444 // |
|
5445 /** |
|
5446 @internal |
|
5447 @class CWspHeaderWriter_XWapAppIdLongInt_UnitTest |
|
5448 @Depends CWspHeaderWriter & CUnitTest |
|
5449 |
|
5450 Comments : Unit Test for XWapAppIdLongInt on CWspHeaderWriter, the class under test. |
|
5451 */ |
|
5452 class CWspHeaderWriter_XWapAppIdLongInt_UnitTest : public CUnitTest |
|
5453 { |
|
5454 public: |
|
5455 /** |
|
5456 @fn NewL(CDataLogger& aDataLogger, |
|
5457 MUnitTestObserver& aObserver) |
|
5458 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
5459 cleanup stack. |
|
5460 Error Condition : Leaves with the error code. |
|
5461 @exceptions KErrNoMemory |
|
5462 @since 7.0 |
|
5463 @param aDataLogger The output logging object. |
|
5464 @param aObserver The observer of this UnitTest. |
|
5465 @return CWspHeaderWriter_XWapAppIdLongInt_UnitTest* The constructed object. |
|
5466 @pre None. |
|
5467 @post CWspHeaderWriter_XWapAppIdLongInt_UnitTest is fully constructed, and initialized. |
|
5468 */ |
|
5469 static CWspHeaderWriter_XWapAppIdLongInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
5470 MUnitTestObserver& aObserver); |
|
5471 |
|
5472 /** |
|
5473 @fn RunError(TInt aError) |
|
5474 Intended Usage : Intercept the panic caused by a RunL leave, |
|
5475 to restore the CWspHeaderWriter_XWapAppIdLongInt_UnitTest |
|
5476 object to a sensible state. |
|
5477 (called by the Active Scheduler immediately before the Panic). |
|
5478 Error Condition : @see CUnitTest::RunError(). |
|
5479 @since 7.0 |
|
5480 @return KErrNone if cleanup successful, otherwise |
|
5481 @see CUnitTest::RunError() |
|
5482 @pre CWspHeaderWriter_XWapAppIdLongInt_UnitTest is fully constructed, and initialized. |
|
5483 @post The object has been restored to a sensible state. |
|
5484 */ |
|
5485 inline TInt RunError(TInt aError); |
|
5486 |
|
5487 /** |
|
5488 @fn ~CWspHeaderWriter_XWapAppIdLongInt_UnitTest() |
|
5489 Intended Usage : Standard Destructor. |
|
5490 Error Condition : None. |
|
5491 @since 7.0 |
|
5492 @pre CWspHeaderWriter_XWapAppIdLongInt_UnitTest is fully constructed. |
|
5493 @post CWspHeaderWriter_XWapAppIdLongInt_UnitTest is fully destroyed. |
|
5494 */ |
|
5495 ~CWspHeaderWriter_XWapAppIdLongInt_UnitTest(); |
|
5496 |
|
5497 private: |
|
5498 /** |
|
5499 @fn CWspHeaderWriter_XWapAppIdLongInt_UnitTest(CDataLogger& aDataLogger, |
|
5500 MUnitTestObserver& aObserver) |
|
5501 Intended Usage : Default constructor. |
|
5502 Error Condition : None. |
|
5503 @since 7.0 |
|
5504 @param aDataLogger The output logging object. |
|
5505 @param aObserver The observer of this UnitTest. |
|
5506 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
5507 @pre None. |
|
5508 @post CWspHeaderWriter_XWapAppIdLongInt_UnitTest is fully constructed. |
|
5509 */ |
|
5510 inline CWspHeaderWriter_XWapAppIdLongInt_UnitTest(CDataLogger& aDataLogger, |
|
5511 MUnitTestObserver& aObserver); |
|
5512 |
|
5513 /** |
|
5514 @fn void ConstructL() |
|
5515 Intended Usage : Second phase of safe two phase construction, |
|
5516 to complete the object initialisation. |
|
5517 Error Condition : Leaves with an error code. |
|
5518 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
5519 @since 7.0 |
|
5520 @return None |
|
5521 @pre CWspHeaderWriter_XWapAppIdLongInt_UnitTest is fully constructed. |
|
5522 @post CWspHeaderWriter_XWapAppIdLongInt_UnitTest is fully initialized. |
|
5523 */ |
|
5524 void ConstructL(); |
|
5525 |
|
5526 /** |
|
5527 The context of the Unit Test. |
|
5528 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
5529 */ |
|
5530 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
5531 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
5532 /* C'tor, d'tor, and method transition validators */ |
|
5533 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
5534 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iXWapAppIdLongIntValidator; |
|
5535 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
5536 }; // CWspHeaderWriter_XWapAppIdLongInt_UnitTest |
|
5537 |
|
5538 // ______________________________________________________________________________ |
|
5539 // |
|
5540 /** |
|
5541 @internal |
|
5542 @class CWspHeaderWriter_EncodingVersion_UnitTest |
|
5543 @Depends CWspHeaderWriter & CUnitTest |
|
5544 |
|
5545 Comments : Unit Test for EncodingVersion on CWspHeaderWriter, the class under test. |
|
5546 */ |
|
5547 class CWspHeaderWriter_EncodingVersion_UnitTest : public CUnitTest |
|
5548 { |
|
5549 public: |
|
5550 /** |
|
5551 @fn NewL(CDataLogger& aDataLogger, |
|
5552 MUnitTestObserver& aObserver) |
|
5553 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
5554 cleanup stack. |
|
5555 Error Condition : Leaves with the error code. |
|
5556 @exceptions KErrNoMemory |
|
5557 @since 7.0 |
|
5558 @param aDataLogger The output logging object. |
|
5559 @param aObserver The observer of this UnitTest. |
|
5560 @return CWspHeaderWriter_EncodingVersion_UnitTest* The constructed object. |
|
5561 @pre None. |
|
5562 @post CWspHeaderWriter_EncodingVersion_UnitTest is fully constructed, and initialized. |
|
5563 */ |
|
5564 static CWspHeaderWriter_EncodingVersion_UnitTest* NewL(CDataLogger& aDataLogger, |
|
5565 MUnitTestObserver& aObserver); |
|
5566 |
|
5567 /** |
|
5568 @fn RunError(TInt aError) |
|
5569 Intended Usage : Intercept the panic caused by a RunL leave, |
|
5570 to restore the CWspHeaderWriter_EncodingVersion_UnitTest |
|
5571 object to a sensible state. |
|
5572 (called by the Active Scheduler immediately before the Panic). |
|
5573 Error Condition : @see CUnitTest::RunError(). |
|
5574 @since 7.0 |
|
5575 @return KErrNone if cleanup successful, otherwise |
|
5576 @see CUnitTest::RunError() |
|
5577 @pre CWspHeaderWriter_EncodingVersion_UnitTest is fully constructed, and initialized. |
|
5578 @post The object has been restored to a sensible state. |
|
5579 */ |
|
5580 inline TInt RunError(TInt aError); |
|
5581 |
|
5582 /** |
|
5583 @fn ~CWspHeaderWriter_EncodingVersion_UnitTest() |
|
5584 Intended Usage : Standard Destructor. |
|
5585 Error Condition : None. |
|
5586 @since 7.0 |
|
5587 @pre CWspHeaderWriter_EncodingVersion_UnitTest is fully constructed. |
|
5588 @post CWspHeaderWriter_EncodingVersion_UnitTest is fully destroyed. |
|
5589 */ |
|
5590 ~CWspHeaderWriter_EncodingVersion_UnitTest(); |
|
5591 |
|
5592 private: |
|
5593 /** |
|
5594 @fn CWspHeaderWriter_EncodingVersion_UnitTest(CDataLogger& aDataLogger, |
|
5595 MUnitTestObserver& aObserver) |
|
5596 Intended Usage : Default constructor. |
|
5597 Error Condition : None. |
|
5598 @since 7.0 |
|
5599 @param aDataLogger The output logging object. |
|
5600 @param aObserver The observer of this UnitTest. |
|
5601 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
5602 @pre None. |
|
5603 @post CWspHeaderWriter_EncodingVersion_UnitTest is fully constructed. |
|
5604 */ |
|
5605 inline CWspHeaderWriter_EncodingVersion_UnitTest(CDataLogger& aDataLogger, |
|
5606 MUnitTestObserver& aObserver); |
|
5607 |
|
5608 /** |
|
5609 @fn void ConstructL() |
|
5610 Intended Usage : Second phase of safe two phase construction, |
|
5611 to complete the object initialisation. |
|
5612 Error Condition : Leaves with an error code. |
|
5613 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
5614 @since 7.0 |
|
5615 @return None |
|
5616 @pre CWspHeaderWriter_EncodingVersion_UnitTest is fully constructed. |
|
5617 @post CWspHeaderWriter_EncodingVersion_UnitTest is fully initialized. |
|
5618 */ |
|
5619 void ConstructL(); |
|
5620 |
|
5621 /** |
|
5622 The context of the Unit Test. |
|
5623 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
5624 */ |
|
5625 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
5626 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
5627 /* C'tor, d'tor, and method transition validators */ |
|
5628 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
5629 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iEncodingVersionValidator; |
|
5630 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
5631 }; // CWspHeaderWriter_EncodingVersion_UnitTest |
|
5632 |
|
5633 // ______________________________________________________________________________ |
|
5634 // |
|
5635 /** |
|
5636 @internal |
|
5637 @class CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest |
|
5638 @Depends CWspHeaderWriter & CUnitTest |
|
5639 |
|
5640 Comments : Unit Test for EncodingVersionCodePageInt on CWspHeaderWriter, the class under test. |
|
5641 */ |
|
5642 class CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest : public CUnitTest |
|
5643 { |
|
5644 public: |
|
5645 /** |
|
5646 @fn NewL(CDataLogger& aDataLogger, |
|
5647 MUnitTestObserver& aObserver) |
|
5648 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
5649 cleanup stack. |
|
5650 Error Condition : Leaves with the error code. |
|
5651 @exceptions KErrNoMemory |
|
5652 @since 7.0 |
|
5653 @param aDataLogger The output logging object. |
|
5654 @param aObserver The observer of this UnitTest. |
|
5655 @return CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest* The constructed object. |
|
5656 @pre None. |
|
5657 @post CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest is fully constructed, and initialized. |
|
5658 */ |
|
5659 static CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
5660 MUnitTestObserver& aObserver); |
|
5661 |
|
5662 /** |
|
5663 @fn RunError(TInt aError) |
|
5664 Intended Usage : Intercept the panic caused by a RunL leave, |
|
5665 to restore the CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest |
|
5666 object to a sensible state. |
|
5667 (called by the Active Scheduler immediately before the Panic). |
|
5668 Error Condition : @see CUnitTest::RunError(). |
|
5669 @since 7.0 |
|
5670 @return KErrNone if cleanup successful, otherwise |
|
5671 @see CUnitTest::RunError() |
|
5672 @pre CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest is fully constructed, and initialized. |
|
5673 @post The object has been restored to a sensible state. |
|
5674 */ |
|
5675 inline TInt RunError(TInt aError); |
|
5676 |
|
5677 /** |
|
5678 @fn ~CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest() |
|
5679 Intended Usage : Standard Destructor. |
|
5680 Error Condition : None. |
|
5681 @since 7.0 |
|
5682 @pre CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest is fully constructed. |
|
5683 @post CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest is fully destroyed. |
|
5684 */ |
|
5685 ~CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest(); |
|
5686 |
|
5687 private: |
|
5688 /** |
|
5689 @fn CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest(CDataLogger& aDataLogger, |
|
5690 MUnitTestObserver& aObserver) |
|
5691 Intended Usage : Default constructor. |
|
5692 Error Condition : None. |
|
5693 @since 7.0 |
|
5694 @param aDataLogger The output logging object. |
|
5695 @param aObserver The observer of this UnitTest. |
|
5696 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
5697 @pre None. |
|
5698 @post CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest is fully constructed. |
|
5699 */ |
|
5700 inline CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest(CDataLogger& aDataLogger, |
|
5701 MUnitTestObserver& aObserver); |
|
5702 |
|
5703 /** |
|
5704 @fn void ConstructL() |
|
5705 Intended Usage : Second phase of safe two phase construction, |
|
5706 to complete the object initialisation. |
|
5707 Error Condition : Leaves with an error code. |
|
5708 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
5709 @since 7.0 |
|
5710 @return None |
|
5711 @pre CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest is fully constructed. |
|
5712 @post CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest is fully initialized. |
|
5713 */ |
|
5714 void ConstructL(); |
|
5715 |
|
5716 /** |
|
5717 The context of the Unit Test. |
|
5718 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
5719 */ |
|
5720 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
5721 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
5722 /* C'tor, d'tor, and method transition validators */ |
|
5723 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
5724 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iEncodingVersionCodePageIntValidator; |
|
5725 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
5726 }; // CWspHeaderWriter_EncodingVersionCodePageInt_UnitTest |
|
5727 |
|
5728 // ______________________________________________________________________________ |
|
5729 // |
|
5730 /** |
|
5731 @internal |
|
5732 @class CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest |
|
5733 @Depends CWspHeaderWriter & CUnitTest |
|
5734 |
|
5735 Comments : Unit Test for EncodingVersionCodePageIntWithVersion on CWspHeaderWriter, the class under test. |
|
5736 */ |
|
5737 class CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest : public CUnitTest |
|
5738 { |
|
5739 public: |
|
5740 /** |
|
5741 @fn NewL(CDataLogger& aDataLogger, |
|
5742 MUnitTestObserver& aObserver) |
|
5743 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
5744 cleanup stack. |
|
5745 Error Condition : Leaves with the error code. |
|
5746 @exceptions KErrNoMemory |
|
5747 @since 7.0 |
|
5748 @param aDataLogger The output logging object. |
|
5749 @param aObserver The observer of this UnitTest. |
|
5750 @return CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest* The constructed object. |
|
5751 @pre None. |
|
5752 @post CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest is fully constructed, and initialized. |
|
5753 */ |
|
5754 static CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest* NewL(CDataLogger& aDataLogger, |
|
5755 MUnitTestObserver& aObserver); |
|
5756 |
|
5757 /** |
|
5758 @fn RunError(TInt aError) |
|
5759 Intended Usage : Intercept the panic caused by a RunL leave, |
|
5760 to restore the CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest |
|
5761 object to a sensible state. |
|
5762 (called by the Active Scheduler immediately before the Panic). |
|
5763 Error Condition : @see CUnitTest::RunError(). |
|
5764 @since 7.0 |
|
5765 @return KErrNone if cleanup successful, otherwise |
|
5766 @see CUnitTest::RunError() |
|
5767 @pre CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest is fully constructed, and initialized. |
|
5768 @post The object has been restored to a sensible state. |
|
5769 */ |
|
5770 inline TInt RunError(TInt aError); |
|
5771 |
|
5772 /** |
|
5773 @fn ~CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest() |
|
5774 Intended Usage : Standard Destructor. |
|
5775 Error Condition : None. |
|
5776 @since 7.0 |
|
5777 @pre CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest is fully constructed. |
|
5778 @post CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest is fully destroyed. |
|
5779 */ |
|
5780 ~CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest(); |
|
5781 |
|
5782 private: |
|
5783 /** |
|
5784 @fn CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest(CDataLogger& aDataLogger, |
|
5785 MUnitTestObserver& aObserver) |
|
5786 Intended Usage : Default constructor. |
|
5787 Error Condition : None. |
|
5788 @since 7.0 |
|
5789 @param aDataLogger The output logging object. |
|
5790 @param aObserver The observer of this UnitTest. |
|
5791 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
5792 @pre None. |
|
5793 @post CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest is fully constructed. |
|
5794 */ |
|
5795 inline CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest(CDataLogger& aDataLogger, |
|
5796 MUnitTestObserver& aObserver); |
|
5797 |
|
5798 /** |
|
5799 @fn void ConstructL() |
|
5800 Intended Usage : Second phase of safe two phase construction, |
|
5801 to complete the object initialisation. |
|
5802 Error Condition : Leaves with an error code. |
|
5803 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
5804 @since 7.0 |
|
5805 @return None |
|
5806 @pre CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest is fully constructed. |
|
5807 @post CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest is fully initialized. |
|
5808 */ |
|
5809 void ConstructL(); |
|
5810 |
|
5811 /** |
|
5812 The context of the Unit Test. |
|
5813 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
5814 */ |
|
5815 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
5816 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
5817 /* C'tor, d'tor, and method transition validators */ |
|
5818 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
5819 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iEncodingVersionCodePageIntWithVersionValidator; |
|
5820 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
5821 }; // CWspHeaderWriter_EncodingVersionCodePageIntWithVersion_UnitTest |
|
5822 |
|
5823 // ______________________________________________________________________________ |
|
5824 // |
|
5825 /** |
|
5826 @internal |
|
5827 @class CWspHeaderWriter_Expect100Continue_UnitTest |
|
5828 @Depends CWspHeaderWriter & CUnitTest |
|
5829 |
|
5830 Comments : Unit Test for Expect100Continue on CWspHeaderWriter, the class under test. |
|
5831 */ |
|
5832 class CWspHeaderWriter_Expect100Continue_UnitTest : public CUnitTest |
|
5833 { |
|
5834 public: |
|
5835 /** |
|
5836 @fn NewL(CDataLogger& aDataLogger, |
|
5837 MUnitTestObserver& aObserver) |
|
5838 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
5839 cleanup stack. |
|
5840 Error Condition : Leaves with the error code. |
|
5841 @exceptions KErrNoMemory |
|
5842 @since 7.0 |
|
5843 @param aDataLogger The output logging object. |
|
5844 @param aObserver The observer of this UnitTest. |
|
5845 @return CWspHeaderWriter_Expect100Continue_UnitTest* The constructed object. |
|
5846 @pre None. |
|
5847 @post CWspHeaderWriter_Expect100Continue_UnitTest is fully constructed, and initialized. |
|
5848 */ |
|
5849 static CWspHeaderWriter_Expect100Continue_UnitTest* NewL(CDataLogger& aDataLogger, |
|
5850 MUnitTestObserver& aObserver); |
|
5851 |
|
5852 /** |
|
5853 @fn RunError(TInt aError) |
|
5854 Intended Usage : Intercept the panic caused by a RunL leave, |
|
5855 to restore the CWspHeaderWriter_Expect100Continue_UnitTest |
|
5856 object to a sensible state. |
|
5857 (called by the Active Scheduler immediately before the Panic). |
|
5858 Error Condition : @see CUnitTest::RunError(). |
|
5859 @since 7.0 |
|
5860 @return KErrNone if cleanup successful, otherwise |
|
5861 @see CUnitTest::RunError() |
|
5862 @pre CWspHeaderWriter_Expect100Continue_UnitTest is fully constructed, and initialized. |
|
5863 @post The object has been restored to a sensible state. |
|
5864 */ |
|
5865 inline TInt RunError(TInt aError); |
|
5866 |
|
5867 /** |
|
5868 @fn ~CWspHeaderWriter_Expect100Continue_UnitTest() |
|
5869 Intended Usage : Standard Destructor. |
|
5870 Error Condition : None. |
|
5871 @since 7.0 |
|
5872 @pre CWspHeaderWriter_Expect100Continue_UnitTest is fully constructed. |
|
5873 @post CWspHeaderWriter_Expect100Continue_UnitTest is fully destroyed. |
|
5874 */ |
|
5875 ~CWspHeaderWriter_Expect100Continue_UnitTest(); |
|
5876 |
|
5877 private: |
|
5878 /** |
|
5879 @fn CWspHeaderWriter_Expect100Continue_UnitTest(CDataLogger& aDataLogger, |
|
5880 MUnitTestObserver& aObserver) |
|
5881 Intended Usage : Default constructor. |
|
5882 Error Condition : None. |
|
5883 @since 7.0 |
|
5884 @param aDataLogger The output logging object. |
|
5885 @param aObserver The observer of this UnitTest. |
|
5886 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
5887 @pre None. |
|
5888 @post CWspHeaderWriter_Expect100Continue_UnitTest is fully constructed. |
|
5889 */ |
|
5890 inline CWspHeaderWriter_Expect100Continue_UnitTest(CDataLogger& aDataLogger, |
|
5891 MUnitTestObserver& aObserver); |
|
5892 |
|
5893 /** |
|
5894 @fn void ConstructL() |
|
5895 Intended Usage : Second phase of safe two phase construction, |
|
5896 to complete the object initialisation. |
|
5897 Error Condition : Leaves with an error code. |
|
5898 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
5899 @since 7.0 |
|
5900 @return None |
|
5901 @pre CWspHeaderWriter_Expect100Continue_UnitTest is fully constructed. |
|
5902 @post CWspHeaderWriter_Expect100Continue_UnitTest is fully initialized. |
|
5903 */ |
|
5904 void ConstructL(); |
|
5905 |
|
5906 /** |
|
5907 The context of the Unit Test. |
|
5908 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
5909 */ |
|
5910 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
5911 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
5912 /* C'tor, d'tor, and method transition validators */ |
|
5913 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
5914 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iExpect100ContinueValidator; |
|
5915 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
5916 }; // CWspHeaderWriter_Expect100Continue_UnitTest |
|
5917 |
|
5918 // ______________________________________________________________________________ |
|
5919 // |
|
5920 /** |
|
5921 @internal |
|
5922 @class CWspHeaderWriter_ExpectExpressionTokenText_UnitTest |
|
5923 @Depends CWspHeaderWriter & CUnitTest |
|
5924 |
|
5925 Comments : Unit Test for ExpectExpressionTokenText on CWspHeaderWriter, the class under test. |
|
5926 */ |
|
5927 class CWspHeaderWriter_ExpectExpressionTokenText_UnitTest : public CUnitTest |
|
5928 { |
|
5929 public: |
|
5930 /** |
|
5931 @fn NewL(CDataLogger& aDataLogger, |
|
5932 MUnitTestObserver& aObserver) |
|
5933 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
5934 cleanup stack. |
|
5935 Error Condition : Leaves with the error code. |
|
5936 @exceptions KErrNoMemory |
|
5937 @since 7.0 |
|
5938 @param aDataLogger The output logging object. |
|
5939 @param aObserver The observer of this UnitTest. |
|
5940 @return CWspHeaderWriter_ExpectExpressionTokenText_UnitTest* The constructed object. |
|
5941 @pre None. |
|
5942 @post CWspHeaderWriter_ExpectExpressionTokenText_UnitTest is fully constructed, and initialized. |
|
5943 */ |
|
5944 static CWspHeaderWriter_ExpectExpressionTokenText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
5945 MUnitTestObserver& aObserver); |
|
5946 |
|
5947 /** |
|
5948 @fn RunError(TInt aError) |
|
5949 Intended Usage : Intercept the panic caused by a RunL leave, |
|
5950 to restore the CWspHeaderWriter_ExpectExpressionTokenText_UnitTest |
|
5951 object to a sensible state. |
|
5952 (called by the Active Scheduler immediately before the Panic). |
|
5953 Error Condition : @see CUnitTest::RunError(). |
|
5954 @since 7.0 |
|
5955 @return KErrNone if cleanup successful, otherwise |
|
5956 @see CUnitTest::RunError() |
|
5957 @pre CWspHeaderWriter_ExpectExpressionTokenText_UnitTest is fully constructed, and initialized. |
|
5958 @post The object has been restored to a sensible state. |
|
5959 */ |
|
5960 inline TInt RunError(TInt aError); |
|
5961 |
|
5962 /** |
|
5963 @fn ~CWspHeaderWriter_ExpectExpressionTokenText_UnitTest() |
|
5964 Intended Usage : Standard Destructor. |
|
5965 Error Condition : None. |
|
5966 @since 7.0 |
|
5967 @pre CWspHeaderWriter_ExpectExpressionTokenText_UnitTest is fully constructed. |
|
5968 @post CWspHeaderWriter_ExpectExpressionTokenText_UnitTest is fully destroyed. |
|
5969 */ |
|
5970 ~CWspHeaderWriter_ExpectExpressionTokenText_UnitTest(); |
|
5971 |
|
5972 private: |
|
5973 /** |
|
5974 @fn CWspHeaderWriter_ExpectExpressionTokenText_UnitTest(CDataLogger& aDataLogger, |
|
5975 MUnitTestObserver& aObserver) |
|
5976 Intended Usage : Default constructor. |
|
5977 Error Condition : None. |
|
5978 @since 7.0 |
|
5979 @param aDataLogger The output logging object. |
|
5980 @param aObserver The observer of this UnitTest. |
|
5981 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
5982 @pre None. |
|
5983 @post CWspHeaderWriter_ExpectExpressionTokenText_UnitTest is fully constructed. |
|
5984 */ |
|
5985 inline CWspHeaderWriter_ExpectExpressionTokenText_UnitTest(CDataLogger& aDataLogger, |
|
5986 MUnitTestObserver& aObserver); |
|
5987 |
|
5988 /** |
|
5989 @fn void ConstructL() |
|
5990 Intended Usage : Second phase of safe two phase construction, |
|
5991 to complete the object initialisation. |
|
5992 Error Condition : Leaves with an error code. |
|
5993 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
5994 @since 7.0 |
|
5995 @return None |
|
5996 @pre CWspHeaderWriter_ExpectExpressionTokenText_UnitTest is fully constructed. |
|
5997 @post CWspHeaderWriter_ExpectExpressionTokenText_UnitTest is fully initialized. |
|
5998 */ |
|
5999 void ConstructL(); |
|
6000 |
|
6001 /** |
|
6002 The context of the Unit Test. |
|
6003 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
6004 */ |
|
6005 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
6006 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
6007 /* C'tor, d'tor, and method transition validators */ |
|
6008 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
6009 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iExpectExpressionTokenTextValidator; |
|
6010 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
6011 }; // CWspHeaderWriter_ExpectExpressionTokenText_UnitTest |
|
6012 |
|
6013 // ______________________________________________________________________________ |
|
6014 // |
|
6015 /** |
|
6016 @internal |
|
6017 @class CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest |
|
6018 @Depends CWspHeaderWriter & CUnitTest |
|
6019 |
|
6020 Comments : Unit Test for ExpectExpressionQuotedText on CWspHeaderWriter, the class under test. |
|
6021 */ |
|
6022 class CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest : public CUnitTest |
|
6023 { |
|
6024 public: |
|
6025 /** |
|
6026 @fn NewL(CDataLogger& aDataLogger, |
|
6027 MUnitTestObserver& aObserver) |
|
6028 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
6029 cleanup stack. |
|
6030 Error Condition : Leaves with the error code. |
|
6031 @exceptions KErrNoMemory |
|
6032 @since 7.0 |
|
6033 @param aDataLogger The output logging object. |
|
6034 @param aObserver The observer of this UnitTest. |
|
6035 @return CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest* The constructed object. |
|
6036 @pre None. |
|
6037 @post CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest is fully constructed, and initialized. |
|
6038 */ |
|
6039 static CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
6040 MUnitTestObserver& aObserver); |
|
6041 |
|
6042 /** |
|
6043 @fn RunError(TInt aError) |
|
6044 Intended Usage : Intercept the panic caused by a RunL leave, |
|
6045 to restore the CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest |
|
6046 object to a sensible state. |
|
6047 (called by the Active Scheduler immediately before the Panic). |
|
6048 Error Condition : @see CUnitTest::RunError(). |
|
6049 @since 7.0 |
|
6050 @return KErrNone if cleanup successful, otherwise |
|
6051 @see CUnitTest::RunError() |
|
6052 @pre CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest is fully constructed, and initialized. |
|
6053 @post The object has been restored to a sensible state. |
|
6054 */ |
|
6055 inline TInt RunError(TInt aError); |
|
6056 |
|
6057 /** |
|
6058 @fn ~CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest() |
|
6059 Intended Usage : Standard Destructor. |
|
6060 Error Condition : None. |
|
6061 @since 7.0 |
|
6062 @pre CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest is fully constructed. |
|
6063 @post CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest is fully destroyed. |
|
6064 */ |
|
6065 ~CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest(); |
|
6066 |
|
6067 private: |
|
6068 /** |
|
6069 @fn CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest(CDataLogger& aDataLogger, |
|
6070 MUnitTestObserver& aObserver) |
|
6071 Intended Usage : Default constructor. |
|
6072 Error Condition : None. |
|
6073 @since 7.0 |
|
6074 @param aDataLogger The output logging object. |
|
6075 @param aObserver The observer of this UnitTest. |
|
6076 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
6077 @pre None. |
|
6078 @post CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest is fully constructed. |
|
6079 */ |
|
6080 inline CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest(CDataLogger& aDataLogger, |
|
6081 MUnitTestObserver& aObserver); |
|
6082 |
|
6083 /** |
|
6084 @fn void ConstructL() |
|
6085 Intended Usage : Second phase of safe two phase construction, |
|
6086 to complete the object initialisation. |
|
6087 Error Condition : Leaves with an error code. |
|
6088 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
6089 @since 7.0 |
|
6090 @return None |
|
6091 @pre CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest is fully constructed. |
|
6092 @post CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest is fully initialized. |
|
6093 */ |
|
6094 void ConstructL(); |
|
6095 |
|
6096 /** |
|
6097 The context of the Unit Test. |
|
6098 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
6099 */ |
|
6100 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
6101 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
6102 /* C'tor, d'tor, and method transition validators */ |
|
6103 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
6104 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iExpectExpressionQuotedTextValidator; |
|
6105 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
6106 }; // CWspHeaderWriter_ExpectExpressionQuotedText_UnitTest |
|
6107 |
|
6108 // ______________________________________________________________________________ |
|
6109 // |
|
6110 /** |
|
6111 @internal |
|
6112 @class CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest |
|
6113 @Depends CWspHeaderWriter & CUnitTest |
|
6114 |
|
6115 Comments : Unit Test for ExpectExpressionTokenTextParam on CWspHeaderWriter, the class under test. |
|
6116 */ |
|
6117 class CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest : public CUnitTest |
|
6118 { |
|
6119 public: |
|
6120 /** |
|
6121 @fn NewL(CDataLogger& aDataLogger, |
|
6122 MUnitTestObserver& aObserver) |
|
6123 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
6124 cleanup stack. |
|
6125 Error Condition : Leaves with the error code. |
|
6126 @exceptions KErrNoMemory |
|
6127 @since 7.0 |
|
6128 @param aDataLogger The output logging object. |
|
6129 @param aObserver The observer of this UnitTest. |
|
6130 @return CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest* The constructed object. |
|
6131 @pre None. |
|
6132 @post CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest is fully constructed, and initialized. |
|
6133 */ |
|
6134 static CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest* NewL(CDataLogger& aDataLogger, |
|
6135 MUnitTestObserver& aObserver); |
|
6136 |
|
6137 /** |
|
6138 @fn RunError(TInt aError) |
|
6139 Intended Usage : Intercept the panic caused by a RunL leave, |
|
6140 to restore the CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest |
|
6141 object to a sensible state. |
|
6142 (called by the Active Scheduler immediately before the Panic). |
|
6143 Error Condition : @see CUnitTest::RunError(). |
|
6144 @since 7.0 |
|
6145 @return KErrNone if cleanup successful, otherwise |
|
6146 @see CUnitTest::RunError() |
|
6147 @pre CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest is fully constructed, and initialized. |
|
6148 @post The object has been restored to a sensible state. |
|
6149 */ |
|
6150 inline TInt RunError(TInt aError); |
|
6151 |
|
6152 /** |
|
6153 @fn ~CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest() |
|
6154 Intended Usage : Standard Destructor. |
|
6155 Error Condition : None. |
|
6156 @since 7.0 |
|
6157 @pre CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest is fully constructed. |
|
6158 @post CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest is fully destroyed. |
|
6159 */ |
|
6160 ~CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest(); |
|
6161 |
|
6162 private: |
|
6163 /** |
|
6164 @fn CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest(CDataLogger& aDataLogger, |
|
6165 MUnitTestObserver& aObserver) |
|
6166 Intended Usage : Default constructor. |
|
6167 Error Condition : None. |
|
6168 @since 7.0 |
|
6169 @param aDataLogger The output logging object. |
|
6170 @param aObserver The observer of this UnitTest. |
|
6171 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
6172 @pre None. |
|
6173 @post CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest is fully constructed. |
|
6174 */ |
|
6175 inline CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest(CDataLogger& aDataLogger, |
|
6176 MUnitTestObserver& aObserver); |
|
6177 |
|
6178 /** |
|
6179 @fn void ConstructL() |
|
6180 Intended Usage : Second phase of safe two phase construction, |
|
6181 to complete the object initialisation. |
|
6182 Error Condition : Leaves with an error code. |
|
6183 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
6184 @since 7.0 |
|
6185 @return None |
|
6186 @pre CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest is fully constructed. |
|
6187 @post CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest is fully initialized. |
|
6188 */ |
|
6189 void ConstructL(); |
|
6190 |
|
6191 /** |
|
6192 The context of the Unit Test. |
|
6193 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
6194 */ |
|
6195 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
6196 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
6197 /* C'tor, d'tor, and method transition validators */ |
|
6198 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
6199 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iExpectExpressionTokenTextParamValidator; |
|
6200 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
6201 }; // CWspHeaderWriter_ExpectExpressionTokenTextParam_UnitTest |
|
6202 |
|
6203 // ______________________________________________________________________________ |
|
6204 // |
|
6205 /** |
|
6206 @internal |
|
6207 @class CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest |
|
6208 @Depends CWspHeaderWriter & CUnitTest |
|
6209 |
|
6210 Comments : Unit Test for ExpectExpressionQuotedTextParam on CWspHeaderWriter, the class under test. |
|
6211 */ |
|
6212 class CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest : public CUnitTest |
|
6213 { |
|
6214 public: |
|
6215 /** |
|
6216 @fn NewL(CDataLogger& aDataLogger, |
|
6217 MUnitTestObserver& aObserver) |
|
6218 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
6219 cleanup stack. |
|
6220 Error Condition : Leaves with the error code. |
|
6221 @exceptions KErrNoMemory |
|
6222 @since 7.0 |
|
6223 @param aDataLogger The output logging object. |
|
6224 @param aObserver The observer of this UnitTest. |
|
6225 @return CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest* The constructed object. |
|
6226 @pre None. |
|
6227 @post CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest is fully constructed, and initialized. |
|
6228 */ |
|
6229 static CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest* NewL(CDataLogger& aDataLogger, |
|
6230 MUnitTestObserver& aObserver); |
|
6231 |
|
6232 /** |
|
6233 @fn RunError(TInt aError) |
|
6234 Intended Usage : Intercept the panic caused by a RunL leave, |
|
6235 to restore the CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest |
|
6236 object to a sensible state. |
|
6237 (called by the Active Scheduler immediately before the Panic). |
|
6238 Error Condition : @see CUnitTest::RunError(). |
|
6239 @since 7.0 |
|
6240 @return KErrNone if cleanup successful, otherwise |
|
6241 @see CUnitTest::RunError() |
|
6242 @pre CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest is fully constructed, and initialized. |
|
6243 @post The object has been restored to a sensible state. |
|
6244 */ |
|
6245 inline TInt RunError(TInt aError); |
|
6246 |
|
6247 /** |
|
6248 @fn ~CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest() |
|
6249 Intended Usage : Standard Destructor. |
|
6250 Error Condition : None. |
|
6251 @since 7.0 |
|
6252 @pre CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest is fully constructed. |
|
6253 @post CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest is fully destroyed. |
|
6254 */ |
|
6255 ~CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest(); |
|
6256 |
|
6257 private: |
|
6258 /** |
|
6259 @fn CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest(CDataLogger& aDataLogger, |
|
6260 MUnitTestObserver& aObserver) |
|
6261 Intended Usage : Default constructor. |
|
6262 Error Condition : None. |
|
6263 @since 7.0 |
|
6264 @param aDataLogger The output logging object. |
|
6265 @param aObserver The observer of this UnitTest. |
|
6266 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
6267 @pre None. |
|
6268 @post CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest is fully constructed. |
|
6269 */ |
|
6270 inline CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest(CDataLogger& aDataLogger, |
|
6271 MUnitTestObserver& aObserver); |
|
6272 |
|
6273 /** |
|
6274 @fn void ConstructL() |
|
6275 Intended Usage : Second phase of safe two phase construction, |
|
6276 to complete the object initialisation. |
|
6277 Error Condition : Leaves with an error code. |
|
6278 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
6279 @since 7.0 |
|
6280 @return None |
|
6281 @pre CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest is fully constructed. |
|
6282 @post CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest is fully initialized. |
|
6283 */ |
|
6284 void ConstructL(); |
|
6285 |
|
6286 /** |
|
6287 The context of the Unit Test. |
|
6288 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
6289 */ |
|
6290 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
6291 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
6292 /* C'tor, d'tor, and method transition validators */ |
|
6293 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
6294 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iExpectExpressionQuotedTextParamValidator; |
|
6295 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
6296 }; // CWspHeaderWriter_ExpectExpressionQuotedTextParam_UnitTest |
|
6297 |
|
6298 // ______________________________________________________________________________ |
|
6299 // |
|
6300 /** |
|
6301 @internal |
|
6302 @class CWspHeaderWriter_ExpectExpression2Params_UnitTest |
|
6303 @Depends CWspHeaderWriter & CUnitTest |
|
6304 |
|
6305 Comments : Unit Test for ExpectExpression2Params on CWspHeaderWriter, the class under test. |
|
6306 */ |
|
6307 class CWspHeaderWriter_ExpectExpression2Params_UnitTest : public CUnitTest |
|
6308 { |
|
6309 public: |
|
6310 /** |
|
6311 @fn NewL(CDataLogger& aDataLogger, |
|
6312 MUnitTestObserver& aObserver) |
|
6313 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
6314 cleanup stack. |
|
6315 Error Condition : Leaves with the error code. |
|
6316 @exceptions KErrNoMemory |
|
6317 @since 7.0 |
|
6318 @param aDataLogger The output logging object. |
|
6319 @param aObserver The observer of this UnitTest. |
|
6320 @return CWspHeaderWriter_ExpectExpression2Params_UnitTest* The constructed object. |
|
6321 @pre None. |
|
6322 @post CWspHeaderWriter_ExpectExpression2Params_UnitTest is fully constructed, and initialized. |
|
6323 */ |
|
6324 static CWspHeaderWriter_ExpectExpression2Params_UnitTest* NewL(CDataLogger& aDataLogger, |
|
6325 MUnitTestObserver& aObserver); |
|
6326 |
|
6327 /** |
|
6328 @fn RunError(TInt aError) |
|
6329 Intended Usage : Intercept the panic caused by a RunL leave, |
|
6330 to restore the CWspHeaderWriter_ExpectExpression2Params_UnitTest |
|
6331 object to a sensible state. |
|
6332 (called by the Active Scheduler immediately before the Panic). |
|
6333 Error Condition : @see CUnitTest::RunError(). |
|
6334 @since 7.0 |
|
6335 @return KErrNone if cleanup successful, otherwise |
|
6336 @see CUnitTest::RunError() |
|
6337 @pre CWspHeaderWriter_ExpectExpression2Params_UnitTest is fully constructed, and initialized. |
|
6338 @post The object has been restored to a sensible state. |
|
6339 */ |
|
6340 inline TInt RunError(TInt aError); |
|
6341 |
|
6342 /** |
|
6343 @fn ~CWspHeaderWriter_ExpectExpression2Params_UnitTest() |
|
6344 Intended Usage : Standard Destructor. |
|
6345 Error Condition : None. |
|
6346 @since 7.0 |
|
6347 @pre CWspHeaderWriter_ExpectExpression2Params_UnitTest is fully constructed. |
|
6348 @post CWspHeaderWriter_ExpectExpression2Params_UnitTest is fully destroyed. |
|
6349 */ |
|
6350 ~CWspHeaderWriter_ExpectExpression2Params_UnitTest(); |
|
6351 |
|
6352 private: |
|
6353 /** |
|
6354 @fn CWspHeaderWriter_ExpectExpression2Params_UnitTest(CDataLogger& aDataLogger, |
|
6355 MUnitTestObserver& aObserver) |
|
6356 Intended Usage : Default constructor. |
|
6357 Error Condition : None. |
|
6358 @since 7.0 |
|
6359 @param aDataLogger The output logging object. |
|
6360 @param aObserver The observer of this UnitTest. |
|
6361 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
6362 @pre None. |
|
6363 @post CWspHeaderWriter_ExpectExpression2Params_UnitTest is fully constructed. |
|
6364 */ |
|
6365 inline CWspHeaderWriter_ExpectExpression2Params_UnitTest(CDataLogger& aDataLogger, |
|
6366 MUnitTestObserver& aObserver); |
|
6367 |
|
6368 /** |
|
6369 @fn void ConstructL() |
|
6370 Intended Usage : Second phase of safe two phase construction, |
|
6371 to complete the object initialisation. |
|
6372 Error Condition : Leaves with an error code. |
|
6373 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
6374 @since 7.0 |
|
6375 @return None |
|
6376 @pre CWspHeaderWriter_ExpectExpression2Params_UnitTest is fully constructed. |
|
6377 @post CWspHeaderWriter_ExpectExpression2Params_UnitTest is fully initialized. |
|
6378 */ |
|
6379 void ConstructL(); |
|
6380 |
|
6381 /** |
|
6382 The context of the Unit Test. |
|
6383 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
6384 */ |
|
6385 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
6386 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
6387 /* C'tor, d'tor, and method transition validators */ |
|
6388 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
6389 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iExpectExpression2ParamsValidator; |
|
6390 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
6391 }; // CWspHeaderWriter_ExpectExpression2Params_UnitTest |
|
6392 |
|
6393 // ______________________________________________________________________________ |
|
6394 // |
|
6395 /** |
|
6396 @internal |
|
6397 @class CWspHeaderWriter_TETrailers_UnitTest |
|
6398 @Depends CWspHeaderWriter & CUnitTest |
|
6399 |
|
6400 Comments : Unit Test for TETrailers on CWspHeaderWriter, the class under test. |
|
6401 */ |
|
6402 class CWspHeaderWriter_TETrailers_UnitTest : public CUnitTest |
|
6403 { |
|
6404 public: |
|
6405 /** |
|
6406 @fn NewL(CDataLogger& aDataLogger, |
|
6407 MUnitTestObserver& aObserver) |
|
6408 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
6409 cleanup stack. |
|
6410 Error Condition : Leaves with the error code. |
|
6411 @exceptions KErrNoMemory |
|
6412 @since 7.0 |
|
6413 @param aDataLogger The output logging object. |
|
6414 @param aObserver The observer of this UnitTest. |
|
6415 @return CWspHeaderWriter_TETrailers_UnitTest* The constructed object. |
|
6416 @pre None. |
|
6417 @post CWspHeaderWriter_TETrailers_UnitTest is fully constructed, and initialized. |
|
6418 */ |
|
6419 static CWspHeaderWriter_TETrailers_UnitTest* NewL(CDataLogger& aDataLogger, |
|
6420 MUnitTestObserver& aObserver); |
|
6421 |
|
6422 /** |
|
6423 @fn RunError(TInt aError) |
|
6424 Intended Usage : Intercept the panic caused by a RunL leave, |
|
6425 to restore the CWspHeaderWriter_TETrailers_UnitTest |
|
6426 object to a sensible state. |
|
6427 (called by the Active Scheduler immediately before the Panic). |
|
6428 Error Condition : @see CUnitTest::RunError(). |
|
6429 @since 7.0 |
|
6430 @return KErrNone if cleanup successful, otherwise |
|
6431 @see CUnitTest::RunError() |
|
6432 @pre CWspHeaderWriter_TETrailers_UnitTest is fully constructed, and initialized. |
|
6433 @post The object has been restored to a sensible state. |
|
6434 */ |
|
6435 inline TInt RunError(TInt aError); |
|
6436 |
|
6437 /** |
|
6438 @fn ~CWspHeaderWriter_TETrailers_UnitTest() |
|
6439 Intended Usage : Standard Destructor. |
|
6440 Error Condition : None. |
|
6441 @since 7.0 |
|
6442 @pre CWspHeaderWriter_TETrailers_UnitTest is fully constructed. |
|
6443 @post CWspHeaderWriter_TETrailers_UnitTest is fully destroyed. |
|
6444 */ |
|
6445 ~CWspHeaderWriter_TETrailers_UnitTest(); |
|
6446 |
|
6447 private: |
|
6448 /** |
|
6449 @fn CWspHeaderWriter_TETrailers_UnitTest(CDataLogger& aDataLogger, |
|
6450 MUnitTestObserver& aObserver) |
|
6451 Intended Usage : Default constructor. |
|
6452 Error Condition : None. |
|
6453 @since 7.0 |
|
6454 @param aDataLogger The output logging object. |
|
6455 @param aObserver The observer of this UnitTest. |
|
6456 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
6457 @pre None. |
|
6458 @post CWspHeaderWriter_TETrailers_UnitTest is fully constructed. |
|
6459 */ |
|
6460 inline CWspHeaderWriter_TETrailers_UnitTest(CDataLogger& aDataLogger, |
|
6461 MUnitTestObserver& aObserver); |
|
6462 |
|
6463 /** |
|
6464 @fn void ConstructL() |
|
6465 Intended Usage : Second phase of safe two phase construction, |
|
6466 to complete the object initialisation. |
|
6467 Error Condition : Leaves with an error code. |
|
6468 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
6469 @since 7.0 |
|
6470 @return None |
|
6471 @pre CWspHeaderWriter_TETrailers_UnitTest is fully constructed. |
|
6472 @post CWspHeaderWriter_TETrailers_UnitTest is fully initialized. |
|
6473 */ |
|
6474 void ConstructL(); |
|
6475 |
|
6476 /** |
|
6477 The context of the Unit Test. |
|
6478 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
6479 */ |
|
6480 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
6481 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
6482 /* C'tor, d'tor, and method transition validators */ |
|
6483 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
6484 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTETrailersValidator; |
|
6485 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
6486 }; // CWspHeaderWriter_TETrailers_UnitTest |
|
6487 |
|
6488 // ______________________________________________________________________________ |
|
6489 // |
|
6490 /** |
|
6491 @internal |
|
6492 @class CWspHeaderWriter_TEChunked_UnitTest |
|
6493 @Depends CWspHeaderWriter & CUnitTest |
|
6494 |
|
6495 Comments : Unit Test for TEChunked on CWspHeaderWriter, the class under test. |
|
6496 */ |
|
6497 class CWspHeaderWriter_TEChunked_UnitTest : public CUnitTest |
|
6498 { |
|
6499 public: |
|
6500 /** |
|
6501 @fn NewL(CDataLogger& aDataLogger, |
|
6502 MUnitTestObserver& aObserver) |
|
6503 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
6504 cleanup stack. |
|
6505 Error Condition : Leaves with the error code. |
|
6506 @exceptions KErrNoMemory |
|
6507 @since 7.0 |
|
6508 @param aDataLogger The output logging object. |
|
6509 @param aObserver The observer of this UnitTest. |
|
6510 @return CWspHeaderWriter_TEChunked_UnitTest* The constructed object. |
|
6511 @pre None. |
|
6512 @post CWspHeaderWriter_TEChunked_UnitTest is fully constructed, and initialized. |
|
6513 */ |
|
6514 static CWspHeaderWriter_TEChunked_UnitTest* NewL(CDataLogger& aDataLogger, |
|
6515 MUnitTestObserver& aObserver); |
|
6516 |
|
6517 /** |
|
6518 @fn RunError(TInt aError) |
|
6519 Intended Usage : Intercept the panic caused by a RunL leave, |
|
6520 to restore the CWspHeaderWriter_TEChunked_UnitTest |
|
6521 object to a sensible state. |
|
6522 (called by the Active Scheduler immediately before the Panic). |
|
6523 Error Condition : @see CUnitTest::RunError(). |
|
6524 @since 7.0 |
|
6525 @return KErrNone if cleanup successful, otherwise |
|
6526 @see CUnitTest::RunError() |
|
6527 @pre CWspHeaderWriter_TEChunked_UnitTest is fully constructed, and initialized. |
|
6528 @post The object has been restored to a sensible state. |
|
6529 */ |
|
6530 inline TInt RunError(TInt aError); |
|
6531 |
|
6532 /** |
|
6533 @fn ~CWspHeaderWriter_TEChunked_UnitTest() |
|
6534 Intended Usage : Standard Destructor. |
|
6535 Error Condition : None. |
|
6536 @since 7.0 |
|
6537 @pre CWspHeaderWriter_TEChunked_UnitTest is fully constructed. |
|
6538 @post CWspHeaderWriter_TEChunked_UnitTest is fully destroyed. |
|
6539 */ |
|
6540 ~CWspHeaderWriter_TEChunked_UnitTest(); |
|
6541 |
|
6542 private: |
|
6543 /** |
|
6544 @fn CWspHeaderWriter_TEChunked_UnitTest(CDataLogger& aDataLogger, |
|
6545 MUnitTestObserver& aObserver) |
|
6546 Intended Usage : Default constructor. |
|
6547 Error Condition : None. |
|
6548 @since 7.0 |
|
6549 @param aDataLogger The output logging object. |
|
6550 @param aObserver The observer of this UnitTest. |
|
6551 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
6552 @pre None. |
|
6553 @post CWspHeaderWriter_TEChunked_UnitTest is fully constructed. |
|
6554 */ |
|
6555 inline CWspHeaderWriter_TEChunked_UnitTest(CDataLogger& aDataLogger, |
|
6556 MUnitTestObserver& aObserver); |
|
6557 |
|
6558 /** |
|
6559 @fn void ConstructL() |
|
6560 Intended Usage : Second phase of safe two phase construction, |
|
6561 to complete the object initialisation. |
|
6562 Error Condition : Leaves with an error code. |
|
6563 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
6564 @since 7.0 |
|
6565 @return None |
|
6566 @pre CWspHeaderWriter_TEChunked_UnitTest is fully constructed. |
|
6567 @post CWspHeaderWriter_TEChunked_UnitTest is fully initialized. |
|
6568 */ |
|
6569 void ConstructL(); |
|
6570 |
|
6571 /** |
|
6572 The context of the Unit Test. |
|
6573 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
6574 */ |
|
6575 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
6576 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
6577 /* C'tor, d'tor, and method transition validators */ |
|
6578 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
6579 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTEChunkedValidator; |
|
6580 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
6581 }; // CWspHeaderWriter_TEChunked_UnitTest |
|
6582 |
|
6583 // ______________________________________________________________________________ |
|
6584 // |
|
6585 /** |
|
6586 @internal |
|
6587 @class CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest |
|
6588 @Depends CWspHeaderWriter & CUnitTest |
|
6589 |
|
6590 Comments : Unit Test for TEIdentitiyWithQValue on CWspHeaderWriter, the class under test. |
|
6591 */ |
|
6592 class CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest : public CUnitTest |
|
6593 { |
|
6594 public: |
|
6595 /** |
|
6596 @fn NewL(CDataLogger& aDataLogger, |
|
6597 MUnitTestObserver& aObserver) |
|
6598 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
6599 cleanup stack. |
|
6600 Error Condition : Leaves with the error code. |
|
6601 @exceptions KErrNoMemory |
|
6602 @since 7.0 |
|
6603 @param aDataLogger The output logging object. |
|
6604 @param aObserver The observer of this UnitTest. |
|
6605 @return CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest* The constructed object. |
|
6606 @pre None. |
|
6607 @post CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest is fully constructed, and initialized. |
|
6608 */ |
|
6609 static CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest* NewL(CDataLogger& aDataLogger, |
|
6610 MUnitTestObserver& aObserver); |
|
6611 |
|
6612 /** |
|
6613 @fn RunError(TInt aError) |
|
6614 Intended Usage : Intercept the panic caused by a RunL leave, |
|
6615 to restore the CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest |
|
6616 object to a sensible state. |
|
6617 (called by the Active Scheduler immediately before the Panic). |
|
6618 Error Condition : @see CUnitTest::RunError(). |
|
6619 @since 7.0 |
|
6620 @return KErrNone if cleanup successful, otherwise |
|
6621 @see CUnitTest::RunError() |
|
6622 @pre CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest is fully constructed, and initialized. |
|
6623 @post The object has been restored to a sensible state. |
|
6624 */ |
|
6625 inline TInt RunError(TInt aError); |
|
6626 |
|
6627 /** |
|
6628 @fn ~CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest() |
|
6629 Intended Usage : Standard Destructor. |
|
6630 Error Condition : None. |
|
6631 @since 7.0 |
|
6632 @pre CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest is fully constructed. |
|
6633 @post CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest is fully destroyed. |
|
6634 */ |
|
6635 ~CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest(); |
|
6636 |
|
6637 private: |
|
6638 /** |
|
6639 @fn CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest(CDataLogger& aDataLogger, |
|
6640 MUnitTestObserver& aObserver) |
|
6641 Intended Usage : Default constructor. |
|
6642 Error Condition : None. |
|
6643 @since 7.0 |
|
6644 @param aDataLogger The output logging object. |
|
6645 @param aObserver The observer of this UnitTest. |
|
6646 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
6647 @pre None. |
|
6648 @post CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest is fully constructed. |
|
6649 */ |
|
6650 inline CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest(CDataLogger& aDataLogger, |
|
6651 MUnitTestObserver& aObserver); |
|
6652 |
|
6653 /** |
|
6654 @fn void ConstructL() |
|
6655 Intended Usage : Second phase of safe two phase construction, |
|
6656 to complete the object initialisation. |
|
6657 Error Condition : Leaves with an error code. |
|
6658 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
6659 @since 7.0 |
|
6660 @return None |
|
6661 @pre CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest is fully constructed. |
|
6662 @post CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest is fully initialized. |
|
6663 */ |
|
6664 void ConstructL(); |
|
6665 |
|
6666 /** |
|
6667 The context of the Unit Test. |
|
6668 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
6669 */ |
|
6670 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
6671 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
6672 /* C'tor, d'tor, and method transition validators */ |
|
6673 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
6674 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTEIdentitiyWithQValueValidator; |
|
6675 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
6676 }; // CWspHeaderWriter_TEIdentitiyWithQValue_UnitTest |
|
6677 |
|
6678 // ______________________________________________________________________________ |
|
6679 // |
|
6680 /** |
|
6681 @internal |
|
6682 @class CWspHeaderWriter_TEGzip_UnitTest |
|
6683 @Depends CWspHeaderWriter & CUnitTest |
|
6684 |
|
6685 Comments : Unit Test for TEGzip on CWspHeaderWriter, the class under test. |
|
6686 */ |
|
6687 class CWspHeaderWriter_TEGzip_UnitTest : public CUnitTest |
|
6688 { |
|
6689 public: |
|
6690 /** |
|
6691 @fn NewL(CDataLogger& aDataLogger, |
|
6692 MUnitTestObserver& aObserver) |
|
6693 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
6694 cleanup stack. |
|
6695 Error Condition : Leaves with the error code. |
|
6696 @exceptions KErrNoMemory |
|
6697 @since 7.0 |
|
6698 @param aDataLogger The output logging object. |
|
6699 @param aObserver The observer of this UnitTest. |
|
6700 @return CWspHeaderWriter_TEGzip_UnitTest* The constructed object. |
|
6701 @pre None. |
|
6702 @post CWspHeaderWriter_TEGzip_UnitTest is fully constructed, and initialized. |
|
6703 */ |
|
6704 static CWspHeaderWriter_TEGzip_UnitTest* NewL(CDataLogger& aDataLogger, |
|
6705 MUnitTestObserver& aObserver); |
|
6706 |
|
6707 /** |
|
6708 @fn RunError(TInt aError) |
|
6709 Intended Usage : Intercept the panic caused by a RunL leave, |
|
6710 to restore the CWspHeaderWriter_TEGzip_UnitTest |
|
6711 object to a sensible state. |
|
6712 (called by the Active Scheduler immediately before the Panic). |
|
6713 Error Condition : @see CUnitTest::RunError(). |
|
6714 @since 7.0 |
|
6715 @return KErrNone if cleanup successful, otherwise |
|
6716 @see CUnitTest::RunError() |
|
6717 @pre CWspHeaderWriter_TEGzip_UnitTest is fully constructed, and initialized. |
|
6718 @post The object has been restored to a sensible state. |
|
6719 */ |
|
6720 inline TInt RunError(TInt aError); |
|
6721 |
|
6722 /** |
|
6723 @fn ~CWspHeaderWriter_TEGzip_UnitTest() |
|
6724 Intended Usage : Standard Destructor. |
|
6725 Error Condition : None. |
|
6726 @since 7.0 |
|
6727 @pre CWspHeaderWriter_TEGzip_UnitTest is fully constructed. |
|
6728 @post CWspHeaderWriter_TEGzip_UnitTest is fully destroyed. |
|
6729 */ |
|
6730 ~CWspHeaderWriter_TEGzip_UnitTest(); |
|
6731 |
|
6732 private: |
|
6733 /** |
|
6734 @fn CWspHeaderWriter_TEGzip_UnitTest(CDataLogger& aDataLogger, |
|
6735 MUnitTestObserver& aObserver) |
|
6736 Intended Usage : Default constructor. |
|
6737 Error Condition : None. |
|
6738 @since 7.0 |
|
6739 @param aDataLogger The output logging object. |
|
6740 @param aObserver The observer of this UnitTest. |
|
6741 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
6742 @pre None. |
|
6743 @post CWspHeaderWriter_TEGzip_UnitTest is fully constructed. |
|
6744 */ |
|
6745 inline CWspHeaderWriter_TEGzip_UnitTest(CDataLogger& aDataLogger, |
|
6746 MUnitTestObserver& aObserver); |
|
6747 |
|
6748 /** |
|
6749 @fn void ConstructL() |
|
6750 Intended Usage : Second phase of safe two phase construction, |
|
6751 to complete the object initialisation. |
|
6752 Error Condition : Leaves with an error code. |
|
6753 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
6754 @since 7.0 |
|
6755 @return None |
|
6756 @pre CWspHeaderWriter_TEGzip_UnitTest is fully constructed. |
|
6757 @post CWspHeaderWriter_TEGzip_UnitTest is fully initialized. |
|
6758 */ |
|
6759 void ConstructL(); |
|
6760 |
|
6761 /** |
|
6762 The context of the Unit Test. |
|
6763 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
6764 */ |
|
6765 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
6766 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
6767 /* C'tor, d'tor, and method transition validators */ |
|
6768 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
6769 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTEGzipValidator; |
|
6770 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
6771 }; // CWspHeaderWriter_TEGzip_UnitTest |
|
6772 |
|
6773 // ______________________________________________________________________________ |
|
6774 // |
|
6775 /** |
|
6776 @internal |
|
6777 @class CWspHeaderWriter_TECompressWithQValue_UnitTest |
|
6778 @Depends CWspHeaderWriter & CUnitTest |
|
6779 |
|
6780 Comments : Unit Test for TECompressWithQValue on CWspHeaderWriter, the class under test. |
|
6781 */ |
|
6782 class CWspHeaderWriter_TECompressWithQValue_UnitTest : public CUnitTest |
|
6783 { |
|
6784 public: |
|
6785 /** |
|
6786 @fn NewL(CDataLogger& aDataLogger, |
|
6787 MUnitTestObserver& aObserver) |
|
6788 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
6789 cleanup stack. |
|
6790 Error Condition : Leaves with the error code. |
|
6791 @exceptions KErrNoMemory |
|
6792 @since 7.0 |
|
6793 @param aDataLogger The output logging object. |
|
6794 @param aObserver The observer of this UnitTest. |
|
6795 @return CWspHeaderWriter_TECompressWithQValue_UnitTest* The constructed object. |
|
6796 @pre None. |
|
6797 @post CWspHeaderWriter_TECompressWithQValue_UnitTest is fully constructed, and initialized. |
|
6798 */ |
|
6799 static CWspHeaderWriter_TECompressWithQValue_UnitTest* NewL(CDataLogger& aDataLogger, |
|
6800 MUnitTestObserver& aObserver); |
|
6801 |
|
6802 /** |
|
6803 @fn RunError(TInt aError) |
|
6804 Intended Usage : Intercept the panic caused by a RunL leave, |
|
6805 to restore the CWspHeaderWriter_TECompressWithQValue_UnitTest |
|
6806 object to a sensible state. |
|
6807 (called by the Active Scheduler immediately before the Panic). |
|
6808 Error Condition : @see CUnitTest::RunError(). |
|
6809 @since 7.0 |
|
6810 @return KErrNone if cleanup successful, otherwise |
|
6811 @see CUnitTest::RunError() |
|
6812 @pre CWspHeaderWriter_TECompressWithQValue_UnitTest is fully constructed, and initialized. |
|
6813 @post The object has been restored to a sensible state. |
|
6814 */ |
|
6815 inline TInt RunError(TInt aError); |
|
6816 |
|
6817 /** |
|
6818 @fn ~CWspHeaderWriter_TECompressWithQValue_UnitTest() |
|
6819 Intended Usage : Standard Destructor. |
|
6820 Error Condition : None. |
|
6821 @since 7.0 |
|
6822 @pre CWspHeaderWriter_TECompressWithQValue_UnitTest is fully constructed. |
|
6823 @post CWspHeaderWriter_TECompressWithQValue_UnitTest is fully destroyed. |
|
6824 */ |
|
6825 ~CWspHeaderWriter_TECompressWithQValue_UnitTest(); |
|
6826 |
|
6827 private: |
|
6828 /** |
|
6829 @fn CWspHeaderWriter_TECompressWithQValue_UnitTest(CDataLogger& aDataLogger, |
|
6830 MUnitTestObserver& aObserver) |
|
6831 Intended Usage : Default constructor. |
|
6832 Error Condition : None. |
|
6833 @since 7.0 |
|
6834 @param aDataLogger The output logging object. |
|
6835 @param aObserver The observer of this UnitTest. |
|
6836 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
6837 @pre None. |
|
6838 @post CWspHeaderWriter_TECompressWithQValue_UnitTest is fully constructed. |
|
6839 */ |
|
6840 inline CWspHeaderWriter_TECompressWithQValue_UnitTest(CDataLogger& aDataLogger, |
|
6841 MUnitTestObserver& aObserver); |
|
6842 |
|
6843 /** |
|
6844 @fn void ConstructL() |
|
6845 Intended Usage : Second phase of safe two phase construction, |
|
6846 to complete the object initialisation. |
|
6847 Error Condition : Leaves with an error code. |
|
6848 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
6849 @since 7.0 |
|
6850 @return None |
|
6851 @pre CWspHeaderWriter_TECompressWithQValue_UnitTest is fully constructed. |
|
6852 @post CWspHeaderWriter_TECompressWithQValue_UnitTest is fully initialized. |
|
6853 */ |
|
6854 void ConstructL(); |
|
6855 |
|
6856 /** |
|
6857 The context of the Unit Test. |
|
6858 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
6859 */ |
|
6860 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
6861 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
6862 /* C'tor, d'tor, and method transition validators */ |
|
6863 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
6864 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTECompressWithQValueValidator; |
|
6865 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
6866 }; // CWspHeaderWriter_TECompressWithQValue_UnitTest |
|
6867 |
|
6868 // ______________________________________________________________________________ |
|
6869 // |
|
6870 /** |
|
6871 @internal |
|
6872 @class CWspHeaderWriter_TETokenText_UnitTest |
|
6873 @Depends CWspHeaderWriter & CUnitTest |
|
6874 |
|
6875 Comments : Unit Test for TETokenText on CWspHeaderWriter, the class under test. |
|
6876 */ |
|
6877 class CWspHeaderWriter_TETokenText_UnitTest : public CUnitTest |
|
6878 { |
|
6879 public: |
|
6880 /** |
|
6881 @fn NewL(CDataLogger& aDataLogger, |
|
6882 MUnitTestObserver& aObserver) |
|
6883 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
6884 cleanup stack. |
|
6885 Error Condition : Leaves with the error code. |
|
6886 @exceptions KErrNoMemory |
|
6887 @since 7.0 |
|
6888 @param aDataLogger The output logging object. |
|
6889 @param aObserver The observer of this UnitTest. |
|
6890 @return CWspHeaderWriter_TETokenText_UnitTest* The constructed object. |
|
6891 @pre None. |
|
6892 @post CWspHeaderWriter_TETokenText_UnitTest is fully constructed, and initialized. |
|
6893 */ |
|
6894 static CWspHeaderWriter_TETokenText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
6895 MUnitTestObserver& aObserver); |
|
6896 |
|
6897 /** |
|
6898 @fn RunError(TInt aError) |
|
6899 Intended Usage : Intercept the panic caused by a RunL leave, |
|
6900 to restore the CWspHeaderWriter_TETokenText_UnitTest |
|
6901 object to a sensible state. |
|
6902 (called by the Active Scheduler immediately before the Panic). |
|
6903 Error Condition : @see CUnitTest::RunError(). |
|
6904 @since 7.0 |
|
6905 @return KErrNone if cleanup successful, otherwise |
|
6906 @see CUnitTest::RunError() |
|
6907 @pre CWspHeaderWriter_TETokenText_UnitTest is fully constructed, and initialized. |
|
6908 @post The object has been restored to a sensible state. |
|
6909 */ |
|
6910 inline TInt RunError(TInt aError); |
|
6911 |
|
6912 /** |
|
6913 @fn ~CWspHeaderWriter_TETokenText_UnitTest() |
|
6914 Intended Usage : Standard Destructor. |
|
6915 Error Condition : None. |
|
6916 @since 7.0 |
|
6917 @pre CWspHeaderWriter_TETokenText_UnitTest is fully constructed. |
|
6918 @post CWspHeaderWriter_TETokenText_UnitTest is fully destroyed. |
|
6919 */ |
|
6920 ~CWspHeaderWriter_TETokenText_UnitTest(); |
|
6921 |
|
6922 private: |
|
6923 /** |
|
6924 @fn CWspHeaderWriter_TETokenText_UnitTest(CDataLogger& aDataLogger, |
|
6925 MUnitTestObserver& aObserver) |
|
6926 Intended Usage : Default constructor. |
|
6927 Error Condition : None. |
|
6928 @since 7.0 |
|
6929 @param aDataLogger The output logging object. |
|
6930 @param aObserver The observer of this UnitTest. |
|
6931 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
6932 @pre None. |
|
6933 @post CWspHeaderWriter_TETokenText_UnitTest is fully constructed. |
|
6934 */ |
|
6935 inline CWspHeaderWriter_TETokenText_UnitTest(CDataLogger& aDataLogger, |
|
6936 MUnitTestObserver& aObserver); |
|
6937 |
|
6938 /** |
|
6939 @fn void ConstructL() |
|
6940 Intended Usage : Second phase of safe two phase construction, |
|
6941 to complete the object initialisation. |
|
6942 Error Condition : Leaves with an error code. |
|
6943 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
6944 @since 7.0 |
|
6945 @return None |
|
6946 @pre CWspHeaderWriter_TETokenText_UnitTest is fully constructed. |
|
6947 @post CWspHeaderWriter_TETokenText_UnitTest is fully initialized. |
|
6948 */ |
|
6949 void ConstructL(); |
|
6950 |
|
6951 /** |
|
6952 The context of the Unit Test. |
|
6953 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
6954 */ |
|
6955 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
6956 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
6957 /* C'tor, d'tor, and method transition validators */ |
|
6958 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
6959 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTETokenTextValidator; |
|
6960 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
6961 }; // CWspHeaderWriter_TETokenText_UnitTest |
|
6962 |
|
6963 // ______________________________________________________________________________ |
|
6964 // |
|
6965 /** |
|
6966 @internal |
|
6967 @class CWspHeaderWriter_TETokenTextWithQValue_UnitTest |
|
6968 @Depends CWspHeaderWriter & CUnitTest |
|
6969 |
|
6970 Comments : Unit Test for TETokenTextWithQValue on CWspHeaderWriter, the class under test. |
|
6971 */ |
|
6972 class CWspHeaderWriter_TETokenTextWithQValue_UnitTest : public CUnitTest |
|
6973 { |
|
6974 public: |
|
6975 /** |
|
6976 @fn NewL(CDataLogger& aDataLogger, |
|
6977 MUnitTestObserver& aObserver) |
|
6978 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
6979 cleanup stack. |
|
6980 Error Condition : Leaves with the error code. |
|
6981 @exceptions KErrNoMemory |
|
6982 @since 7.0 |
|
6983 @param aDataLogger The output logging object. |
|
6984 @param aObserver The observer of this UnitTest. |
|
6985 @return CWspHeaderWriter_TETokenTextWithQValue_UnitTest* The constructed object. |
|
6986 @pre None. |
|
6987 @post CWspHeaderWriter_TETokenTextWithQValue_UnitTest is fully constructed, and initialized. |
|
6988 */ |
|
6989 static CWspHeaderWriter_TETokenTextWithQValue_UnitTest* NewL(CDataLogger& aDataLogger, |
|
6990 MUnitTestObserver& aObserver); |
|
6991 |
|
6992 /** |
|
6993 @fn RunError(TInt aError) |
|
6994 Intended Usage : Intercept the panic caused by a RunL leave, |
|
6995 to restore the CWspHeaderWriter_TETokenTextWithQValue_UnitTest |
|
6996 object to a sensible state. |
|
6997 (called by the Active Scheduler immediately before the Panic). |
|
6998 Error Condition : @see CUnitTest::RunError(). |
|
6999 @since 7.0 |
|
7000 @return KErrNone if cleanup successful, otherwise |
|
7001 @see CUnitTest::RunError() |
|
7002 @pre CWspHeaderWriter_TETokenTextWithQValue_UnitTest is fully constructed, and initialized. |
|
7003 @post The object has been restored to a sensible state. |
|
7004 */ |
|
7005 inline TInt RunError(TInt aError); |
|
7006 |
|
7007 /** |
|
7008 @fn ~CWspHeaderWriter_TETokenTextWithQValue_UnitTest() |
|
7009 Intended Usage : Standard Destructor. |
|
7010 Error Condition : None. |
|
7011 @since 7.0 |
|
7012 @pre CWspHeaderWriter_TETokenTextWithQValue_UnitTest is fully constructed. |
|
7013 @post CWspHeaderWriter_TETokenTextWithQValue_UnitTest is fully destroyed. |
|
7014 */ |
|
7015 ~CWspHeaderWriter_TETokenTextWithQValue_UnitTest(); |
|
7016 |
|
7017 private: |
|
7018 /** |
|
7019 @fn CWspHeaderWriter_TETokenTextWithQValue_UnitTest(CDataLogger& aDataLogger, |
|
7020 MUnitTestObserver& aObserver) |
|
7021 Intended Usage : Default constructor. |
|
7022 Error Condition : None. |
|
7023 @since 7.0 |
|
7024 @param aDataLogger The output logging object. |
|
7025 @param aObserver The observer of this UnitTest. |
|
7026 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
7027 @pre None. |
|
7028 @post CWspHeaderWriter_TETokenTextWithQValue_UnitTest is fully constructed. |
|
7029 */ |
|
7030 inline CWspHeaderWriter_TETokenTextWithQValue_UnitTest(CDataLogger& aDataLogger, |
|
7031 MUnitTestObserver& aObserver); |
|
7032 |
|
7033 /** |
|
7034 @fn void ConstructL() |
|
7035 Intended Usage : Second phase of safe two phase construction, |
|
7036 to complete the object initialisation. |
|
7037 Error Condition : Leaves with an error code. |
|
7038 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
7039 @since 7.0 |
|
7040 @return None |
|
7041 @pre CWspHeaderWriter_TETokenTextWithQValue_UnitTest is fully constructed. |
|
7042 @post CWspHeaderWriter_TETokenTextWithQValue_UnitTest is fully initialized. |
|
7043 */ |
|
7044 void ConstructL(); |
|
7045 |
|
7046 /** |
|
7047 The context of the Unit Test. |
|
7048 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
7049 */ |
|
7050 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
7051 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
7052 /* C'tor, d'tor, and method transition validators */ |
|
7053 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
7054 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTETokenTextWithQValueValidator; |
|
7055 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
7056 }; // CWspHeaderWriter_TETokenTextWithQValue_UnitTest |
|
7057 |
|
7058 // ______________________________________________________________________________ |
|
7059 // |
|
7060 /** |
|
7061 @internal |
|
7062 @class CWspHeaderWriter_TrailerShortInt_UnitTest |
|
7063 @Depends CWspHeaderWriter & CUnitTest |
|
7064 |
|
7065 Comments : Unit Test for TrailerShortInt on CWspHeaderWriter, the class under test. |
|
7066 */ |
|
7067 class CWspHeaderWriter_TrailerShortInt_UnitTest : public CUnitTest |
|
7068 { |
|
7069 public: |
|
7070 /** |
|
7071 @fn NewL(CDataLogger& aDataLogger, |
|
7072 MUnitTestObserver& aObserver) |
|
7073 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
7074 cleanup stack. |
|
7075 Error Condition : Leaves with the error code. |
|
7076 @exceptions KErrNoMemory |
|
7077 @since 7.0 |
|
7078 @param aDataLogger The output logging object. |
|
7079 @param aObserver The observer of this UnitTest. |
|
7080 @return CWspHeaderWriter_TrailerShortInt_UnitTest* The constructed object. |
|
7081 @pre None. |
|
7082 @post CWspHeaderWriter_TrailerShortInt_UnitTest is fully constructed, and initialized. |
|
7083 */ |
|
7084 static CWspHeaderWriter_TrailerShortInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
7085 MUnitTestObserver& aObserver); |
|
7086 |
|
7087 /** |
|
7088 @fn RunError(TInt aError) |
|
7089 Intended Usage : Intercept the panic caused by a RunL leave, |
|
7090 to restore the CWspHeaderWriter_TrailerShortInt_UnitTest |
|
7091 object to a sensible state. |
|
7092 (called by the Active Scheduler immediately before the Panic). |
|
7093 Error Condition : @see CUnitTest::RunError(). |
|
7094 @since 7.0 |
|
7095 @return KErrNone if cleanup successful, otherwise |
|
7096 @see CUnitTest::RunError() |
|
7097 @pre CWspHeaderWriter_TrailerShortInt_UnitTest is fully constructed, and initialized. |
|
7098 @post The object has been restored to a sensible state. |
|
7099 */ |
|
7100 inline TInt RunError(TInt aError); |
|
7101 |
|
7102 /** |
|
7103 @fn ~CWspHeaderWriter_TrailerShortInt_UnitTest() |
|
7104 Intended Usage : Standard Destructor. |
|
7105 Error Condition : None. |
|
7106 @since 7.0 |
|
7107 @pre CWspHeaderWriter_TrailerShortInt_UnitTest is fully constructed. |
|
7108 @post CWspHeaderWriter_TrailerShortInt_UnitTest is fully destroyed. |
|
7109 */ |
|
7110 ~CWspHeaderWriter_TrailerShortInt_UnitTest(); |
|
7111 |
|
7112 private: |
|
7113 /** |
|
7114 @fn CWspHeaderWriter_TrailerShortInt_UnitTest(CDataLogger& aDataLogger, |
|
7115 MUnitTestObserver& aObserver) |
|
7116 Intended Usage : Default constructor. |
|
7117 Error Condition : None. |
|
7118 @since 7.0 |
|
7119 @param aDataLogger The output logging object. |
|
7120 @param aObserver The observer of this UnitTest. |
|
7121 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
7122 @pre None. |
|
7123 @post CWspHeaderWriter_TrailerShortInt_UnitTest is fully constructed. |
|
7124 */ |
|
7125 inline CWspHeaderWriter_TrailerShortInt_UnitTest(CDataLogger& aDataLogger, |
|
7126 MUnitTestObserver& aObserver); |
|
7127 |
|
7128 /** |
|
7129 @fn void ConstructL() |
|
7130 Intended Usage : Second phase of safe two phase construction, |
|
7131 to complete the object initialisation. |
|
7132 Error Condition : Leaves with an error code. |
|
7133 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
7134 @since 7.0 |
|
7135 @return None |
|
7136 @pre CWspHeaderWriter_TrailerShortInt_UnitTest is fully constructed. |
|
7137 @post CWspHeaderWriter_TrailerShortInt_UnitTest is fully initialized. |
|
7138 */ |
|
7139 void ConstructL(); |
|
7140 |
|
7141 /** |
|
7142 The context of the Unit Test. |
|
7143 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
7144 */ |
|
7145 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
7146 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
7147 /* C'tor, d'tor, and method transition validators */ |
|
7148 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
7149 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTrailerShortIntValidator; |
|
7150 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
7151 }; // CWspHeaderWriter_TrailerShortInt_UnitTest |
|
7152 |
|
7153 // ______________________________________________________________________________ |
|
7154 // |
|
7155 /** |
|
7156 @internal |
|
7157 @class CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest |
|
7158 @Depends CWspHeaderWriter & CUnitTest |
|
7159 |
|
7160 Comments : Unit Test for Trailerv1_4NewShortInt on CWspHeaderWriter, the class under test. |
|
7161 */ |
|
7162 class CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest : public CUnitTest |
|
7163 { |
|
7164 public: |
|
7165 /** |
|
7166 @fn NewL(CDataLogger& aDataLogger, |
|
7167 MUnitTestObserver& aObserver) |
|
7168 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
7169 cleanup stack. |
|
7170 Error Condition : Leaves with the error code. |
|
7171 @exceptions KErrNoMemory |
|
7172 @since 7.0 |
|
7173 @param aDataLogger The output logging object. |
|
7174 @param aObserver The observer of this UnitTest. |
|
7175 @return CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest* The constructed object. |
|
7176 @pre None. |
|
7177 @post CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest is fully constructed, and initialized. |
|
7178 */ |
|
7179 static CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest* NewL(CDataLogger& aDataLogger, |
|
7180 MUnitTestObserver& aObserver); |
|
7181 |
|
7182 /** |
|
7183 @fn RunError(TInt aError) |
|
7184 Intended Usage : Intercept the panic caused by a RunL leave, |
|
7185 to restore the CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest |
|
7186 object to a sensible state. |
|
7187 (called by the Active Scheduler immediately before the Panic). |
|
7188 Error Condition : @see CUnitTest::RunError(). |
|
7189 @since 7.0 |
|
7190 @return KErrNone if cleanup successful, otherwise |
|
7191 @see CUnitTest::RunError() |
|
7192 @pre CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest is fully constructed, and initialized. |
|
7193 @post The object has been restored to a sensible state. |
|
7194 */ |
|
7195 inline TInt RunError(TInt aError); |
|
7196 |
|
7197 /** |
|
7198 @fn ~CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest() |
|
7199 Intended Usage : Standard Destructor. |
|
7200 Error Condition : None. |
|
7201 @since 7.0 |
|
7202 @pre CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest is fully constructed. |
|
7203 @post CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest is fully destroyed. |
|
7204 */ |
|
7205 ~CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest(); |
|
7206 |
|
7207 private: |
|
7208 /** |
|
7209 @fn CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest(CDataLogger& aDataLogger, |
|
7210 MUnitTestObserver& aObserver) |
|
7211 Intended Usage : Default constructor. |
|
7212 Error Condition : None. |
|
7213 @since 7.0 |
|
7214 @param aDataLogger The output logging object. |
|
7215 @param aObserver The observer of this UnitTest. |
|
7216 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
7217 @pre None. |
|
7218 @post CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest is fully constructed. |
|
7219 */ |
|
7220 inline CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest(CDataLogger& aDataLogger, |
|
7221 MUnitTestObserver& aObserver); |
|
7222 |
|
7223 /** |
|
7224 @fn void ConstructL() |
|
7225 Intended Usage : Second phase of safe two phase construction, |
|
7226 to complete the object initialisation. |
|
7227 Error Condition : Leaves with an error code. |
|
7228 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
7229 @since 7.0 |
|
7230 @return None |
|
7231 @pre CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest is fully constructed. |
|
7232 @post CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest is fully initialized. |
|
7233 */ |
|
7234 void ConstructL(); |
|
7235 |
|
7236 /** |
|
7237 The context of the Unit Test. |
|
7238 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
7239 */ |
|
7240 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
7241 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
7242 /* C'tor, d'tor, and method transition validators */ |
|
7243 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
7244 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTrailerv1_4NewShortIntValidator; |
|
7245 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
7246 }; // CWspHeaderWriter_Trailerv1_4NewShortInt_UnitTest |
|
7247 |
|
7248 // ______________________________________________________________________________ |
|
7249 // |
|
7250 /** |
|
7251 @internal |
|
7252 @class CWspHeaderWriter_TrailerTokenText_UnitTest |
|
7253 @Depends CWspHeaderWriter & CUnitTest |
|
7254 |
|
7255 Comments : Unit Test for TrailerTokenText on CWspHeaderWriter, the class under test. |
|
7256 */ |
|
7257 class CWspHeaderWriter_TrailerTokenText_UnitTest : public CUnitTest |
|
7258 { |
|
7259 public: |
|
7260 /** |
|
7261 @fn NewL(CDataLogger& aDataLogger, |
|
7262 MUnitTestObserver& aObserver) |
|
7263 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
7264 cleanup stack. |
|
7265 Error Condition : Leaves with the error code. |
|
7266 @exceptions KErrNoMemory |
|
7267 @since 7.0 |
|
7268 @param aDataLogger The output logging object. |
|
7269 @param aObserver The observer of this UnitTest. |
|
7270 @return CWspHeaderWriter_TrailerTokenText_UnitTest* The constructed object. |
|
7271 @pre None. |
|
7272 @post CWspHeaderWriter_TrailerTokenText_UnitTest is fully constructed, and initialized. |
|
7273 */ |
|
7274 static CWspHeaderWriter_TrailerTokenText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
7275 MUnitTestObserver& aObserver); |
|
7276 |
|
7277 /** |
|
7278 @fn RunError(TInt aError) |
|
7279 Intended Usage : Intercept the panic caused by a RunL leave, |
|
7280 to restore the CWspHeaderWriter_TrailerTokenText_UnitTest |
|
7281 object to a sensible state. |
|
7282 (called by the Active Scheduler immediately before the Panic). |
|
7283 Error Condition : @see CUnitTest::RunError(). |
|
7284 @since 7.0 |
|
7285 @return KErrNone if cleanup successful, otherwise |
|
7286 @see CUnitTest::RunError() |
|
7287 @pre CWspHeaderWriter_TrailerTokenText_UnitTest is fully constructed, and initialized. |
|
7288 @post The object has been restored to a sensible state. |
|
7289 */ |
|
7290 inline TInt RunError(TInt aError); |
|
7291 |
|
7292 /** |
|
7293 @fn ~CWspHeaderWriter_TrailerTokenText_UnitTest() |
|
7294 Intended Usage : Standard Destructor. |
|
7295 Error Condition : None. |
|
7296 @since 7.0 |
|
7297 @pre CWspHeaderWriter_TrailerTokenText_UnitTest is fully constructed. |
|
7298 @post CWspHeaderWriter_TrailerTokenText_UnitTest is fully destroyed. |
|
7299 */ |
|
7300 ~CWspHeaderWriter_TrailerTokenText_UnitTest(); |
|
7301 |
|
7302 private: |
|
7303 /** |
|
7304 @fn CWspHeaderWriter_TrailerTokenText_UnitTest(CDataLogger& aDataLogger, |
|
7305 MUnitTestObserver& aObserver) |
|
7306 Intended Usage : Default constructor. |
|
7307 Error Condition : None. |
|
7308 @since 7.0 |
|
7309 @param aDataLogger The output logging object. |
|
7310 @param aObserver The observer of this UnitTest. |
|
7311 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
7312 @pre None. |
|
7313 @post CWspHeaderWriter_TrailerTokenText_UnitTest is fully constructed. |
|
7314 */ |
|
7315 inline CWspHeaderWriter_TrailerTokenText_UnitTest(CDataLogger& aDataLogger, |
|
7316 MUnitTestObserver& aObserver); |
|
7317 |
|
7318 /** |
|
7319 @fn void ConstructL() |
|
7320 Intended Usage : Second phase of safe two phase construction, |
|
7321 to complete the object initialisation. |
|
7322 Error Condition : Leaves with an error code. |
|
7323 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
7324 @since 7.0 |
|
7325 @return None |
|
7326 @pre CWspHeaderWriter_TrailerTokenText_UnitTest is fully constructed. |
|
7327 @post CWspHeaderWriter_TrailerTokenText_UnitTest is fully initialized. |
|
7328 */ |
|
7329 void ConstructL(); |
|
7330 |
|
7331 /** |
|
7332 The context of the Unit Test. |
|
7333 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
7334 */ |
|
7335 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
7336 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
7337 /* C'tor, d'tor, and method transition validators */ |
|
7338 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
7339 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTrailerTokenTextValidator; |
|
7340 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
7341 }; // CWspHeaderWriter_TrailerTokenText_UnitTest |
|
7342 |
|
7343 // ______________________________________________________________________________ |
|
7344 // |
|
7345 /** |
|
7346 @internal |
|
7347 @class CWspHeaderWriter_AcceptEncodingGzip_UnitTest |
|
7348 @Depends CWspHeaderWriter & CUnitTest |
|
7349 |
|
7350 Comments : Unit Test for AcceptEncodingGzip on CWspHeaderWriter, the class under test. |
|
7351 */ |
|
7352 class CWspHeaderWriter_AcceptEncodingGzip_UnitTest : public CUnitTest |
|
7353 { |
|
7354 public: |
|
7355 /** |
|
7356 @fn NewL(CDataLogger& aDataLogger, |
|
7357 MUnitTestObserver& aObserver) |
|
7358 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
7359 cleanup stack. |
|
7360 Error Condition : Leaves with the error code. |
|
7361 @exceptions KErrNoMemory |
|
7362 @since 7.0 |
|
7363 @param aDataLogger The output logging object. |
|
7364 @param aObserver The observer of this UnitTest. |
|
7365 @return CWspHeaderWriter_AcceptEncodingGzip_UnitTest* The constructed object. |
|
7366 @pre None. |
|
7367 @post CWspHeaderWriter_AcceptEncodingGzip_UnitTest is fully constructed, and initialized. |
|
7368 */ |
|
7369 static CWspHeaderWriter_AcceptEncodingGzip_UnitTest* NewL(CDataLogger& aDataLogger, |
|
7370 MUnitTestObserver& aObserver); |
|
7371 |
|
7372 /** |
|
7373 @fn RunError(TInt aError) |
|
7374 Intended Usage : Intercept the panic caused by a RunL leave, |
|
7375 to restore the CWspHeaderWriter_AcceptEncodingGzip_UnitTest |
|
7376 object to a sensible state. |
|
7377 (called by the Active Scheduler immediately before the Panic). |
|
7378 Error Condition : @see CUnitTest::RunError(). |
|
7379 @since 7.0 |
|
7380 @return KErrNone if cleanup successful, otherwise |
|
7381 @see CUnitTest::RunError() |
|
7382 @pre CWspHeaderWriter_AcceptEncodingGzip_UnitTest is fully constructed, and initialized. |
|
7383 @post The object has been restored to a sensible state. |
|
7384 */ |
|
7385 inline TInt RunError(TInt aError); |
|
7386 |
|
7387 /** |
|
7388 @fn ~CWspHeaderWriter_AcceptEncodingGzip_UnitTest() |
|
7389 Intended Usage : Standard Destructor. |
|
7390 Error Condition : None. |
|
7391 @since 7.0 |
|
7392 @pre CWspHeaderWriter_AcceptEncodingGzip_UnitTest is fully constructed. |
|
7393 @post CWspHeaderWriter_AcceptEncodingGzip_UnitTest is fully destroyed. |
|
7394 */ |
|
7395 ~CWspHeaderWriter_AcceptEncodingGzip_UnitTest(); |
|
7396 |
|
7397 private: |
|
7398 /** |
|
7399 @fn CWspHeaderWriter_AcceptEncodingGzip_UnitTest(CDataLogger& aDataLogger, |
|
7400 MUnitTestObserver& aObserver) |
|
7401 Intended Usage : Default constructor. |
|
7402 Error Condition : None. |
|
7403 @since 7.0 |
|
7404 @param aDataLogger The output logging object. |
|
7405 @param aObserver The observer of this UnitTest. |
|
7406 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
7407 @pre None. |
|
7408 @post CWspHeaderWriter_AcceptEncodingGzip_UnitTest is fully constructed. |
|
7409 */ |
|
7410 inline CWspHeaderWriter_AcceptEncodingGzip_UnitTest(CDataLogger& aDataLogger, |
|
7411 MUnitTestObserver& aObserver); |
|
7412 |
|
7413 /** |
|
7414 @fn void ConstructL() |
|
7415 Intended Usage : Second phase of safe two phase construction, |
|
7416 to complete the object initialisation. |
|
7417 Error Condition : Leaves with an error code. |
|
7418 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
7419 @since 7.0 |
|
7420 @return None |
|
7421 @pre CWspHeaderWriter_AcceptEncodingGzip_UnitTest is fully constructed. |
|
7422 @post CWspHeaderWriter_AcceptEncodingGzip_UnitTest is fully initialized. |
|
7423 */ |
|
7424 void ConstructL(); |
|
7425 |
|
7426 /** |
|
7427 The context of the Unit Test. |
|
7428 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
7429 */ |
|
7430 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
7431 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
7432 /* C'tor, d'tor, and method transition validators */ |
|
7433 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
7434 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptEncodingGzipValidator; |
|
7435 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
7436 }; // CWspHeaderWriter_AcceptEncodingGzip_UnitTest |
|
7437 |
|
7438 // ______________________________________________________________________________ |
|
7439 // |
|
7440 /** |
|
7441 @internal |
|
7442 @class CWspHeaderWriter_AcceptEncodingCompress_UnitTest |
|
7443 @Depends CWspHeaderWriter & CUnitTest |
|
7444 |
|
7445 Comments : Unit Test for AcceptEncodingCompress on CWspHeaderWriter, the class under test. |
|
7446 */ |
|
7447 class CWspHeaderWriter_AcceptEncodingCompress_UnitTest : public CUnitTest |
|
7448 { |
|
7449 public: |
|
7450 /** |
|
7451 @fn NewL(CDataLogger& aDataLogger, |
|
7452 MUnitTestObserver& aObserver) |
|
7453 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
7454 cleanup stack. |
|
7455 Error Condition : Leaves with the error code. |
|
7456 @exceptions KErrNoMemory |
|
7457 @since 7.0 |
|
7458 @param aDataLogger The output logging object. |
|
7459 @param aObserver The observer of this UnitTest. |
|
7460 @return CWspHeaderWriter_AcceptEncodingCompress_UnitTest* The constructed object. |
|
7461 @pre None. |
|
7462 @post CWspHeaderWriter_AcceptEncodingCompress_UnitTest is fully constructed, and initialized. |
|
7463 */ |
|
7464 static CWspHeaderWriter_AcceptEncodingCompress_UnitTest* NewL(CDataLogger& aDataLogger, |
|
7465 MUnitTestObserver& aObserver); |
|
7466 |
|
7467 /** |
|
7468 @fn RunError(TInt aError) |
|
7469 Intended Usage : Intercept the panic caused by a RunL leave, |
|
7470 to restore the CWspHeaderWriter_AcceptEncodingCompress_UnitTest |
|
7471 object to a sensible state. |
|
7472 (called by the Active Scheduler immediately before the Panic). |
|
7473 Error Condition : @see CUnitTest::RunError(). |
|
7474 @since 7.0 |
|
7475 @return KErrNone if cleanup successful, otherwise |
|
7476 @see CUnitTest::RunError() |
|
7477 @pre CWspHeaderWriter_AcceptEncodingCompress_UnitTest is fully constructed, and initialized. |
|
7478 @post The object has been restored to a sensible state. |
|
7479 */ |
|
7480 inline TInt RunError(TInt aError); |
|
7481 |
|
7482 /** |
|
7483 @fn ~CWspHeaderWriter_AcceptEncodingCompress_UnitTest() |
|
7484 Intended Usage : Standard Destructor. |
|
7485 Error Condition : None. |
|
7486 @since 7.0 |
|
7487 @pre CWspHeaderWriter_AcceptEncodingCompress_UnitTest is fully constructed. |
|
7488 @post CWspHeaderWriter_AcceptEncodingCompress_UnitTest is fully destroyed. |
|
7489 */ |
|
7490 ~CWspHeaderWriter_AcceptEncodingCompress_UnitTest(); |
|
7491 |
|
7492 private: |
|
7493 /** |
|
7494 @fn CWspHeaderWriter_AcceptEncodingCompress_UnitTest(CDataLogger& aDataLogger, |
|
7495 MUnitTestObserver& aObserver) |
|
7496 Intended Usage : Default constructor. |
|
7497 Error Condition : None. |
|
7498 @since 7.0 |
|
7499 @param aDataLogger The output logging object. |
|
7500 @param aObserver The observer of this UnitTest. |
|
7501 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
7502 @pre None. |
|
7503 @post CWspHeaderWriter_AcceptEncodingCompress_UnitTest is fully constructed. |
|
7504 */ |
|
7505 inline CWspHeaderWriter_AcceptEncodingCompress_UnitTest(CDataLogger& aDataLogger, |
|
7506 MUnitTestObserver& aObserver); |
|
7507 |
|
7508 /** |
|
7509 @fn void ConstructL() |
|
7510 Intended Usage : Second phase of safe two phase construction, |
|
7511 to complete the object initialisation. |
|
7512 Error Condition : Leaves with an error code. |
|
7513 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
7514 @since 7.0 |
|
7515 @return None |
|
7516 @pre CWspHeaderWriter_AcceptEncodingCompress_UnitTest is fully constructed. |
|
7517 @post CWspHeaderWriter_AcceptEncodingCompress_UnitTest is fully initialized. |
|
7518 */ |
|
7519 void ConstructL(); |
|
7520 |
|
7521 /** |
|
7522 The context of the Unit Test. |
|
7523 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
7524 */ |
|
7525 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
7526 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
7527 /* C'tor, d'tor, and method transition validators */ |
|
7528 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
7529 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptEncodingCompressValidator; |
|
7530 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
7531 }; // CWspHeaderWriter_AcceptEncodingCompress_UnitTest |
|
7532 |
|
7533 // ______________________________________________________________________________ |
|
7534 // |
|
7535 /** |
|
7536 @internal |
|
7537 @class CWspHeaderWriter_AcceptEncodingDeflate_UnitTest |
|
7538 @Depends CWspHeaderWriter & CUnitTest |
|
7539 |
|
7540 Comments : Unit Test for AcceptEncodingDeflate on CWspHeaderWriter, the class under test. |
|
7541 */ |
|
7542 class CWspHeaderWriter_AcceptEncodingDeflate_UnitTest : public CUnitTest |
|
7543 { |
|
7544 public: |
|
7545 /** |
|
7546 @fn NewL(CDataLogger& aDataLogger, |
|
7547 MUnitTestObserver& aObserver) |
|
7548 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
7549 cleanup stack. |
|
7550 Error Condition : Leaves with the error code. |
|
7551 @exceptions KErrNoMemory |
|
7552 @since 7.0 |
|
7553 @param aDataLogger The output logging object. |
|
7554 @param aObserver The observer of this UnitTest. |
|
7555 @return CWspHeaderWriter_AcceptEncodingDeflate_UnitTest* The constructed object. |
|
7556 @pre None. |
|
7557 @post CWspHeaderWriter_AcceptEncodingDeflate_UnitTest is fully constructed, and initialized. |
|
7558 */ |
|
7559 static CWspHeaderWriter_AcceptEncodingDeflate_UnitTest* NewL(CDataLogger& aDataLogger, |
|
7560 MUnitTestObserver& aObserver); |
|
7561 |
|
7562 /** |
|
7563 @fn RunError(TInt aError) |
|
7564 Intended Usage : Intercept the panic caused by a RunL leave, |
|
7565 to restore the CWspHeaderWriter_AcceptEncodingDeflate_UnitTest |
|
7566 object to a sensible state. |
|
7567 (called by the Active Scheduler immediately before the Panic). |
|
7568 Error Condition : @see CUnitTest::RunError(). |
|
7569 @since 7.0 |
|
7570 @return KErrNone if cleanup successful, otherwise |
|
7571 @see CUnitTest::RunError() |
|
7572 @pre CWspHeaderWriter_AcceptEncodingDeflate_UnitTest is fully constructed, and initialized. |
|
7573 @post The object has been restored to a sensible state. |
|
7574 */ |
|
7575 inline TInt RunError(TInt aError); |
|
7576 |
|
7577 /** |
|
7578 @fn ~CWspHeaderWriter_AcceptEncodingDeflate_UnitTest() |
|
7579 Intended Usage : Standard Destructor. |
|
7580 Error Condition : None. |
|
7581 @since 7.0 |
|
7582 @pre CWspHeaderWriter_AcceptEncodingDeflate_UnitTest is fully constructed. |
|
7583 @post CWspHeaderWriter_AcceptEncodingDeflate_UnitTest is fully destroyed. |
|
7584 */ |
|
7585 ~CWspHeaderWriter_AcceptEncodingDeflate_UnitTest(); |
|
7586 |
|
7587 private: |
|
7588 /** |
|
7589 @fn CWspHeaderWriter_AcceptEncodingDeflate_UnitTest(CDataLogger& aDataLogger, |
|
7590 MUnitTestObserver& aObserver) |
|
7591 Intended Usage : Default constructor. |
|
7592 Error Condition : None. |
|
7593 @since 7.0 |
|
7594 @param aDataLogger The output logging object. |
|
7595 @param aObserver The observer of this UnitTest. |
|
7596 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
7597 @pre None. |
|
7598 @post CWspHeaderWriter_AcceptEncodingDeflate_UnitTest is fully constructed. |
|
7599 */ |
|
7600 inline CWspHeaderWriter_AcceptEncodingDeflate_UnitTest(CDataLogger& aDataLogger, |
|
7601 MUnitTestObserver& aObserver); |
|
7602 |
|
7603 /** |
|
7604 @fn void ConstructL() |
|
7605 Intended Usage : Second phase of safe two phase construction, |
|
7606 to complete the object initialisation. |
|
7607 Error Condition : Leaves with an error code. |
|
7608 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
7609 @since 7.0 |
|
7610 @return None |
|
7611 @pre CWspHeaderWriter_AcceptEncodingDeflate_UnitTest is fully constructed. |
|
7612 @post CWspHeaderWriter_AcceptEncodingDeflate_UnitTest is fully initialized. |
|
7613 */ |
|
7614 void ConstructL(); |
|
7615 |
|
7616 /** |
|
7617 The context of the Unit Test. |
|
7618 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
7619 */ |
|
7620 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
7621 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
7622 /* C'tor, d'tor, and method transition validators */ |
|
7623 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
7624 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptEncodingDeflateValidator; |
|
7625 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
7626 }; // CWspHeaderWriter_AcceptEncodingDeflate_UnitTest |
|
7627 |
|
7628 // ______________________________________________________________________________ |
|
7629 // |
|
7630 /** |
|
7631 @internal |
|
7632 @class CWspHeaderWriter_AcceptEncodingTokenText_UnitTest |
|
7633 @Depends CWspHeaderWriter & CUnitTest |
|
7634 |
|
7635 Comments : Unit Test for AcceptEncodingTokenText on CWspHeaderWriter, the class under test. |
|
7636 */ |
|
7637 class CWspHeaderWriter_AcceptEncodingTokenText_UnitTest : public CUnitTest |
|
7638 { |
|
7639 public: |
|
7640 /** |
|
7641 @fn NewL(CDataLogger& aDataLogger, |
|
7642 MUnitTestObserver& aObserver) |
|
7643 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
7644 cleanup stack. |
|
7645 Error Condition : Leaves with the error code. |
|
7646 @exceptions KErrNoMemory |
|
7647 @since 7.0 |
|
7648 @param aDataLogger The output logging object. |
|
7649 @param aObserver The observer of this UnitTest. |
|
7650 @return CWspHeaderWriter_AcceptEncodingTokenText_UnitTest* The constructed object. |
|
7651 @pre None. |
|
7652 @post CWspHeaderWriter_AcceptEncodingTokenText_UnitTest is fully constructed, and initialized. |
|
7653 */ |
|
7654 static CWspHeaderWriter_AcceptEncodingTokenText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
7655 MUnitTestObserver& aObserver); |
|
7656 |
|
7657 /** |
|
7658 @fn RunError(TInt aError) |
|
7659 Intended Usage : Intercept the panic caused by a RunL leave, |
|
7660 to restore the CWspHeaderWriter_AcceptEncodingTokenText_UnitTest |
|
7661 object to a sensible state. |
|
7662 (called by the Active Scheduler immediately before the Panic). |
|
7663 Error Condition : @see CUnitTest::RunError(). |
|
7664 @since 7.0 |
|
7665 @return KErrNone if cleanup successful, otherwise |
|
7666 @see CUnitTest::RunError() |
|
7667 @pre CWspHeaderWriter_AcceptEncodingTokenText_UnitTest is fully constructed, and initialized. |
|
7668 @post The object has been restored to a sensible state. |
|
7669 */ |
|
7670 inline TInt RunError(TInt aError); |
|
7671 |
|
7672 /** |
|
7673 @fn ~CWspHeaderWriter_AcceptEncodingTokenText_UnitTest() |
|
7674 Intended Usage : Standard Destructor. |
|
7675 Error Condition : None. |
|
7676 @since 7.0 |
|
7677 @pre CWspHeaderWriter_AcceptEncodingTokenText_UnitTest is fully constructed. |
|
7678 @post CWspHeaderWriter_AcceptEncodingTokenText_UnitTest is fully destroyed. |
|
7679 */ |
|
7680 ~CWspHeaderWriter_AcceptEncodingTokenText_UnitTest(); |
|
7681 |
|
7682 private: |
|
7683 /** |
|
7684 @fn CWspHeaderWriter_AcceptEncodingTokenText_UnitTest(CDataLogger& aDataLogger, |
|
7685 MUnitTestObserver& aObserver) |
|
7686 Intended Usage : Default constructor. |
|
7687 Error Condition : None. |
|
7688 @since 7.0 |
|
7689 @param aDataLogger The output logging object. |
|
7690 @param aObserver The observer of this UnitTest. |
|
7691 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
7692 @pre None. |
|
7693 @post CWspHeaderWriter_AcceptEncodingTokenText_UnitTest is fully constructed. |
|
7694 */ |
|
7695 inline CWspHeaderWriter_AcceptEncodingTokenText_UnitTest(CDataLogger& aDataLogger, |
|
7696 MUnitTestObserver& aObserver); |
|
7697 |
|
7698 /** |
|
7699 @fn void ConstructL() |
|
7700 Intended Usage : Second phase of safe two phase construction, |
|
7701 to complete the object initialisation. |
|
7702 Error Condition : Leaves with an error code. |
|
7703 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
7704 @since 7.0 |
|
7705 @return None |
|
7706 @pre CWspHeaderWriter_AcceptEncodingTokenText_UnitTest is fully constructed. |
|
7707 @post CWspHeaderWriter_AcceptEncodingTokenText_UnitTest is fully initialized. |
|
7708 */ |
|
7709 void ConstructL(); |
|
7710 |
|
7711 /** |
|
7712 The context of the Unit Test. |
|
7713 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
7714 */ |
|
7715 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
7716 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
7717 /* C'tor, d'tor, and method transition validators */ |
|
7718 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
7719 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptEncodingTokenTextValidator; |
|
7720 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
7721 }; // CWspHeaderWriter_AcceptEncodingTokenText_UnitTest |
|
7722 |
|
7723 // ______________________________________________________________________________ |
|
7724 // |
|
7725 /** |
|
7726 @internal |
|
7727 @class CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest |
|
7728 @Depends CWspHeaderWriter & CUnitTest |
|
7729 |
|
7730 Comments : Unit Test for AcceptEncodingGeneralAny on CWspHeaderWriter, the class under test. |
|
7731 */ |
|
7732 class CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest : public CUnitTest |
|
7733 { |
|
7734 public: |
|
7735 /** |
|
7736 @fn NewL(CDataLogger& aDataLogger, |
|
7737 MUnitTestObserver& aObserver) |
|
7738 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
7739 cleanup stack. |
|
7740 Error Condition : Leaves with the error code. |
|
7741 @exceptions KErrNoMemory |
|
7742 @since 7.0 |
|
7743 @param aDataLogger The output logging object. |
|
7744 @param aObserver The observer of this UnitTest. |
|
7745 @return CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest* The constructed object. |
|
7746 @pre None. |
|
7747 @post CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest is fully constructed, and initialized. |
|
7748 */ |
|
7749 static CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest* NewL(CDataLogger& aDataLogger, |
|
7750 MUnitTestObserver& aObserver); |
|
7751 |
|
7752 /** |
|
7753 @fn RunError(TInt aError) |
|
7754 Intended Usage : Intercept the panic caused by a RunL leave, |
|
7755 to restore the CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest |
|
7756 object to a sensible state. |
|
7757 (called by the Active Scheduler immediately before the Panic). |
|
7758 Error Condition : @see CUnitTest::RunError(). |
|
7759 @since 7.0 |
|
7760 @return KErrNone if cleanup successful, otherwise |
|
7761 @see CUnitTest::RunError() |
|
7762 @pre CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest is fully constructed, and initialized. |
|
7763 @post The object has been restored to a sensible state. |
|
7764 */ |
|
7765 inline TInt RunError(TInt aError); |
|
7766 |
|
7767 /** |
|
7768 @fn ~CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest() |
|
7769 Intended Usage : Standard Destructor. |
|
7770 Error Condition : None. |
|
7771 @since 7.0 |
|
7772 @pre CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest is fully constructed. |
|
7773 @post CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest is fully destroyed. |
|
7774 */ |
|
7775 ~CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest(); |
|
7776 |
|
7777 private: |
|
7778 /** |
|
7779 @fn CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest(CDataLogger& aDataLogger, |
|
7780 MUnitTestObserver& aObserver) |
|
7781 Intended Usage : Default constructor. |
|
7782 Error Condition : None. |
|
7783 @since 7.0 |
|
7784 @param aDataLogger The output logging object. |
|
7785 @param aObserver The observer of this UnitTest. |
|
7786 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
7787 @pre None. |
|
7788 @post CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest is fully constructed. |
|
7789 */ |
|
7790 inline CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest(CDataLogger& aDataLogger, |
|
7791 MUnitTestObserver& aObserver); |
|
7792 |
|
7793 /** |
|
7794 @fn void ConstructL() |
|
7795 Intended Usage : Second phase of safe two phase construction, |
|
7796 to complete the object initialisation. |
|
7797 Error Condition : Leaves with an error code. |
|
7798 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
7799 @since 7.0 |
|
7800 @return None |
|
7801 @pre CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest is fully constructed. |
|
7802 @post CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest is fully initialized. |
|
7803 */ |
|
7804 void ConstructL(); |
|
7805 |
|
7806 /** |
|
7807 The context of the Unit Test. |
|
7808 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
7809 */ |
|
7810 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
7811 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
7812 /* C'tor, d'tor, and method transition validators */ |
|
7813 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
7814 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptEncodingGeneralAnyValidator; |
|
7815 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
7816 }; // CWspHeaderWriter_AcceptEncodingGeneralAny_UnitTest |
|
7817 |
|
7818 // ______________________________________________________________________________ |
|
7819 // |
|
7820 /** |
|
7821 @internal |
|
7822 @class CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest |
|
7823 @Depends CWspHeaderWriter & CUnitTest |
|
7824 |
|
7825 Comments : Unit Test for AcceptEncodingGeneralAnyQVal on CWspHeaderWriter, the class under test. |
|
7826 */ |
|
7827 class CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest : public CUnitTest |
|
7828 { |
|
7829 public: |
|
7830 /** |
|
7831 @fn NewL(CDataLogger& aDataLogger, |
|
7832 MUnitTestObserver& aObserver) |
|
7833 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
7834 cleanup stack. |
|
7835 Error Condition : Leaves with the error code. |
|
7836 @exceptions KErrNoMemory |
|
7837 @since 7.0 |
|
7838 @param aDataLogger The output logging object. |
|
7839 @param aObserver The observer of this UnitTest. |
|
7840 @return CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest* The constructed object. |
|
7841 @pre None. |
|
7842 @post CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest is fully constructed, and initialized. |
|
7843 */ |
|
7844 static CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest* NewL(CDataLogger& aDataLogger, |
|
7845 MUnitTestObserver& aObserver); |
|
7846 |
|
7847 /** |
|
7848 @fn RunError(TInt aError) |
|
7849 Intended Usage : Intercept the panic caused by a RunL leave, |
|
7850 to restore the CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest |
|
7851 object to a sensible state. |
|
7852 (called by the Active Scheduler immediately before the Panic). |
|
7853 Error Condition : @see CUnitTest::RunError(). |
|
7854 @since 7.0 |
|
7855 @return KErrNone if cleanup successful, otherwise |
|
7856 @see CUnitTest::RunError() |
|
7857 @pre CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest is fully constructed, and initialized. |
|
7858 @post The object has been restored to a sensible state. |
|
7859 */ |
|
7860 inline TInt RunError(TInt aError); |
|
7861 |
|
7862 /** |
|
7863 @fn ~CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest() |
|
7864 Intended Usage : Standard Destructor. |
|
7865 Error Condition : None. |
|
7866 @since 7.0 |
|
7867 @pre CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest is fully constructed. |
|
7868 @post CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest is fully destroyed. |
|
7869 */ |
|
7870 ~CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest(); |
|
7871 |
|
7872 private: |
|
7873 /** |
|
7874 @fn CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest(CDataLogger& aDataLogger, |
|
7875 MUnitTestObserver& aObserver) |
|
7876 Intended Usage : Default constructor. |
|
7877 Error Condition : None. |
|
7878 @since 7.0 |
|
7879 @param aDataLogger The output logging object. |
|
7880 @param aObserver The observer of this UnitTest. |
|
7881 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
7882 @pre None. |
|
7883 @post CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest is fully constructed. |
|
7884 */ |
|
7885 inline CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest(CDataLogger& aDataLogger, |
|
7886 MUnitTestObserver& aObserver); |
|
7887 |
|
7888 /** |
|
7889 @fn void ConstructL() |
|
7890 Intended Usage : Second phase of safe two phase construction, |
|
7891 to complete the object initialisation. |
|
7892 Error Condition : Leaves with an error code. |
|
7893 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
7894 @since 7.0 |
|
7895 @return None |
|
7896 @pre CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest is fully constructed. |
|
7897 @post CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest is fully initialized. |
|
7898 */ |
|
7899 void ConstructL(); |
|
7900 |
|
7901 /** |
|
7902 The context of the Unit Test. |
|
7903 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
7904 */ |
|
7905 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
7906 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
7907 /* C'tor, d'tor, and method transition validators */ |
|
7908 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
7909 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptEncodingGeneralAnyQValValidator; |
|
7910 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
7911 }; // CWspHeaderWriter_AcceptEncodingGeneralAnyQVal_UnitTest |
|
7912 |
|
7913 // ______________________________________________________________________________ |
|
7914 // |
|
7915 /** |
|
7916 @internal |
|
7917 @class CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest |
|
7918 @Depends CWspHeaderWriter & CUnitTest |
|
7919 |
|
7920 Comments : Unit Test for AcceptEncodingGeneralGzipQVal on CWspHeaderWriter, the class under test. |
|
7921 */ |
|
7922 class CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest : public CUnitTest |
|
7923 { |
|
7924 public: |
|
7925 /** |
|
7926 @fn NewL(CDataLogger& aDataLogger, |
|
7927 MUnitTestObserver& aObserver) |
|
7928 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
7929 cleanup stack. |
|
7930 Error Condition : Leaves with the error code. |
|
7931 @exceptions KErrNoMemory |
|
7932 @since 7.0 |
|
7933 @param aDataLogger The output logging object. |
|
7934 @param aObserver The observer of this UnitTest. |
|
7935 @return CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest* The constructed object. |
|
7936 @pre None. |
|
7937 @post CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest is fully constructed, and initialized. |
|
7938 */ |
|
7939 static CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest* NewL(CDataLogger& aDataLogger, |
|
7940 MUnitTestObserver& aObserver); |
|
7941 |
|
7942 /** |
|
7943 @fn RunError(TInt aError) |
|
7944 Intended Usage : Intercept the panic caused by a RunL leave, |
|
7945 to restore the CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest |
|
7946 object to a sensible state. |
|
7947 (called by the Active Scheduler immediately before the Panic). |
|
7948 Error Condition : @see CUnitTest::RunError(). |
|
7949 @since 7.0 |
|
7950 @return KErrNone if cleanup successful, otherwise |
|
7951 @see CUnitTest::RunError() |
|
7952 @pre CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest is fully constructed, and initialized. |
|
7953 @post The object has been restored to a sensible state. |
|
7954 */ |
|
7955 inline TInt RunError(TInt aError); |
|
7956 |
|
7957 /** |
|
7958 @fn ~CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest() |
|
7959 Intended Usage : Standard Destructor. |
|
7960 Error Condition : None. |
|
7961 @since 7.0 |
|
7962 @pre CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest is fully constructed. |
|
7963 @post CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest is fully destroyed. |
|
7964 */ |
|
7965 ~CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest(); |
|
7966 |
|
7967 private: |
|
7968 /** |
|
7969 @fn CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest(CDataLogger& aDataLogger, |
|
7970 MUnitTestObserver& aObserver) |
|
7971 Intended Usage : Default constructor. |
|
7972 Error Condition : None. |
|
7973 @since 7.0 |
|
7974 @param aDataLogger The output logging object. |
|
7975 @param aObserver The observer of this UnitTest. |
|
7976 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
7977 @pre None. |
|
7978 @post CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest is fully constructed. |
|
7979 */ |
|
7980 inline CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest(CDataLogger& aDataLogger, |
|
7981 MUnitTestObserver& aObserver); |
|
7982 |
|
7983 /** |
|
7984 @fn void ConstructL() |
|
7985 Intended Usage : Second phase of safe two phase construction, |
|
7986 to complete the object initialisation. |
|
7987 Error Condition : Leaves with an error code. |
|
7988 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
7989 @since 7.0 |
|
7990 @return None |
|
7991 @pre CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest is fully constructed. |
|
7992 @post CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest is fully initialized. |
|
7993 */ |
|
7994 void ConstructL(); |
|
7995 |
|
7996 /** |
|
7997 The context of the Unit Test. |
|
7998 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
7999 */ |
|
8000 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
8001 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
8002 /* C'tor, d'tor, and method transition validators */ |
|
8003 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
8004 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptEncodingGeneralGzipQValValidator; |
|
8005 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
8006 }; // CWspHeaderWriter_AcceptEncodingGeneralGzipQVal_UnitTest |
|
8007 |
|
8008 // ______________________________________________________________________________ |
|
8009 // |
|
8010 /** |
|
8011 @internal |
|
8012 @class CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest |
|
8013 @Depends CWspHeaderWriter & CUnitTest |
|
8014 |
|
8015 Comments : Unit Test for AcceptEncodingGeneralAnyQValVersion1_2 on CWspHeaderWriter, the class under test. |
|
8016 */ |
|
8017 class CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest : public CUnitTest |
|
8018 { |
|
8019 public: |
|
8020 /** |
|
8021 @fn NewL(CDataLogger& aDataLogger, |
|
8022 MUnitTestObserver& aObserver) |
|
8023 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
8024 cleanup stack. |
|
8025 Error Condition : Leaves with the error code. |
|
8026 @exceptions KErrNoMemory |
|
8027 @since 7.0 |
|
8028 @param aDataLogger The output logging object. |
|
8029 @param aObserver The observer of this UnitTest. |
|
8030 @return CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest* The constructed object. |
|
8031 @pre None. |
|
8032 @post CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest is fully constructed, and initialized. |
|
8033 */ |
|
8034 static CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest* NewL(CDataLogger& aDataLogger, |
|
8035 MUnitTestObserver& aObserver); |
|
8036 |
|
8037 /** |
|
8038 @fn RunError(TInt aError) |
|
8039 Intended Usage : Intercept the panic caused by a RunL leave, |
|
8040 to restore the CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest |
|
8041 object to a sensible state. |
|
8042 (called by the Active Scheduler immediately before the Panic). |
|
8043 Error Condition : @see CUnitTest::RunError(). |
|
8044 @since 7.0 |
|
8045 @return KErrNone if cleanup successful, otherwise |
|
8046 @see CUnitTest::RunError() |
|
8047 @pre CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest is fully constructed, and initialized. |
|
8048 @post The object has been restored to a sensible state. |
|
8049 */ |
|
8050 inline TInt RunError(TInt aError); |
|
8051 |
|
8052 /** |
|
8053 @fn ~CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest() |
|
8054 Intended Usage : Standard Destructor. |
|
8055 Error Condition : None. |
|
8056 @since 7.0 |
|
8057 @pre CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest is fully constructed. |
|
8058 @post CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest is fully destroyed. |
|
8059 */ |
|
8060 ~CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest(); |
|
8061 |
|
8062 private: |
|
8063 /** |
|
8064 @fn CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest(CDataLogger& aDataLogger, |
|
8065 MUnitTestObserver& aObserver) |
|
8066 Intended Usage : Default constructor. |
|
8067 Error Condition : None. |
|
8068 @since 7.0 |
|
8069 @param aDataLogger The output logging object. |
|
8070 @param aObserver The observer of this UnitTest. |
|
8071 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
8072 @pre None. |
|
8073 @post CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest is fully constructed. |
|
8074 */ |
|
8075 inline CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest(CDataLogger& aDataLogger, |
|
8076 MUnitTestObserver& aObserver); |
|
8077 |
|
8078 /** |
|
8079 @fn void ConstructL() |
|
8080 Intended Usage : Second phase of safe two phase construction, |
|
8081 to complete the object initialisation. |
|
8082 Error Condition : Leaves with an error code. |
|
8083 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
8084 @since 7.0 |
|
8085 @return None |
|
8086 @pre CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest is fully constructed. |
|
8087 @post CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest is fully initialized. |
|
8088 */ |
|
8089 void ConstructL(); |
|
8090 |
|
8091 /** |
|
8092 The context of the Unit Test. |
|
8093 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
8094 */ |
|
8095 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
8096 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
8097 /* C'tor, d'tor, and method transition validators */ |
|
8098 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
8099 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptEncodingGeneralAnyQValVersion1_2Validator; |
|
8100 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
8101 }; // CWspHeaderWriter_AcceptEncodingGeneralAnyQValVersion1_2_UnitTest |
|
8102 |
|
8103 // ______________________________________________________________________________ |
|
8104 // |
|
8105 /** |
|
8106 @internal |
|
8107 @class CWspHeaderWriter_ContentRange_UnitTest |
|
8108 @Depends CWspHeaderWriter & CUnitTest |
|
8109 |
|
8110 Comments : Unit Test for ContentRange on CWspHeaderWriter, the class under test. |
|
8111 */ |
|
8112 class CWspHeaderWriter_ContentRange_UnitTest : public CUnitTest |
|
8113 { |
|
8114 public: |
|
8115 /** |
|
8116 @fn NewL(CDataLogger& aDataLogger, |
|
8117 MUnitTestObserver& aObserver) |
|
8118 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
8119 cleanup stack. |
|
8120 Error Condition : Leaves with the error code. |
|
8121 @exceptions KErrNoMemory |
|
8122 @since 7.0 |
|
8123 @param aDataLogger The output logging object. |
|
8124 @param aObserver The observer of this UnitTest. |
|
8125 @return CWspHeaderWriter_ContentRange_UnitTest* The constructed object. |
|
8126 @pre None. |
|
8127 @post CWspHeaderWriter_ContentRange_UnitTest is fully constructed, and initialized. |
|
8128 */ |
|
8129 static CWspHeaderWriter_ContentRange_UnitTest* NewL(CDataLogger& aDataLogger, |
|
8130 MUnitTestObserver& aObserver); |
|
8131 |
|
8132 /** |
|
8133 @fn RunError(TInt aError) |
|
8134 Intended Usage : Intercept the panic caused by a RunL leave, |
|
8135 to restore the CWspHeaderWriter_ContentRange_UnitTest |
|
8136 object to a sensible state. |
|
8137 (called by the Active Scheduler immediately before the Panic). |
|
8138 Error Condition : @see CUnitTest::RunError(). |
|
8139 @since 7.0 |
|
8140 @return KErrNone if cleanup successful, otherwise |
|
8141 @see CUnitTest::RunError() |
|
8142 @pre CWspHeaderWriter_ContentRange_UnitTest is fully constructed, and initialized. |
|
8143 @post The object has been restored to a sensible state. |
|
8144 */ |
|
8145 inline TInt RunError(TInt aError); |
|
8146 |
|
8147 /** |
|
8148 @fn ~CWspHeaderWriter_ContentRange_UnitTest() |
|
8149 Intended Usage : Standard Destructor. |
|
8150 Error Condition : None. |
|
8151 @since 7.0 |
|
8152 @pre CWspHeaderWriter_ContentRange_UnitTest is fully constructed. |
|
8153 @post CWspHeaderWriter_ContentRange_UnitTest is fully destroyed. |
|
8154 */ |
|
8155 ~CWspHeaderWriter_ContentRange_UnitTest(); |
|
8156 |
|
8157 private: |
|
8158 /** |
|
8159 @fn CWspHeaderWriter_ContentRange_UnitTest(CDataLogger& aDataLogger, |
|
8160 MUnitTestObserver& aObserver) |
|
8161 Intended Usage : Default constructor. |
|
8162 Error Condition : None. |
|
8163 @since 7.0 |
|
8164 @param aDataLogger The output logging object. |
|
8165 @param aObserver The observer of this UnitTest. |
|
8166 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
8167 @pre None. |
|
8168 @post CWspHeaderWriter_ContentRange_UnitTest is fully constructed. |
|
8169 */ |
|
8170 inline CWspHeaderWriter_ContentRange_UnitTest(CDataLogger& aDataLogger, |
|
8171 MUnitTestObserver& aObserver); |
|
8172 |
|
8173 /** |
|
8174 @fn void ConstructL() |
|
8175 Intended Usage : Second phase of safe two phase construction, |
|
8176 to complete the object initialisation. |
|
8177 Error Condition : Leaves with an error code. |
|
8178 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
8179 @since 7.0 |
|
8180 @return None |
|
8181 @pre CWspHeaderWriter_ContentRange_UnitTest is fully constructed. |
|
8182 @post CWspHeaderWriter_ContentRange_UnitTest is fully initialized. |
|
8183 */ |
|
8184 void ConstructL(); |
|
8185 |
|
8186 /** |
|
8187 The context of the Unit Test. |
|
8188 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
8189 */ |
|
8190 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
8191 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
8192 /* C'tor, d'tor, and method transition validators */ |
|
8193 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
8194 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentRangeValidator; |
|
8195 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
8196 }; // CWspHeaderWriter_ContentRange_UnitTest |
|
8197 |
|
8198 // ______________________________________________________________________________ |
|
8199 // |
|
8200 /** |
|
8201 @internal |
|
8202 @class CWspHeaderWriter_ContentRangeUnknownLength_UnitTest |
|
8203 @Depends CWspHeaderWriter & CUnitTest |
|
8204 |
|
8205 Comments : Unit Test for ContentRangeUnknownLength on CWspHeaderWriter, the class under test. |
|
8206 */ |
|
8207 class CWspHeaderWriter_ContentRangeUnknownLength_UnitTest : public CUnitTest |
|
8208 { |
|
8209 public: |
|
8210 /** |
|
8211 @fn NewL(CDataLogger& aDataLogger, |
|
8212 MUnitTestObserver& aObserver) |
|
8213 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
8214 cleanup stack. |
|
8215 Error Condition : Leaves with the error code. |
|
8216 @exceptions KErrNoMemory |
|
8217 @since 7.0 |
|
8218 @param aDataLogger The output logging object. |
|
8219 @param aObserver The observer of this UnitTest. |
|
8220 @return CWspHeaderWriter_ContentRangeUnknownLength_UnitTest* The constructed object. |
|
8221 @pre None. |
|
8222 @post CWspHeaderWriter_ContentRangeUnknownLength_UnitTest is fully constructed, and initialized. |
|
8223 */ |
|
8224 static CWspHeaderWriter_ContentRangeUnknownLength_UnitTest* NewL(CDataLogger& aDataLogger, |
|
8225 MUnitTestObserver& aObserver); |
|
8226 |
|
8227 /** |
|
8228 @fn RunError(TInt aError) |
|
8229 Intended Usage : Intercept the panic caused by a RunL leave, |
|
8230 to restore the CWspHeaderWriter_ContentRangeUnknownLength_UnitTest |
|
8231 object to a sensible state. |
|
8232 (called by the Active Scheduler immediately before the Panic). |
|
8233 Error Condition : @see CUnitTest::RunError(). |
|
8234 @since 7.0 |
|
8235 @return KErrNone if cleanup successful, otherwise |
|
8236 @see CUnitTest::RunError() |
|
8237 @pre CWspHeaderWriter_ContentRangeUnknownLength_UnitTest is fully constructed, and initialized. |
|
8238 @post The object has been restored to a sensible state. |
|
8239 */ |
|
8240 inline TInt RunError(TInt aError); |
|
8241 |
|
8242 /** |
|
8243 @fn ~CWspHeaderWriter_ContentRangeUnknownLength_UnitTest() |
|
8244 Intended Usage : Standard Destructor. |
|
8245 Error Condition : None. |
|
8246 @since 7.0 |
|
8247 @pre CWspHeaderWriter_ContentRangeUnknownLength_UnitTest is fully constructed. |
|
8248 @post CWspHeaderWriter_ContentRangeUnknownLength_UnitTest is fully destroyed. |
|
8249 */ |
|
8250 ~CWspHeaderWriter_ContentRangeUnknownLength_UnitTest(); |
|
8251 |
|
8252 private: |
|
8253 /** |
|
8254 @fn CWspHeaderWriter_ContentRangeUnknownLength_UnitTest(CDataLogger& aDataLogger, |
|
8255 MUnitTestObserver& aObserver) |
|
8256 Intended Usage : Default constructor. |
|
8257 Error Condition : None. |
|
8258 @since 7.0 |
|
8259 @param aDataLogger The output logging object. |
|
8260 @param aObserver The observer of this UnitTest. |
|
8261 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
8262 @pre None. |
|
8263 @post CWspHeaderWriter_ContentRangeUnknownLength_UnitTest is fully constructed. |
|
8264 */ |
|
8265 inline CWspHeaderWriter_ContentRangeUnknownLength_UnitTest(CDataLogger& aDataLogger, |
|
8266 MUnitTestObserver& aObserver); |
|
8267 |
|
8268 /** |
|
8269 @fn void ConstructL() |
|
8270 Intended Usage : Second phase of safe two phase construction, |
|
8271 to complete the object initialisation. |
|
8272 Error Condition : Leaves with an error code. |
|
8273 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
8274 @since 7.0 |
|
8275 @return None |
|
8276 @pre CWspHeaderWriter_ContentRangeUnknownLength_UnitTest is fully constructed. |
|
8277 @post CWspHeaderWriter_ContentRangeUnknownLength_UnitTest is fully initialized. |
|
8278 */ |
|
8279 void ConstructL(); |
|
8280 |
|
8281 /** |
|
8282 The context of the Unit Test. |
|
8283 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
8284 */ |
|
8285 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
8286 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
8287 /* C'tor, d'tor, and method transition validators */ |
|
8288 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
8289 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentRangeUnknownLengthValidator; |
|
8290 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
8291 }; // CWspHeaderWriter_ContentRangeUnknownLength_UnitTest |
|
8292 |
|
8293 // ______________________________________________________________________________ |
|
8294 // |
|
8295 /** |
|
8296 @internal |
|
8297 @class CWspHeaderWriter_AllowGet_UnitTest |
|
8298 @Depends CWspHeaderWriter & CUnitTest |
|
8299 |
|
8300 Comments : Unit Test for AllowGet on CWspHeaderWriter, the class under test. |
|
8301 */ |
|
8302 class CWspHeaderWriter_AllowGet_UnitTest : public CUnitTest |
|
8303 { |
|
8304 public: |
|
8305 /** |
|
8306 @fn NewL(CDataLogger& aDataLogger, |
|
8307 MUnitTestObserver& aObserver) |
|
8308 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
8309 cleanup stack. |
|
8310 Error Condition : Leaves with the error code. |
|
8311 @exceptions KErrNoMemory |
|
8312 @since 7.0 |
|
8313 @param aDataLogger The output logging object. |
|
8314 @param aObserver The observer of this UnitTest. |
|
8315 @return CWspHeaderWriter_AllowGet_UnitTest* The constructed object. |
|
8316 @pre None. |
|
8317 @post CWspHeaderWriter_AllowGet_UnitTest is fully constructed, and initialized. |
|
8318 */ |
|
8319 static CWspHeaderWriter_AllowGet_UnitTest* NewL(CDataLogger& aDataLogger, |
|
8320 MUnitTestObserver& aObserver); |
|
8321 |
|
8322 /** |
|
8323 @fn RunError(TInt aError) |
|
8324 Intended Usage : Intercept the panic caused by a RunL leave, |
|
8325 to restore the CWspHeaderWriter_AllowGet_UnitTest |
|
8326 object to a sensible state. |
|
8327 (called by the Active Scheduler immediately before the Panic). |
|
8328 Error Condition : @see CUnitTest::RunError(). |
|
8329 @since 7.0 |
|
8330 @return KErrNone if cleanup successful, otherwise |
|
8331 @see CUnitTest::RunError() |
|
8332 @pre CWspHeaderWriter_AllowGet_UnitTest is fully constructed, and initialized. |
|
8333 @post The object has been restored to a sensible state. |
|
8334 */ |
|
8335 inline TInt RunError(TInt aError); |
|
8336 |
|
8337 /** |
|
8338 @fn ~CWspHeaderWriter_AllowGet_UnitTest() |
|
8339 Intended Usage : Standard Destructor. |
|
8340 Error Condition : None. |
|
8341 @since 7.0 |
|
8342 @pre CWspHeaderWriter_AllowGet_UnitTest is fully constructed. |
|
8343 @post CWspHeaderWriter_AllowGet_UnitTest is fully destroyed. |
|
8344 */ |
|
8345 ~CWspHeaderWriter_AllowGet_UnitTest(); |
|
8346 |
|
8347 private: |
|
8348 /** |
|
8349 @fn CWspHeaderWriter_AllowGet_UnitTest(CDataLogger& aDataLogger, |
|
8350 MUnitTestObserver& aObserver) |
|
8351 Intended Usage : Default constructor. |
|
8352 Error Condition : None. |
|
8353 @since 7.0 |
|
8354 @param aDataLogger The output logging object. |
|
8355 @param aObserver The observer of this UnitTest. |
|
8356 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
8357 @pre None. |
|
8358 @post CWspHeaderWriter_AllowGet_UnitTest is fully constructed. |
|
8359 */ |
|
8360 inline CWspHeaderWriter_AllowGet_UnitTest(CDataLogger& aDataLogger, |
|
8361 MUnitTestObserver& aObserver); |
|
8362 |
|
8363 /** |
|
8364 @fn void ConstructL() |
|
8365 Intended Usage : Second phase of safe two phase construction, |
|
8366 to complete the object initialisation. |
|
8367 Error Condition : Leaves with an error code. |
|
8368 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
8369 @since 7.0 |
|
8370 @return None |
|
8371 @pre CWspHeaderWriter_AllowGet_UnitTest is fully constructed. |
|
8372 @post CWspHeaderWriter_AllowGet_UnitTest is fully initialized. |
|
8373 */ |
|
8374 void ConstructL(); |
|
8375 |
|
8376 /** |
|
8377 The context of the Unit Test. |
|
8378 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
8379 */ |
|
8380 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
8381 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
8382 /* C'tor, d'tor, and method transition validators */ |
|
8383 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
8384 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAllowGetValidator; |
|
8385 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
8386 }; // CWspHeaderWriter_AllowGet_UnitTest |
|
8387 |
|
8388 // ______________________________________________________________________________ |
|
8389 // |
|
8390 /** |
|
8391 @internal |
|
8392 @class CWspHeaderWriter_AllowPost_UnitTest |
|
8393 @Depends CWspHeaderWriter & CUnitTest |
|
8394 |
|
8395 Comments : Unit Test for AllowPost on CWspHeaderWriter, the class under test. |
|
8396 */ |
|
8397 class CWspHeaderWriter_AllowPost_UnitTest : public CUnitTest |
|
8398 { |
|
8399 public: |
|
8400 /** |
|
8401 @fn NewL(CDataLogger& aDataLogger, |
|
8402 MUnitTestObserver& aObserver) |
|
8403 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
8404 cleanup stack. |
|
8405 Error Condition : Leaves with the error code. |
|
8406 @exceptions KErrNoMemory |
|
8407 @since 7.0 |
|
8408 @param aDataLogger The output logging object. |
|
8409 @param aObserver The observer of this UnitTest. |
|
8410 @return CWspHeaderWriter_AllowPost_UnitTest* The constructed object. |
|
8411 @pre None. |
|
8412 @post CWspHeaderWriter_AllowPost_UnitTest is fully constructed, and initialized. |
|
8413 */ |
|
8414 static CWspHeaderWriter_AllowPost_UnitTest* NewL(CDataLogger& aDataLogger, |
|
8415 MUnitTestObserver& aObserver); |
|
8416 |
|
8417 /** |
|
8418 @fn RunError(TInt aError) |
|
8419 Intended Usage : Intercept the panic caused by a RunL leave, |
|
8420 to restore the CWspHeaderWriter_AllowPost_UnitTest |
|
8421 object to a sensible state. |
|
8422 (called by the Active Scheduler immediately before the Panic). |
|
8423 Error Condition : @see CUnitTest::RunError(). |
|
8424 @since 7.0 |
|
8425 @return KErrNone if cleanup successful, otherwise |
|
8426 @see CUnitTest::RunError() |
|
8427 @pre CWspHeaderWriter_AllowPost_UnitTest is fully constructed, and initialized. |
|
8428 @post The object has been restored to a sensible state. |
|
8429 */ |
|
8430 inline TInt RunError(TInt aError); |
|
8431 |
|
8432 /** |
|
8433 @fn ~CWspHeaderWriter_AllowPost_UnitTest() |
|
8434 Intended Usage : Standard Destructor. |
|
8435 Error Condition : None. |
|
8436 @since 7.0 |
|
8437 @pre CWspHeaderWriter_AllowPost_UnitTest is fully constructed. |
|
8438 @post CWspHeaderWriter_AllowPost_UnitTest is fully destroyed. |
|
8439 */ |
|
8440 ~CWspHeaderWriter_AllowPost_UnitTest(); |
|
8441 |
|
8442 private: |
|
8443 /** |
|
8444 @fn CWspHeaderWriter_AllowPost_UnitTest(CDataLogger& aDataLogger, |
|
8445 MUnitTestObserver& aObserver) |
|
8446 Intended Usage : Default constructor. |
|
8447 Error Condition : None. |
|
8448 @since 7.0 |
|
8449 @param aDataLogger The output logging object. |
|
8450 @param aObserver The observer of this UnitTest. |
|
8451 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
8452 @pre None. |
|
8453 @post CWspHeaderWriter_AllowPost_UnitTest is fully constructed. |
|
8454 */ |
|
8455 inline CWspHeaderWriter_AllowPost_UnitTest(CDataLogger& aDataLogger, |
|
8456 MUnitTestObserver& aObserver); |
|
8457 |
|
8458 /** |
|
8459 @fn void ConstructL() |
|
8460 Intended Usage : Second phase of safe two phase construction, |
|
8461 to complete the object initialisation. |
|
8462 Error Condition : Leaves with an error code. |
|
8463 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
8464 @since 7.0 |
|
8465 @return None |
|
8466 @pre CWspHeaderWriter_AllowPost_UnitTest is fully constructed. |
|
8467 @post CWspHeaderWriter_AllowPost_UnitTest is fully initialized. |
|
8468 */ |
|
8469 void ConstructL(); |
|
8470 |
|
8471 /** |
|
8472 The context of the Unit Test. |
|
8473 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
8474 */ |
|
8475 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
8476 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
8477 /* C'tor, d'tor, and method transition validators */ |
|
8478 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
8479 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAllowPostValidator; |
|
8480 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
8481 }; // CWspHeaderWriter_AllowPost_UnitTest |
|
8482 |
|
8483 // ______________________________________________________________________________ |
|
8484 // |
|
8485 /** |
|
8486 @internal |
|
8487 @class CWspHeaderWriter_AllowInvalid_UnitTest |
|
8488 @Depends CWspHeaderWriter & CUnitTest |
|
8489 |
|
8490 Comments : Unit Test for AllowInvalid on CWspHeaderWriter, the class under test. |
|
8491 */ |
|
8492 class CWspHeaderWriter_AllowInvalid_UnitTest : public CUnitTest |
|
8493 { |
|
8494 public: |
|
8495 /** |
|
8496 @fn NewL(CDataLogger& aDataLogger, |
|
8497 MUnitTestObserver& aObserver) |
|
8498 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
8499 cleanup stack. |
|
8500 Error Condition : Leaves with the error code. |
|
8501 @exceptions KErrNoMemory |
|
8502 @since 7.0 |
|
8503 @param aDataLogger The output logging object. |
|
8504 @param aObserver The observer of this UnitTest. |
|
8505 @return CWspHeaderWriter_AllowInvalid_UnitTest* The constructed object. |
|
8506 @pre None. |
|
8507 @post CWspHeaderWriter_AllowInvalid_UnitTest is fully constructed, and initialized. |
|
8508 */ |
|
8509 static CWspHeaderWriter_AllowInvalid_UnitTest* NewL(CDataLogger& aDataLogger, |
|
8510 MUnitTestObserver& aObserver); |
|
8511 |
|
8512 /** |
|
8513 @fn RunError(TInt aError) |
|
8514 Intended Usage : Intercept the panic caused by a RunL leave, |
|
8515 to restore the CWspHeaderWriter_AllowInvalid_UnitTest |
|
8516 object to a sensible state. |
|
8517 (called by the Active Scheduler immediately before the Panic). |
|
8518 Error Condition : @see CUnitTest::RunError(). |
|
8519 @since 7.0 |
|
8520 @return KErrNone if cleanup successful, otherwise |
|
8521 @see CUnitTest::RunError() |
|
8522 @pre CWspHeaderWriter_AllowInvalid_UnitTest is fully constructed, and initialized. |
|
8523 @post The object has been restored to a sensible state. |
|
8524 */ |
|
8525 inline TInt RunError(TInt aError); |
|
8526 |
|
8527 /** |
|
8528 @fn ~CWspHeaderWriter_AllowInvalid_UnitTest() |
|
8529 Intended Usage : Standard Destructor. |
|
8530 Error Condition : None. |
|
8531 @since 7.0 |
|
8532 @pre CWspHeaderWriter_AllowInvalid_UnitTest is fully constructed. |
|
8533 @post CWspHeaderWriter_AllowInvalid_UnitTest is fully destroyed. |
|
8534 */ |
|
8535 ~CWspHeaderWriter_AllowInvalid_UnitTest(); |
|
8536 |
|
8537 private: |
|
8538 /** |
|
8539 @fn CWspHeaderWriter_AllowInvalid_UnitTest(CDataLogger& aDataLogger, |
|
8540 MUnitTestObserver& aObserver) |
|
8541 Intended Usage : Default constructor. |
|
8542 Error Condition : None. |
|
8543 @since 7.0 |
|
8544 @param aDataLogger The output logging object. |
|
8545 @param aObserver The observer of this UnitTest. |
|
8546 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
8547 @pre None. |
|
8548 @post CWspHeaderWriter_AllowInvalid_UnitTest is fully constructed. |
|
8549 */ |
|
8550 inline CWspHeaderWriter_AllowInvalid_UnitTest(CDataLogger& aDataLogger, |
|
8551 MUnitTestObserver& aObserver); |
|
8552 |
|
8553 /** |
|
8554 @fn void ConstructL() |
|
8555 Intended Usage : Second phase of safe two phase construction, |
|
8556 to complete the object initialisation. |
|
8557 Error Condition : Leaves with an error code. |
|
8558 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
8559 @since 7.0 |
|
8560 @return None |
|
8561 @pre CWspHeaderWriter_AllowInvalid_UnitTest is fully constructed. |
|
8562 @post CWspHeaderWriter_AllowInvalid_UnitTest is fully initialized. |
|
8563 */ |
|
8564 void ConstructL(); |
|
8565 |
|
8566 /** |
|
8567 The context of the Unit Test. |
|
8568 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
8569 */ |
|
8570 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
8571 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
8572 /* C'tor, d'tor, and method transition validators */ |
|
8573 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
8574 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAllowInvalidValidator; |
|
8575 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
8576 }; // CWspHeaderWriter_AllowInvalid_UnitTest |
|
8577 |
|
8578 // ______________________________________________________________________________ |
|
8579 // |
|
8580 /** |
|
8581 @internal |
|
8582 @class CWspHeaderWriter_PragmaNoCache_UnitTest |
|
8583 @Depends CWspHeaderWriter & CUnitTest |
|
8584 |
|
8585 Comments : Unit Test for PragmaNoCache on CWspHeaderWriter, the class under test. |
|
8586 */ |
|
8587 class CWspHeaderWriter_PragmaNoCache_UnitTest : public CUnitTest |
|
8588 { |
|
8589 public: |
|
8590 /** |
|
8591 @fn NewL(CDataLogger& aDataLogger, |
|
8592 MUnitTestObserver& aObserver) |
|
8593 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
8594 cleanup stack. |
|
8595 Error Condition : Leaves with the error code. |
|
8596 @exceptions KErrNoMemory |
|
8597 @since 7.0 |
|
8598 @param aDataLogger The output logging object. |
|
8599 @param aObserver The observer of this UnitTest. |
|
8600 @return CWspHeaderWriter_PragmaNoCache_UnitTest* The constructed object. |
|
8601 @pre None. |
|
8602 @post CWspHeaderWriter_PragmaNoCache_UnitTest is fully constructed, and initialized. |
|
8603 */ |
|
8604 static CWspHeaderWriter_PragmaNoCache_UnitTest* NewL(CDataLogger& aDataLogger, |
|
8605 MUnitTestObserver& aObserver); |
|
8606 |
|
8607 /** |
|
8608 @fn RunError(TInt aError) |
|
8609 Intended Usage : Intercept the panic caused by a RunL leave, |
|
8610 to restore the CWspHeaderWriter_PragmaNoCache_UnitTest |
|
8611 object to a sensible state. |
|
8612 (called by the Active Scheduler immediately before the Panic). |
|
8613 Error Condition : @see CUnitTest::RunError(). |
|
8614 @since 7.0 |
|
8615 @return KErrNone if cleanup successful, otherwise |
|
8616 @see CUnitTest::RunError() |
|
8617 @pre CWspHeaderWriter_PragmaNoCache_UnitTest is fully constructed, and initialized. |
|
8618 @post The object has been restored to a sensible state. |
|
8619 */ |
|
8620 inline TInt RunError(TInt aError); |
|
8621 |
|
8622 /** |
|
8623 @fn ~CWspHeaderWriter_PragmaNoCache_UnitTest() |
|
8624 Intended Usage : Standard Destructor. |
|
8625 Error Condition : None. |
|
8626 @since 7.0 |
|
8627 @pre CWspHeaderWriter_PragmaNoCache_UnitTest is fully constructed. |
|
8628 @post CWspHeaderWriter_PragmaNoCache_UnitTest is fully destroyed. |
|
8629 */ |
|
8630 ~CWspHeaderWriter_PragmaNoCache_UnitTest(); |
|
8631 |
|
8632 private: |
|
8633 /** |
|
8634 @fn CWspHeaderWriter_PragmaNoCache_UnitTest(CDataLogger& aDataLogger, |
|
8635 MUnitTestObserver& aObserver) |
|
8636 Intended Usage : Default constructor. |
|
8637 Error Condition : None. |
|
8638 @since 7.0 |
|
8639 @param aDataLogger The output logging object. |
|
8640 @param aObserver The observer of this UnitTest. |
|
8641 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
8642 @pre None. |
|
8643 @post CWspHeaderWriter_PragmaNoCache_UnitTest is fully constructed. |
|
8644 */ |
|
8645 inline CWspHeaderWriter_PragmaNoCache_UnitTest(CDataLogger& aDataLogger, |
|
8646 MUnitTestObserver& aObserver); |
|
8647 |
|
8648 /** |
|
8649 @fn void ConstructL() |
|
8650 Intended Usage : Second phase of safe two phase construction, |
|
8651 to complete the object initialisation. |
|
8652 Error Condition : Leaves with an error code. |
|
8653 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
8654 @since 7.0 |
|
8655 @return None |
|
8656 @pre CWspHeaderWriter_PragmaNoCache_UnitTest is fully constructed. |
|
8657 @post CWspHeaderWriter_PragmaNoCache_UnitTest is fully initialized. |
|
8658 */ |
|
8659 void ConstructL(); |
|
8660 |
|
8661 /** |
|
8662 The context of the Unit Test. |
|
8663 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
8664 */ |
|
8665 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
8666 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
8667 /* C'tor, d'tor, and method transition validators */ |
|
8668 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
8669 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iPragmaNoCacheValidator; |
|
8670 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
8671 }; // CWspHeaderWriter_PragmaNoCache_UnitTest |
|
8672 |
|
8673 // ______________________________________________________________________________ |
|
8674 // |
|
8675 /** |
|
8676 @internal |
|
8677 @class CWspHeaderWriter_PragmaParameter_UnitTest |
|
8678 @Depends CWspHeaderWriter & CUnitTest |
|
8679 |
|
8680 Comments : Unit Test for PragmaParameter on CWspHeaderWriter, the class under test. |
|
8681 */ |
|
8682 class CWspHeaderWriter_PragmaParameter_UnitTest : public CUnitTest |
|
8683 { |
|
8684 public: |
|
8685 /** |
|
8686 @fn NewL(CDataLogger& aDataLogger, |
|
8687 MUnitTestObserver& aObserver) |
|
8688 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
8689 cleanup stack. |
|
8690 Error Condition : Leaves with the error code. |
|
8691 @exceptions KErrNoMemory |
|
8692 @since 7.0 |
|
8693 @param aDataLogger The output logging object. |
|
8694 @param aObserver The observer of this UnitTest. |
|
8695 @return CWspHeaderWriter_PragmaParameter_UnitTest* The constructed object. |
|
8696 @pre None. |
|
8697 @post CWspHeaderWriter_PragmaParameter_UnitTest is fully constructed, and initialized. |
|
8698 */ |
|
8699 static CWspHeaderWriter_PragmaParameter_UnitTest* NewL(CDataLogger& aDataLogger, |
|
8700 MUnitTestObserver& aObserver); |
|
8701 |
|
8702 /** |
|
8703 @fn RunError(TInt aError) |
|
8704 Intended Usage : Intercept the panic caused by a RunL leave, |
|
8705 to restore the CWspHeaderWriter_PragmaParameter_UnitTest |
|
8706 object to a sensible state. |
|
8707 (called by the Active Scheduler immediately before the Panic). |
|
8708 Error Condition : @see CUnitTest::RunError(). |
|
8709 @since 7.0 |
|
8710 @return KErrNone if cleanup successful, otherwise |
|
8711 @see CUnitTest::RunError() |
|
8712 @pre CWspHeaderWriter_PragmaParameter_UnitTest is fully constructed, and initialized. |
|
8713 @post The object has been restored to a sensible state. |
|
8714 */ |
|
8715 inline TInt RunError(TInt aError); |
|
8716 |
|
8717 /** |
|
8718 @fn ~CWspHeaderWriter_PragmaParameter_UnitTest() |
|
8719 Intended Usage : Standard Destructor. |
|
8720 Error Condition : None. |
|
8721 @since 7.0 |
|
8722 @pre CWspHeaderWriter_PragmaParameter_UnitTest is fully constructed. |
|
8723 @post CWspHeaderWriter_PragmaParameter_UnitTest is fully destroyed. |
|
8724 */ |
|
8725 ~CWspHeaderWriter_PragmaParameter_UnitTest(); |
|
8726 |
|
8727 private: |
|
8728 /** |
|
8729 @fn CWspHeaderWriter_PragmaParameter_UnitTest(CDataLogger& aDataLogger, |
|
8730 MUnitTestObserver& aObserver) |
|
8731 Intended Usage : Default constructor. |
|
8732 Error Condition : None. |
|
8733 @since 7.0 |
|
8734 @param aDataLogger The output logging object. |
|
8735 @param aObserver The observer of this UnitTest. |
|
8736 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
8737 @pre None. |
|
8738 @post CWspHeaderWriter_PragmaParameter_UnitTest is fully constructed. |
|
8739 */ |
|
8740 inline CWspHeaderWriter_PragmaParameter_UnitTest(CDataLogger& aDataLogger, |
|
8741 MUnitTestObserver& aObserver); |
|
8742 |
|
8743 /** |
|
8744 @fn void ConstructL() |
|
8745 Intended Usage : Second phase of safe two phase construction, |
|
8746 to complete the object initialisation. |
|
8747 Error Condition : Leaves with an error code. |
|
8748 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
8749 @since 7.0 |
|
8750 @return None |
|
8751 @pre CWspHeaderWriter_PragmaParameter_UnitTest is fully constructed. |
|
8752 @post CWspHeaderWriter_PragmaParameter_UnitTest is fully initialized. |
|
8753 */ |
|
8754 void ConstructL(); |
|
8755 |
|
8756 /** |
|
8757 The context of the Unit Test. |
|
8758 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
8759 */ |
|
8760 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
8761 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
8762 /* C'tor, d'tor, and method transition validators */ |
|
8763 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
8764 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iPragmaParameterValidator; |
|
8765 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
8766 }; // CWspHeaderWriter_PragmaParameter_UnitTest |
|
8767 |
|
8768 // ______________________________________________________________________________ |
|
8769 // |
|
8770 /** |
|
8771 @internal |
|
8772 @class CWspHeaderWriter_UpgradeText_UnitTest |
|
8773 @Depends CWspHeaderWriter & CUnitTest |
|
8774 |
|
8775 Comments : Unit Test for UpgradeText on CWspHeaderWriter, the class under test. |
|
8776 */ |
|
8777 class CWspHeaderWriter_UpgradeText_UnitTest : public CUnitTest |
|
8778 { |
|
8779 public: |
|
8780 /** |
|
8781 @fn NewL(CDataLogger& aDataLogger, |
|
8782 MUnitTestObserver& aObserver) |
|
8783 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
8784 cleanup stack. |
|
8785 Error Condition : Leaves with the error code. |
|
8786 @exceptions KErrNoMemory |
|
8787 @since 7.0 |
|
8788 @param aDataLogger The output logging object. |
|
8789 @param aObserver The observer of this UnitTest. |
|
8790 @return CWspHeaderWriter_UpgradeText_UnitTest* The constructed object. |
|
8791 @pre None. |
|
8792 @post CWspHeaderWriter_UpgradeText_UnitTest is fully constructed, and initialized. |
|
8793 */ |
|
8794 static CWspHeaderWriter_UpgradeText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
8795 MUnitTestObserver& aObserver); |
|
8796 |
|
8797 /** |
|
8798 @fn RunError(TInt aError) |
|
8799 Intended Usage : Intercept the panic caused by a RunL leave, |
|
8800 to restore the CWspHeaderWriter_UpgradeText_UnitTest |
|
8801 object to a sensible state. |
|
8802 (called by the Active Scheduler immediately before the Panic). |
|
8803 Error Condition : @see CUnitTest::RunError(). |
|
8804 @since 7.0 |
|
8805 @return KErrNone if cleanup successful, otherwise |
|
8806 @see CUnitTest::RunError() |
|
8807 @pre CWspHeaderWriter_UpgradeText_UnitTest is fully constructed, and initialized. |
|
8808 @post The object has been restored to a sensible state. |
|
8809 */ |
|
8810 inline TInt RunError(TInt aError); |
|
8811 |
|
8812 /** |
|
8813 @fn ~CWspHeaderWriter_UpgradeText_UnitTest() |
|
8814 Intended Usage : Standard Destructor. |
|
8815 Error Condition : None. |
|
8816 @since 7.0 |
|
8817 @pre CWspHeaderWriter_UpgradeText_UnitTest is fully constructed. |
|
8818 @post CWspHeaderWriter_UpgradeText_UnitTest is fully destroyed. |
|
8819 */ |
|
8820 ~CWspHeaderWriter_UpgradeText_UnitTest(); |
|
8821 |
|
8822 private: |
|
8823 /** |
|
8824 @fn CWspHeaderWriter_UpgradeText_UnitTest(CDataLogger& aDataLogger, |
|
8825 MUnitTestObserver& aObserver) |
|
8826 Intended Usage : Default constructor. |
|
8827 Error Condition : None. |
|
8828 @since 7.0 |
|
8829 @param aDataLogger The output logging object. |
|
8830 @param aObserver The observer of this UnitTest. |
|
8831 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
8832 @pre None. |
|
8833 @post CWspHeaderWriter_UpgradeText_UnitTest is fully constructed. |
|
8834 */ |
|
8835 inline CWspHeaderWriter_UpgradeText_UnitTest(CDataLogger& aDataLogger, |
|
8836 MUnitTestObserver& aObserver); |
|
8837 |
|
8838 /** |
|
8839 @fn void ConstructL() |
|
8840 Intended Usage : Second phase of safe two phase construction, |
|
8841 to complete the object initialisation. |
|
8842 Error Condition : Leaves with an error code. |
|
8843 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
8844 @since 7.0 |
|
8845 @return None |
|
8846 @pre CWspHeaderWriter_UpgradeText_UnitTest is fully constructed. |
|
8847 @post CWspHeaderWriter_UpgradeText_UnitTest is fully initialized. |
|
8848 */ |
|
8849 void ConstructL(); |
|
8850 |
|
8851 /** |
|
8852 The context of the Unit Test. |
|
8853 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
8854 */ |
|
8855 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
8856 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
8857 /* C'tor, d'tor, and method transition validators */ |
|
8858 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
8859 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iUpgradeTextValidator; |
|
8860 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
8861 }; // CWspHeaderWriter_UpgradeText_UnitTest |
|
8862 |
|
8863 // ______________________________________________________________________________ |
|
8864 // |
|
8865 /** |
|
8866 @internal |
|
8867 @class CWspHeaderWriter_UpgradeNullText_UnitTest |
|
8868 @Depends CWspHeaderWriter & CUnitTest |
|
8869 |
|
8870 Comments : Unit Test for UpgradeNullText on CWspHeaderWriter, the class under test. |
|
8871 */ |
|
8872 class CWspHeaderWriter_UpgradeNullText_UnitTest : public CUnitTest |
|
8873 { |
|
8874 public: |
|
8875 /** |
|
8876 @fn NewL(CDataLogger& aDataLogger, |
|
8877 MUnitTestObserver& aObserver) |
|
8878 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
8879 cleanup stack. |
|
8880 Error Condition : Leaves with the error code. |
|
8881 @exceptions KErrNoMemory |
|
8882 @since 7.0 |
|
8883 @param aDataLogger The output logging object. |
|
8884 @param aObserver The observer of this UnitTest. |
|
8885 @return CWspHeaderWriter_UpgradeNullText_UnitTest* The constructed object. |
|
8886 @pre None. |
|
8887 @post CWspHeaderWriter_UpgradeNullText_UnitTest is fully constructed, and initialized. |
|
8888 */ |
|
8889 static CWspHeaderWriter_UpgradeNullText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
8890 MUnitTestObserver& aObserver); |
|
8891 |
|
8892 /** |
|
8893 @fn RunError(TInt aError) |
|
8894 Intended Usage : Intercept the panic caused by a RunL leave, |
|
8895 to restore the CWspHeaderWriter_UpgradeNullText_UnitTest |
|
8896 object to a sensible state. |
|
8897 (called by the Active Scheduler immediately before the Panic). |
|
8898 Error Condition : @see CUnitTest::RunError(). |
|
8899 @since 7.0 |
|
8900 @return KErrNone if cleanup successful, otherwise |
|
8901 @see CUnitTest::RunError() |
|
8902 @pre CWspHeaderWriter_UpgradeNullText_UnitTest is fully constructed, and initialized. |
|
8903 @post The object has been restored to a sensible state. |
|
8904 */ |
|
8905 inline TInt RunError(TInt aError); |
|
8906 |
|
8907 /** |
|
8908 @fn ~CWspHeaderWriter_UpgradeNullText_UnitTest() |
|
8909 Intended Usage : Standard Destructor. |
|
8910 Error Condition : None. |
|
8911 @since 7.0 |
|
8912 @pre CWspHeaderWriter_UpgradeNullText_UnitTest is fully constructed. |
|
8913 @post CWspHeaderWriter_UpgradeNullText_UnitTest is fully destroyed. |
|
8914 */ |
|
8915 ~CWspHeaderWriter_UpgradeNullText_UnitTest(); |
|
8916 |
|
8917 private: |
|
8918 /** |
|
8919 @fn CWspHeaderWriter_UpgradeNullText_UnitTest(CDataLogger& aDataLogger, |
|
8920 MUnitTestObserver& aObserver) |
|
8921 Intended Usage : Default constructor. |
|
8922 Error Condition : None. |
|
8923 @since 7.0 |
|
8924 @param aDataLogger The output logging object. |
|
8925 @param aObserver The observer of this UnitTest. |
|
8926 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
8927 @pre None. |
|
8928 @post CWspHeaderWriter_UpgradeNullText_UnitTest is fully constructed. |
|
8929 */ |
|
8930 inline CWspHeaderWriter_UpgradeNullText_UnitTest(CDataLogger& aDataLogger, |
|
8931 MUnitTestObserver& aObserver); |
|
8932 |
|
8933 /** |
|
8934 @fn void ConstructL() |
|
8935 Intended Usage : Second phase of safe two phase construction, |
|
8936 to complete the object initialisation. |
|
8937 Error Condition : Leaves with an error code. |
|
8938 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
8939 @since 7.0 |
|
8940 @return None |
|
8941 @pre CWspHeaderWriter_UpgradeNullText_UnitTest is fully constructed. |
|
8942 @post CWspHeaderWriter_UpgradeNullText_UnitTest is fully initialized. |
|
8943 */ |
|
8944 void ConstructL(); |
|
8945 |
|
8946 /** |
|
8947 The context of the Unit Test. |
|
8948 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
8949 */ |
|
8950 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
8951 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
8952 /* C'tor, d'tor, and method transition validators */ |
|
8953 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
8954 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iUpgradeNullTextValidator; |
|
8955 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
8956 }; // CWspHeaderWriter_UpgradeNullText_UnitTest |
|
8957 |
|
8958 // ______________________________________________________________________________ |
|
8959 // |
|
8960 /** |
|
8961 @internal |
|
8962 @class CWspHeaderWriter_Warning110_UnitTest |
|
8963 @Depends CWspHeaderWriter & CUnitTest |
|
8964 |
|
8965 Comments : Unit Test for Warning110 on CWspHeaderWriter, the class under test. |
|
8966 */ |
|
8967 class CWspHeaderWriter_Warning110_UnitTest : public CUnitTest |
|
8968 { |
|
8969 public: |
|
8970 /** |
|
8971 @fn NewL(CDataLogger& aDataLogger, |
|
8972 MUnitTestObserver& aObserver) |
|
8973 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
8974 cleanup stack. |
|
8975 Error Condition : Leaves with the error code. |
|
8976 @exceptions KErrNoMemory |
|
8977 @since 7.0 |
|
8978 @param aDataLogger The output logging object. |
|
8979 @param aObserver The observer of this UnitTest. |
|
8980 @return CWspHeaderWriter_Warning110_UnitTest* The constructed object. |
|
8981 @pre None. |
|
8982 @post CWspHeaderWriter_Warning110_UnitTest is fully constructed, and initialized. |
|
8983 */ |
|
8984 static CWspHeaderWriter_Warning110_UnitTest* NewL(CDataLogger& aDataLogger, |
|
8985 MUnitTestObserver& aObserver); |
|
8986 |
|
8987 /** |
|
8988 @fn RunError(TInt aError) |
|
8989 Intended Usage : Intercept the panic caused by a RunL leave, |
|
8990 to restore the CWspHeaderWriter_Warning110_UnitTest |
|
8991 object to a sensible state. |
|
8992 (called by the Active Scheduler immediately before the Panic). |
|
8993 Error Condition : @see CUnitTest::RunError(). |
|
8994 @since 7.0 |
|
8995 @return KErrNone if cleanup successful, otherwise |
|
8996 @see CUnitTest::RunError() |
|
8997 @pre CWspHeaderWriter_Warning110_UnitTest is fully constructed, and initialized. |
|
8998 @post The object has been restored to a sensible state. |
|
8999 */ |
|
9000 inline TInt RunError(TInt aError); |
|
9001 |
|
9002 /** |
|
9003 @fn ~CWspHeaderWriter_Warning110_UnitTest() |
|
9004 Intended Usage : Standard Destructor. |
|
9005 Error Condition : None. |
|
9006 @since 7.0 |
|
9007 @pre CWspHeaderWriter_Warning110_UnitTest is fully constructed. |
|
9008 @post CWspHeaderWriter_Warning110_UnitTest is fully destroyed. |
|
9009 */ |
|
9010 ~CWspHeaderWriter_Warning110_UnitTest(); |
|
9011 |
|
9012 private: |
|
9013 /** |
|
9014 @fn CWspHeaderWriter_Warning110_UnitTest(CDataLogger& aDataLogger, |
|
9015 MUnitTestObserver& aObserver) |
|
9016 Intended Usage : Default constructor. |
|
9017 Error Condition : None. |
|
9018 @since 7.0 |
|
9019 @param aDataLogger The output logging object. |
|
9020 @param aObserver The observer of this UnitTest. |
|
9021 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
9022 @pre None. |
|
9023 @post CWspHeaderWriter_Warning110_UnitTest is fully constructed. |
|
9024 */ |
|
9025 inline CWspHeaderWriter_Warning110_UnitTest(CDataLogger& aDataLogger, |
|
9026 MUnitTestObserver& aObserver); |
|
9027 |
|
9028 /** |
|
9029 @fn void ConstructL() |
|
9030 Intended Usage : Second phase of safe two phase construction, |
|
9031 to complete the object initialisation. |
|
9032 Error Condition : Leaves with an error code. |
|
9033 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
9034 @since 7.0 |
|
9035 @return None |
|
9036 @pre CWspHeaderWriter_Warning110_UnitTest is fully constructed. |
|
9037 @post CWspHeaderWriter_Warning110_UnitTest is fully initialized. |
|
9038 */ |
|
9039 void ConstructL(); |
|
9040 |
|
9041 /** |
|
9042 The context of the Unit Test. |
|
9043 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
9044 */ |
|
9045 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
9046 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
9047 /* C'tor, d'tor, and method transition validators */ |
|
9048 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
9049 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iWarning110Validator; |
|
9050 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
9051 }; // CWspHeaderWriter_Warning110_UnitTest |
|
9052 |
|
9053 // ______________________________________________________________________________ |
|
9054 // |
|
9055 /** |
|
9056 @internal |
|
9057 @class CWspHeaderWriter_Warning214_UnitTest |
|
9058 @Depends CWspHeaderWriter & CUnitTest |
|
9059 |
|
9060 Comments : Unit Test for Warning214 on CWspHeaderWriter, the class under test. |
|
9061 */ |
|
9062 class CWspHeaderWriter_Warning214_UnitTest : public CUnitTest |
|
9063 { |
|
9064 public: |
|
9065 /** |
|
9066 @fn NewL(CDataLogger& aDataLogger, |
|
9067 MUnitTestObserver& aObserver) |
|
9068 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
9069 cleanup stack. |
|
9070 Error Condition : Leaves with the error code. |
|
9071 @exceptions KErrNoMemory |
|
9072 @since 7.0 |
|
9073 @param aDataLogger The output logging object. |
|
9074 @param aObserver The observer of this UnitTest. |
|
9075 @return CWspHeaderWriter_Warning214_UnitTest* The constructed object. |
|
9076 @pre None. |
|
9077 @post CWspHeaderWriter_Warning214_UnitTest is fully constructed, and initialized. |
|
9078 */ |
|
9079 static CWspHeaderWriter_Warning214_UnitTest* NewL(CDataLogger& aDataLogger, |
|
9080 MUnitTestObserver& aObserver); |
|
9081 |
|
9082 /** |
|
9083 @fn RunError(TInt aError) |
|
9084 Intended Usage : Intercept the panic caused by a RunL leave, |
|
9085 to restore the CWspHeaderWriter_Warning214_UnitTest |
|
9086 object to a sensible state. |
|
9087 (called by the Active Scheduler immediately before the Panic). |
|
9088 Error Condition : @see CUnitTest::RunError(). |
|
9089 @since 7.0 |
|
9090 @return KErrNone if cleanup successful, otherwise |
|
9091 @see CUnitTest::RunError() |
|
9092 @pre CWspHeaderWriter_Warning214_UnitTest is fully constructed, and initialized. |
|
9093 @post The object has been restored to a sensible state. |
|
9094 */ |
|
9095 inline TInt RunError(TInt aError); |
|
9096 |
|
9097 /** |
|
9098 @fn ~CWspHeaderWriter_Warning214_UnitTest() |
|
9099 Intended Usage : Standard Destructor. |
|
9100 Error Condition : None. |
|
9101 @since 7.0 |
|
9102 @pre CWspHeaderWriter_Warning214_UnitTest is fully constructed. |
|
9103 @post CWspHeaderWriter_Warning214_UnitTest is fully destroyed. |
|
9104 */ |
|
9105 ~CWspHeaderWriter_Warning214_UnitTest(); |
|
9106 |
|
9107 private: |
|
9108 /** |
|
9109 @fn CWspHeaderWriter_Warning214_UnitTest(CDataLogger& aDataLogger, |
|
9110 MUnitTestObserver& aObserver) |
|
9111 Intended Usage : Default constructor. |
|
9112 Error Condition : None. |
|
9113 @since 7.0 |
|
9114 @param aDataLogger The output logging object. |
|
9115 @param aObserver The observer of this UnitTest. |
|
9116 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
9117 @pre None. |
|
9118 @post CWspHeaderWriter_Warning214_UnitTest is fully constructed. |
|
9119 */ |
|
9120 inline CWspHeaderWriter_Warning214_UnitTest(CDataLogger& aDataLogger, |
|
9121 MUnitTestObserver& aObserver); |
|
9122 |
|
9123 /** |
|
9124 @fn void ConstructL() |
|
9125 Intended Usage : Second phase of safe two phase construction, |
|
9126 to complete the object initialisation. |
|
9127 Error Condition : Leaves with an error code. |
|
9128 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
9129 @since 7.0 |
|
9130 @return None |
|
9131 @pre CWspHeaderWriter_Warning214_UnitTest is fully constructed. |
|
9132 @post CWspHeaderWriter_Warning214_UnitTest is fully initialized. |
|
9133 */ |
|
9134 void ConstructL(); |
|
9135 |
|
9136 /** |
|
9137 The context of the Unit Test. |
|
9138 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
9139 */ |
|
9140 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
9141 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
9142 /* C'tor, d'tor, and method transition validators */ |
|
9143 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
9144 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iWarning214Validator; |
|
9145 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
9146 }; // CWspHeaderWriter_Warning214_UnitTest |
|
9147 |
|
9148 // ______________________________________________________________________________ |
|
9149 // |
|
9150 /** |
|
9151 @internal |
|
9152 @class CWspHeaderWriter_WarningWarnValue100_UnitTest |
|
9153 @Depends CWspHeaderWriter & CUnitTest |
|
9154 |
|
9155 Comments : Unit Test for WarningWarnValue100 on CWspHeaderWriter, the class under test. |
|
9156 */ |
|
9157 class CWspHeaderWriter_WarningWarnValue100_UnitTest : public CUnitTest |
|
9158 { |
|
9159 public: |
|
9160 /** |
|
9161 @fn NewL(CDataLogger& aDataLogger, |
|
9162 MUnitTestObserver& aObserver) |
|
9163 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
9164 cleanup stack. |
|
9165 Error Condition : Leaves with the error code. |
|
9166 @exceptions KErrNoMemory |
|
9167 @since 7.0 |
|
9168 @param aDataLogger The output logging object. |
|
9169 @param aObserver The observer of this UnitTest. |
|
9170 @return CWspHeaderWriter_WarningWarnValue100_UnitTest* The constructed object. |
|
9171 @pre None. |
|
9172 @post CWspHeaderWriter_WarningWarnValue100_UnitTest is fully constructed, and initialized. |
|
9173 */ |
|
9174 static CWspHeaderWriter_WarningWarnValue100_UnitTest* NewL(CDataLogger& aDataLogger, |
|
9175 MUnitTestObserver& aObserver); |
|
9176 |
|
9177 /** |
|
9178 @fn RunError(TInt aError) |
|
9179 Intended Usage : Intercept the panic caused by a RunL leave, |
|
9180 to restore the CWspHeaderWriter_WarningWarnValue100_UnitTest |
|
9181 object to a sensible state. |
|
9182 (called by the Active Scheduler immediately before the Panic). |
|
9183 Error Condition : @see CUnitTest::RunError(). |
|
9184 @since 7.0 |
|
9185 @return KErrNone if cleanup successful, otherwise |
|
9186 @see CUnitTest::RunError() |
|
9187 @pre CWspHeaderWriter_WarningWarnValue100_UnitTest is fully constructed, and initialized. |
|
9188 @post The object has been restored to a sensible state. |
|
9189 */ |
|
9190 inline TInt RunError(TInt aError); |
|
9191 |
|
9192 /** |
|
9193 @fn ~CWspHeaderWriter_WarningWarnValue100_UnitTest() |
|
9194 Intended Usage : Standard Destructor. |
|
9195 Error Condition : None. |
|
9196 @since 7.0 |
|
9197 @pre CWspHeaderWriter_WarningWarnValue100_UnitTest is fully constructed. |
|
9198 @post CWspHeaderWriter_WarningWarnValue100_UnitTest is fully destroyed. |
|
9199 */ |
|
9200 ~CWspHeaderWriter_WarningWarnValue100_UnitTest(); |
|
9201 |
|
9202 private: |
|
9203 /** |
|
9204 @fn CWspHeaderWriter_WarningWarnValue100_UnitTest(CDataLogger& aDataLogger, |
|
9205 MUnitTestObserver& aObserver) |
|
9206 Intended Usage : Default constructor. |
|
9207 Error Condition : None. |
|
9208 @since 7.0 |
|
9209 @param aDataLogger The output logging object. |
|
9210 @param aObserver The observer of this UnitTest. |
|
9211 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
9212 @pre None. |
|
9213 @post CWspHeaderWriter_WarningWarnValue100_UnitTest is fully constructed. |
|
9214 */ |
|
9215 inline CWspHeaderWriter_WarningWarnValue100_UnitTest(CDataLogger& aDataLogger, |
|
9216 MUnitTestObserver& aObserver); |
|
9217 |
|
9218 /** |
|
9219 @fn void ConstructL() |
|
9220 Intended Usage : Second phase of safe two phase construction, |
|
9221 to complete the object initialisation. |
|
9222 Error Condition : Leaves with an error code. |
|
9223 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
9224 @since 7.0 |
|
9225 @return None |
|
9226 @pre CWspHeaderWriter_WarningWarnValue100_UnitTest is fully constructed. |
|
9227 @post CWspHeaderWriter_WarningWarnValue100_UnitTest is fully initialized. |
|
9228 */ |
|
9229 void ConstructL(); |
|
9230 |
|
9231 /** |
|
9232 The context of the Unit Test. |
|
9233 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
9234 */ |
|
9235 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
9236 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
9237 /* C'tor, d'tor, and method transition validators */ |
|
9238 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
9239 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iWarningWarnValue100Validator; |
|
9240 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
9241 }; // CWspHeaderWriter_WarningWarnValue100_UnitTest |
|
9242 |
|
9243 // ______________________________________________________________________________ |
|
9244 // |
|
9245 /** |
|
9246 @internal |
|
9247 @class CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest |
|
9248 @Depends CWspHeaderWriter & CUnitTest |
|
9249 |
|
9250 Comments : Unit Test for WarningWarnValue110NullAgent on CWspHeaderWriter, the class under test. |
|
9251 */ |
|
9252 class CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest : public CUnitTest |
|
9253 { |
|
9254 public: |
|
9255 /** |
|
9256 @fn NewL(CDataLogger& aDataLogger, |
|
9257 MUnitTestObserver& aObserver) |
|
9258 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
9259 cleanup stack. |
|
9260 Error Condition : Leaves with the error code. |
|
9261 @exceptions KErrNoMemory |
|
9262 @since 7.0 |
|
9263 @param aDataLogger The output logging object. |
|
9264 @param aObserver The observer of this UnitTest. |
|
9265 @return CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest* The constructed object. |
|
9266 @pre None. |
|
9267 @post CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest is fully constructed, and initialized. |
|
9268 */ |
|
9269 static CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest* NewL(CDataLogger& aDataLogger, |
|
9270 MUnitTestObserver& aObserver); |
|
9271 |
|
9272 /** |
|
9273 @fn RunError(TInt aError) |
|
9274 Intended Usage : Intercept the panic caused by a RunL leave, |
|
9275 to restore the CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest |
|
9276 object to a sensible state. |
|
9277 (called by the Active Scheduler immediately before the Panic). |
|
9278 Error Condition : @see CUnitTest::RunError(). |
|
9279 @since 7.0 |
|
9280 @return KErrNone if cleanup successful, otherwise |
|
9281 @see CUnitTest::RunError() |
|
9282 @pre CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest is fully constructed, and initialized. |
|
9283 @post The object has been restored to a sensible state. |
|
9284 */ |
|
9285 inline TInt RunError(TInt aError); |
|
9286 |
|
9287 /** |
|
9288 @fn ~CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest() |
|
9289 Intended Usage : Standard Destructor. |
|
9290 Error Condition : None. |
|
9291 @since 7.0 |
|
9292 @pre CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest is fully constructed. |
|
9293 @post CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest is fully destroyed. |
|
9294 */ |
|
9295 ~CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest(); |
|
9296 |
|
9297 private: |
|
9298 /** |
|
9299 @fn CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest(CDataLogger& aDataLogger, |
|
9300 MUnitTestObserver& aObserver) |
|
9301 Intended Usage : Default constructor. |
|
9302 Error Condition : None. |
|
9303 @since 7.0 |
|
9304 @param aDataLogger The output logging object. |
|
9305 @param aObserver The observer of this UnitTest. |
|
9306 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
9307 @pre None. |
|
9308 @post CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest is fully constructed. |
|
9309 */ |
|
9310 inline CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest(CDataLogger& aDataLogger, |
|
9311 MUnitTestObserver& aObserver); |
|
9312 |
|
9313 /** |
|
9314 @fn void ConstructL() |
|
9315 Intended Usage : Second phase of safe two phase construction, |
|
9316 to complete the object initialisation. |
|
9317 Error Condition : Leaves with an error code. |
|
9318 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
9319 @since 7.0 |
|
9320 @return None |
|
9321 @pre CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest is fully constructed. |
|
9322 @post CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest is fully initialized. |
|
9323 */ |
|
9324 void ConstructL(); |
|
9325 |
|
9326 /** |
|
9327 The context of the Unit Test. |
|
9328 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
9329 */ |
|
9330 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
9331 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
9332 /* C'tor, d'tor, and method transition validators */ |
|
9333 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
9334 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iWarningWarnValue110NullAgentValidator; |
|
9335 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
9336 }; // CWspHeaderWriter_WarningWarnValue110NullAgent_UnitTest |
|
9337 |
|
9338 // ______________________________________________________________________________ |
|
9339 // |
|
9340 /** |
|
9341 @internal |
|
9342 @class CWspHeaderWriter_AcceptConstrainedToken_UnitTest |
|
9343 @Depends CWspHeaderWriter & CUnitTest |
|
9344 |
|
9345 Comments : Unit Test for AcceptConstrainedToken on CWspHeaderWriter, the class under test. |
|
9346 */ |
|
9347 class CWspHeaderWriter_AcceptConstrainedToken_UnitTest : public CUnitTest |
|
9348 { |
|
9349 public: |
|
9350 /** |
|
9351 @fn NewL(CDataLogger& aDataLogger, |
|
9352 MUnitTestObserver& aObserver) |
|
9353 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
9354 cleanup stack. |
|
9355 Error Condition : Leaves with the error code. |
|
9356 @exceptions KErrNoMemory |
|
9357 @since 7.0 |
|
9358 @param aDataLogger The output logging object. |
|
9359 @param aObserver The observer of this UnitTest. |
|
9360 @return CWspHeaderWriter_AcceptConstrainedToken_UnitTest* The constructed object. |
|
9361 @pre None. |
|
9362 @post CWspHeaderWriter_AcceptConstrainedToken_UnitTest is fully constructed, and initialized. |
|
9363 */ |
|
9364 static CWspHeaderWriter_AcceptConstrainedToken_UnitTest* NewL(CDataLogger& aDataLogger, |
|
9365 MUnitTestObserver& aObserver); |
|
9366 |
|
9367 /** |
|
9368 @fn RunError(TInt aError) |
|
9369 Intended Usage : Intercept the panic caused by a RunL leave, |
|
9370 to restore the CWspHeaderWriter_AcceptConstrainedToken_UnitTest |
|
9371 object to a sensible state. |
|
9372 (called by the Active Scheduler immediately before the Panic). |
|
9373 Error Condition : @see CUnitTest::RunError(). |
|
9374 @since 7.0 |
|
9375 @return KErrNone if cleanup successful, otherwise |
|
9376 @see CUnitTest::RunError() |
|
9377 @pre CWspHeaderWriter_AcceptConstrainedToken_UnitTest is fully constructed, and initialized. |
|
9378 @post The object has been restored to a sensible state. |
|
9379 */ |
|
9380 inline TInt RunError(TInt aError); |
|
9381 |
|
9382 /** |
|
9383 @fn ~CWspHeaderWriter_AcceptConstrainedToken_UnitTest() |
|
9384 Intended Usage : Standard Destructor. |
|
9385 Error Condition : None. |
|
9386 @since 7.0 |
|
9387 @pre CWspHeaderWriter_AcceptConstrainedToken_UnitTest is fully constructed. |
|
9388 @post CWspHeaderWriter_AcceptConstrainedToken_UnitTest is fully destroyed. |
|
9389 */ |
|
9390 ~CWspHeaderWriter_AcceptConstrainedToken_UnitTest(); |
|
9391 |
|
9392 private: |
|
9393 /** |
|
9394 @fn CWspHeaderWriter_AcceptConstrainedToken_UnitTest(CDataLogger& aDataLogger, |
|
9395 MUnitTestObserver& aObserver) |
|
9396 Intended Usage : Default constructor. |
|
9397 Error Condition : None. |
|
9398 @since 7.0 |
|
9399 @param aDataLogger The output logging object. |
|
9400 @param aObserver The observer of this UnitTest. |
|
9401 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
9402 @pre None. |
|
9403 @post CWspHeaderWriter_AcceptConstrainedToken_UnitTest is fully constructed. |
|
9404 */ |
|
9405 inline CWspHeaderWriter_AcceptConstrainedToken_UnitTest(CDataLogger& aDataLogger, |
|
9406 MUnitTestObserver& aObserver); |
|
9407 |
|
9408 /** |
|
9409 @fn void ConstructL() |
|
9410 Intended Usage : Second phase of safe two phase construction, |
|
9411 to complete the object initialisation. |
|
9412 Error Condition : Leaves with an error code. |
|
9413 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
9414 @since 7.0 |
|
9415 @return None |
|
9416 @pre CWspHeaderWriter_AcceptConstrainedToken_UnitTest is fully constructed. |
|
9417 @post CWspHeaderWriter_AcceptConstrainedToken_UnitTest is fully initialized. |
|
9418 */ |
|
9419 void ConstructL(); |
|
9420 |
|
9421 /** |
|
9422 The context of the Unit Test. |
|
9423 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
9424 */ |
|
9425 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
9426 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
9427 /* C'tor, d'tor, and method transition validators */ |
|
9428 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
9429 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptConstrainedTokenValidator; |
|
9430 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
9431 }; // CWspHeaderWriter_AcceptConstrainedToken_UnitTest |
|
9432 |
|
9433 // ______________________________________________________________________________ |
|
9434 // |
|
9435 /** |
|
9436 @internal |
|
9437 @class CWspHeaderWriter_AcceptConstrainedText_UnitTest |
|
9438 @Depends CWspHeaderWriter & CUnitTest |
|
9439 |
|
9440 Comments : Unit Test for AcceptConstrainedText on CWspHeaderWriter, the class under test. |
|
9441 */ |
|
9442 class CWspHeaderWriter_AcceptConstrainedText_UnitTest : public CUnitTest |
|
9443 { |
|
9444 public: |
|
9445 /** |
|
9446 @fn NewL(CDataLogger& aDataLogger, |
|
9447 MUnitTestObserver& aObserver) |
|
9448 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
9449 cleanup stack. |
|
9450 Error Condition : Leaves with the error code. |
|
9451 @exceptions KErrNoMemory |
|
9452 @since 7.0 |
|
9453 @param aDataLogger The output logging object. |
|
9454 @param aObserver The observer of this UnitTest. |
|
9455 @return CWspHeaderWriter_AcceptConstrainedText_UnitTest* The constructed object. |
|
9456 @pre None. |
|
9457 @post CWspHeaderWriter_AcceptConstrainedText_UnitTest is fully constructed, and initialized. |
|
9458 */ |
|
9459 static CWspHeaderWriter_AcceptConstrainedText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
9460 MUnitTestObserver& aObserver); |
|
9461 |
|
9462 /** |
|
9463 @fn RunError(TInt aError) |
|
9464 Intended Usage : Intercept the panic caused by a RunL leave, |
|
9465 to restore the CWspHeaderWriter_AcceptConstrainedText_UnitTest |
|
9466 object to a sensible state. |
|
9467 (called by the Active Scheduler immediately before the Panic). |
|
9468 Error Condition : @see CUnitTest::RunError(). |
|
9469 @since 7.0 |
|
9470 @return KErrNone if cleanup successful, otherwise |
|
9471 @see CUnitTest::RunError() |
|
9472 @pre CWspHeaderWriter_AcceptConstrainedText_UnitTest is fully constructed, and initialized. |
|
9473 @post The object has been restored to a sensible state. |
|
9474 */ |
|
9475 inline TInt RunError(TInt aError); |
|
9476 |
|
9477 /** |
|
9478 @fn ~CWspHeaderWriter_AcceptConstrainedText_UnitTest() |
|
9479 Intended Usage : Standard Destructor. |
|
9480 Error Condition : None. |
|
9481 @since 7.0 |
|
9482 @pre CWspHeaderWriter_AcceptConstrainedText_UnitTest is fully constructed. |
|
9483 @post CWspHeaderWriter_AcceptConstrainedText_UnitTest is fully destroyed. |
|
9484 */ |
|
9485 ~CWspHeaderWriter_AcceptConstrainedText_UnitTest(); |
|
9486 |
|
9487 private: |
|
9488 /** |
|
9489 @fn CWspHeaderWriter_AcceptConstrainedText_UnitTest(CDataLogger& aDataLogger, |
|
9490 MUnitTestObserver& aObserver) |
|
9491 Intended Usage : Default constructor. |
|
9492 Error Condition : None. |
|
9493 @since 7.0 |
|
9494 @param aDataLogger The output logging object. |
|
9495 @param aObserver The observer of this UnitTest. |
|
9496 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
9497 @pre None. |
|
9498 @post CWspHeaderWriter_AcceptConstrainedText_UnitTest is fully constructed. |
|
9499 */ |
|
9500 inline CWspHeaderWriter_AcceptConstrainedText_UnitTest(CDataLogger& aDataLogger, |
|
9501 MUnitTestObserver& aObserver); |
|
9502 |
|
9503 /** |
|
9504 @fn void ConstructL() |
|
9505 Intended Usage : Second phase of safe two phase construction, |
|
9506 to complete the object initialisation. |
|
9507 Error Condition : Leaves with an error code. |
|
9508 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
9509 @since 7.0 |
|
9510 @return None |
|
9511 @pre CWspHeaderWriter_AcceptConstrainedText_UnitTest is fully constructed. |
|
9512 @post CWspHeaderWriter_AcceptConstrainedText_UnitTest is fully initialized. |
|
9513 */ |
|
9514 void ConstructL(); |
|
9515 |
|
9516 /** |
|
9517 The context of the Unit Test. |
|
9518 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
9519 */ |
|
9520 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
9521 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
9522 /* C'tor, d'tor, and method transition validators */ |
|
9523 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
9524 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptConstrainedTextValidator; |
|
9525 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
9526 }; // CWspHeaderWriter_AcceptConstrainedText_UnitTest |
|
9527 |
|
9528 // ______________________________________________________________________________ |
|
9529 // |
|
9530 /** |
|
9531 @internal |
|
9532 @class CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest |
|
9533 @Depends CWspHeaderWriter & CUnitTest |
|
9534 |
|
9535 Comments : Unit Test for AcceptGeneralTokenQVal on CWspHeaderWriter, the class under test. |
|
9536 */ |
|
9537 class CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest : public CUnitTest |
|
9538 { |
|
9539 public: |
|
9540 /** |
|
9541 @fn NewL(CDataLogger& aDataLogger, |
|
9542 MUnitTestObserver& aObserver) |
|
9543 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
9544 cleanup stack. |
|
9545 Error Condition : Leaves with the error code. |
|
9546 @exceptions KErrNoMemory |
|
9547 @since 7.0 |
|
9548 @param aDataLogger The output logging object. |
|
9549 @param aObserver The observer of this UnitTest. |
|
9550 @return CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest* The constructed object. |
|
9551 @pre None. |
|
9552 @post CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest is fully constructed, and initialized. |
|
9553 */ |
|
9554 static CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest* NewL(CDataLogger& aDataLogger, |
|
9555 MUnitTestObserver& aObserver); |
|
9556 |
|
9557 /** |
|
9558 @fn RunError(TInt aError) |
|
9559 Intended Usage : Intercept the panic caused by a RunL leave, |
|
9560 to restore the CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest |
|
9561 object to a sensible state. |
|
9562 (called by the Active Scheduler immediately before the Panic). |
|
9563 Error Condition : @see CUnitTest::RunError(). |
|
9564 @since 7.0 |
|
9565 @return KErrNone if cleanup successful, otherwise |
|
9566 @see CUnitTest::RunError() |
|
9567 @pre CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest is fully constructed, and initialized. |
|
9568 @post The object has been restored to a sensible state. |
|
9569 */ |
|
9570 inline TInt RunError(TInt aError); |
|
9571 |
|
9572 /** |
|
9573 @fn ~CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest() |
|
9574 Intended Usage : Standard Destructor. |
|
9575 Error Condition : None. |
|
9576 @since 7.0 |
|
9577 @pre CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest is fully constructed. |
|
9578 @post CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest is fully destroyed. |
|
9579 */ |
|
9580 ~CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest(); |
|
9581 |
|
9582 private: |
|
9583 /** |
|
9584 @fn CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest(CDataLogger& aDataLogger, |
|
9585 MUnitTestObserver& aObserver) |
|
9586 Intended Usage : Default constructor. |
|
9587 Error Condition : None. |
|
9588 @since 7.0 |
|
9589 @param aDataLogger The output logging object. |
|
9590 @param aObserver The observer of this UnitTest. |
|
9591 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
9592 @pre None. |
|
9593 @post CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest is fully constructed. |
|
9594 */ |
|
9595 inline CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest(CDataLogger& aDataLogger, |
|
9596 MUnitTestObserver& aObserver); |
|
9597 |
|
9598 /** |
|
9599 @fn void ConstructL() |
|
9600 Intended Usage : Second phase of safe two phase construction, |
|
9601 to complete the object initialisation. |
|
9602 Error Condition : Leaves with an error code. |
|
9603 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
9604 @since 7.0 |
|
9605 @return None |
|
9606 @pre CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest is fully constructed. |
|
9607 @post CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest is fully initialized. |
|
9608 */ |
|
9609 void ConstructL(); |
|
9610 |
|
9611 /** |
|
9612 The context of the Unit Test. |
|
9613 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
9614 */ |
|
9615 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
9616 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
9617 /* C'tor, d'tor, and method transition validators */ |
|
9618 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
9619 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptGeneralTokenQValValidator; |
|
9620 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
9621 }; // CWspHeaderWriter_AcceptGeneralTokenQVal_UnitTest |
|
9622 |
|
9623 // ______________________________________________________________________________ |
|
9624 // |
|
9625 /** |
|
9626 @internal |
|
9627 @class CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest |
|
9628 @Depends CWspHeaderWriter & CUnitTest |
|
9629 |
|
9630 Comments : Unit Test for AcceptGeneralLongInt2Params on CWspHeaderWriter, the class under test. |
|
9631 */ |
|
9632 class CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest : public CUnitTest |
|
9633 { |
|
9634 public: |
|
9635 /** |
|
9636 @fn NewL(CDataLogger& aDataLogger, |
|
9637 MUnitTestObserver& aObserver) |
|
9638 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
9639 cleanup stack. |
|
9640 Error Condition : Leaves with the error code. |
|
9641 @exceptions KErrNoMemory |
|
9642 @since 7.0 |
|
9643 @param aDataLogger The output logging object. |
|
9644 @param aObserver The observer of this UnitTest. |
|
9645 @return CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest* The constructed object. |
|
9646 @pre None. |
|
9647 @post CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest is fully constructed, and initialized. |
|
9648 */ |
|
9649 static CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest* NewL(CDataLogger& aDataLogger, |
|
9650 MUnitTestObserver& aObserver); |
|
9651 |
|
9652 /** |
|
9653 @fn RunError(TInt aError) |
|
9654 Intended Usage : Intercept the panic caused by a RunL leave, |
|
9655 to restore the CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest |
|
9656 object to a sensible state. |
|
9657 (called by the Active Scheduler immediately before the Panic). |
|
9658 Error Condition : @see CUnitTest::RunError(). |
|
9659 @since 7.0 |
|
9660 @return KErrNone if cleanup successful, otherwise |
|
9661 @see CUnitTest::RunError() |
|
9662 @pre CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest is fully constructed, and initialized. |
|
9663 @post The object has been restored to a sensible state. |
|
9664 */ |
|
9665 inline TInt RunError(TInt aError); |
|
9666 |
|
9667 /** |
|
9668 @fn ~CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest() |
|
9669 Intended Usage : Standard Destructor. |
|
9670 Error Condition : None. |
|
9671 @since 7.0 |
|
9672 @pre CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest is fully constructed. |
|
9673 @post CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest is fully destroyed. |
|
9674 */ |
|
9675 ~CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest(); |
|
9676 |
|
9677 private: |
|
9678 /** |
|
9679 @fn CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest(CDataLogger& aDataLogger, |
|
9680 MUnitTestObserver& aObserver) |
|
9681 Intended Usage : Default constructor. |
|
9682 Error Condition : None. |
|
9683 @since 7.0 |
|
9684 @param aDataLogger The output logging object. |
|
9685 @param aObserver The observer of this UnitTest. |
|
9686 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
9687 @pre None. |
|
9688 @post CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest is fully constructed. |
|
9689 */ |
|
9690 inline CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest(CDataLogger& aDataLogger, |
|
9691 MUnitTestObserver& aObserver); |
|
9692 |
|
9693 /** |
|
9694 @fn void ConstructL() |
|
9695 Intended Usage : Second phase of safe two phase construction, |
|
9696 to complete the object initialisation. |
|
9697 Error Condition : Leaves with an error code. |
|
9698 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
9699 @since 7.0 |
|
9700 @return None |
|
9701 @pre CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest is fully constructed. |
|
9702 @post CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest is fully initialized. |
|
9703 */ |
|
9704 void ConstructL(); |
|
9705 |
|
9706 /** |
|
9707 The context of the Unit Test. |
|
9708 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
9709 */ |
|
9710 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
9711 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
9712 /* C'tor, d'tor, and method transition validators */ |
|
9713 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
9714 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptGeneralLongInt2ParamsValidator; |
|
9715 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
9716 }; // CWspHeaderWriter_AcceptGeneralLongInt2Params_UnitTest |
|
9717 |
|
9718 // ______________________________________________________________________________ |
|
9719 // |
|
9720 /** |
|
9721 @internal |
|
9722 @class CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest |
|
9723 @Depends CWspHeaderWriter & CUnitTest |
|
9724 |
|
9725 Comments : Unit Test for AcceptGeneralNullToken3Params on CWspHeaderWriter, the class under test. |
|
9726 */ |
|
9727 class CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest : public CUnitTest |
|
9728 { |
|
9729 public: |
|
9730 /** |
|
9731 @fn NewL(CDataLogger& aDataLogger, |
|
9732 MUnitTestObserver& aObserver) |
|
9733 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
9734 cleanup stack. |
|
9735 Error Condition : Leaves with the error code. |
|
9736 @exceptions KErrNoMemory |
|
9737 @since 7.0 |
|
9738 @param aDataLogger The output logging object. |
|
9739 @param aObserver The observer of this UnitTest. |
|
9740 @return CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest* The constructed object. |
|
9741 @pre None. |
|
9742 @post CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest is fully constructed, and initialized. |
|
9743 */ |
|
9744 static CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest* NewL(CDataLogger& aDataLogger, |
|
9745 MUnitTestObserver& aObserver); |
|
9746 |
|
9747 /** |
|
9748 @fn RunError(TInt aError) |
|
9749 Intended Usage : Intercept the panic caused by a RunL leave, |
|
9750 to restore the CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest |
|
9751 object to a sensible state. |
|
9752 (called by the Active Scheduler immediately before the Panic). |
|
9753 Error Condition : @see CUnitTest::RunError(). |
|
9754 @since 7.0 |
|
9755 @return KErrNone if cleanup successful, otherwise |
|
9756 @see CUnitTest::RunError() |
|
9757 @pre CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest is fully constructed, and initialized. |
|
9758 @post The object has been restored to a sensible state. |
|
9759 */ |
|
9760 inline TInt RunError(TInt aError); |
|
9761 |
|
9762 /** |
|
9763 @fn ~CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest() |
|
9764 Intended Usage : Standard Destructor. |
|
9765 Error Condition : None. |
|
9766 @since 7.0 |
|
9767 @pre CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest is fully constructed. |
|
9768 @post CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest is fully destroyed. |
|
9769 */ |
|
9770 ~CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest(); |
|
9771 |
|
9772 private: |
|
9773 /** |
|
9774 @fn CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest(CDataLogger& aDataLogger, |
|
9775 MUnitTestObserver& aObserver) |
|
9776 Intended Usage : Default constructor. |
|
9777 Error Condition : None. |
|
9778 @since 7.0 |
|
9779 @param aDataLogger The output logging object. |
|
9780 @param aObserver The observer of this UnitTest. |
|
9781 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
9782 @pre None. |
|
9783 @post CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest is fully constructed. |
|
9784 */ |
|
9785 inline CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest(CDataLogger& aDataLogger, |
|
9786 MUnitTestObserver& aObserver); |
|
9787 |
|
9788 /** |
|
9789 @fn void ConstructL() |
|
9790 Intended Usage : Second phase of safe two phase construction, |
|
9791 to complete the object initialisation. |
|
9792 Error Condition : Leaves with an error code. |
|
9793 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
9794 @since 7.0 |
|
9795 @return None |
|
9796 @pre CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest is fully constructed. |
|
9797 @post CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest is fully initialized. |
|
9798 */ |
|
9799 void ConstructL(); |
|
9800 |
|
9801 /** |
|
9802 The context of the Unit Test. |
|
9803 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
9804 */ |
|
9805 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
9806 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
9807 /* C'tor, d'tor, and method transition validators */ |
|
9808 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
9809 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptGeneralNullToken3ParamsValidator; |
|
9810 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
9811 }; // CWspHeaderWriter_AcceptGeneralNullToken3Params_UnitTest |
|
9812 |
|
9813 // ______________________________________________________________________________ |
|
9814 // |
|
9815 /** |
|
9816 @internal |
|
9817 @class CWspHeaderWriter_CookieVersion_UnitTest |
|
9818 @Depends CWspHeaderWriter & CUnitTest |
|
9819 |
|
9820 Comments : Unit Test for CookieVersion on CWspHeaderWriter, the class under test. |
|
9821 */ |
|
9822 class CWspHeaderWriter_CookieVersion_UnitTest : public CUnitTest |
|
9823 { |
|
9824 public: |
|
9825 /** |
|
9826 @fn NewL(CDataLogger& aDataLogger, |
|
9827 MUnitTestObserver& aObserver) |
|
9828 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
9829 cleanup stack. |
|
9830 Error Condition : Leaves with the error code. |
|
9831 @exceptions KErrNoMemory |
|
9832 @since 7.0 |
|
9833 @param aDataLogger The output logging object. |
|
9834 @param aObserver The observer of this UnitTest. |
|
9835 @return CWspHeaderWriter_CookieVersion_UnitTest* The constructed object. |
|
9836 @pre None. |
|
9837 @post CWspHeaderWriter_CookieVersion_UnitTest is fully constructed, and initialized. |
|
9838 */ |
|
9839 static CWspHeaderWriter_CookieVersion_UnitTest* NewL(CDataLogger& aDataLogger, |
|
9840 MUnitTestObserver& aObserver); |
|
9841 |
|
9842 /** |
|
9843 @fn RunError(TInt aError) |
|
9844 Intended Usage : Intercept the panic caused by a RunL leave, |
|
9845 to restore the CWspHeaderWriter_CookieVersion_UnitTest |
|
9846 object to a sensible state. |
|
9847 (called by the Active Scheduler immediately before the Panic). |
|
9848 Error Condition : @see CUnitTest::RunError(). |
|
9849 @since 7.0 |
|
9850 @return KErrNone if cleanup successful, otherwise |
|
9851 @see CUnitTest::RunError() |
|
9852 @pre CWspHeaderWriter_CookieVersion_UnitTest is fully constructed, and initialized. |
|
9853 @post The object has been restored to a sensible state. |
|
9854 */ |
|
9855 inline TInt RunError(TInt aError); |
|
9856 |
|
9857 /** |
|
9858 @fn ~CWspHeaderWriter_CookieVersion_UnitTest() |
|
9859 Intended Usage : Standard Destructor. |
|
9860 Error Condition : None. |
|
9861 @since 7.0 |
|
9862 @pre CWspHeaderWriter_CookieVersion_UnitTest is fully constructed. |
|
9863 @post CWspHeaderWriter_CookieVersion_UnitTest is fully destroyed. |
|
9864 */ |
|
9865 ~CWspHeaderWriter_CookieVersion_UnitTest(); |
|
9866 |
|
9867 private: |
|
9868 /** |
|
9869 @fn CWspHeaderWriter_CookieVersion_UnitTest(CDataLogger& aDataLogger, |
|
9870 MUnitTestObserver& aObserver) |
|
9871 Intended Usage : Default constructor. |
|
9872 Error Condition : None. |
|
9873 @since 7.0 |
|
9874 @param aDataLogger The output logging object. |
|
9875 @param aObserver The observer of this UnitTest. |
|
9876 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
9877 @pre None. |
|
9878 @post CWspHeaderWriter_CookieVersion_UnitTest is fully constructed. |
|
9879 */ |
|
9880 inline CWspHeaderWriter_CookieVersion_UnitTest(CDataLogger& aDataLogger, |
|
9881 MUnitTestObserver& aObserver); |
|
9882 |
|
9883 /** |
|
9884 @fn void ConstructL() |
|
9885 Intended Usage : Second phase of safe two phase construction, |
|
9886 to complete the object initialisation. |
|
9887 Error Condition : Leaves with an error code. |
|
9888 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
9889 @since 7.0 |
|
9890 @return None |
|
9891 @pre CWspHeaderWriter_CookieVersion_UnitTest is fully constructed. |
|
9892 @post CWspHeaderWriter_CookieVersion_UnitTest is fully initialized. |
|
9893 */ |
|
9894 void ConstructL(); |
|
9895 |
|
9896 /** |
|
9897 The context of the Unit Test. |
|
9898 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
9899 */ |
|
9900 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
9901 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
9902 /* C'tor, d'tor, and method transition validators */ |
|
9903 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
9904 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iCookieVersionValidator; |
|
9905 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
9906 }; // CWspHeaderWriter_CookieVersion_UnitTest |
|
9907 |
|
9908 // ______________________________________________________________________________ |
|
9909 // |
|
9910 /** |
|
9911 @internal |
|
9912 @class CWspHeaderWriter_CookieVersionNameVal_UnitTest |
|
9913 @Depends CWspHeaderWriter & CUnitTest |
|
9914 |
|
9915 Comments : Unit Test for CookieVersionNameVal on CWspHeaderWriter, the class under test. |
|
9916 */ |
|
9917 class CWspHeaderWriter_CookieVersionNameVal_UnitTest : public CUnitTest |
|
9918 { |
|
9919 public: |
|
9920 /** |
|
9921 @fn NewL(CDataLogger& aDataLogger, |
|
9922 MUnitTestObserver& aObserver) |
|
9923 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
9924 cleanup stack. |
|
9925 Error Condition : Leaves with the error code. |
|
9926 @exceptions KErrNoMemory |
|
9927 @since 7.0 |
|
9928 @param aDataLogger The output logging object. |
|
9929 @param aObserver The observer of this UnitTest. |
|
9930 @return CWspHeaderWriter_CookieVersionNameVal_UnitTest* The constructed object. |
|
9931 @pre None. |
|
9932 @post CWspHeaderWriter_CookieVersionNameVal_UnitTest is fully constructed, and initialized. |
|
9933 */ |
|
9934 static CWspHeaderWriter_CookieVersionNameVal_UnitTest* NewL(CDataLogger& aDataLogger, |
|
9935 MUnitTestObserver& aObserver); |
|
9936 |
|
9937 /** |
|
9938 @fn RunError(TInt aError) |
|
9939 Intended Usage : Intercept the panic caused by a RunL leave, |
|
9940 to restore the CWspHeaderWriter_CookieVersionNameVal_UnitTest |
|
9941 object to a sensible state. |
|
9942 (called by the Active Scheduler immediately before the Panic). |
|
9943 Error Condition : @see CUnitTest::RunError(). |
|
9944 @since 7.0 |
|
9945 @return KErrNone if cleanup successful, otherwise |
|
9946 @see CUnitTest::RunError() |
|
9947 @pre CWspHeaderWriter_CookieVersionNameVal_UnitTest is fully constructed, and initialized. |
|
9948 @post The object has been restored to a sensible state. |
|
9949 */ |
|
9950 inline TInt RunError(TInt aError); |
|
9951 |
|
9952 /** |
|
9953 @fn ~CWspHeaderWriter_CookieVersionNameVal_UnitTest() |
|
9954 Intended Usage : Standard Destructor. |
|
9955 Error Condition : None. |
|
9956 @since 7.0 |
|
9957 @pre CWspHeaderWriter_CookieVersionNameVal_UnitTest is fully constructed. |
|
9958 @post CWspHeaderWriter_CookieVersionNameVal_UnitTest is fully destroyed. |
|
9959 */ |
|
9960 ~CWspHeaderWriter_CookieVersionNameVal_UnitTest(); |
|
9961 |
|
9962 private: |
|
9963 /** |
|
9964 @fn CWspHeaderWriter_CookieVersionNameVal_UnitTest(CDataLogger& aDataLogger, |
|
9965 MUnitTestObserver& aObserver) |
|
9966 Intended Usage : Default constructor. |
|
9967 Error Condition : None. |
|
9968 @since 7.0 |
|
9969 @param aDataLogger The output logging object. |
|
9970 @param aObserver The observer of this UnitTest. |
|
9971 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
9972 @pre None. |
|
9973 @post CWspHeaderWriter_CookieVersionNameVal_UnitTest is fully constructed. |
|
9974 */ |
|
9975 inline CWspHeaderWriter_CookieVersionNameVal_UnitTest(CDataLogger& aDataLogger, |
|
9976 MUnitTestObserver& aObserver); |
|
9977 |
|
9978 /** |
|
9979 @fn void ConstructL() |
|
9980 Intended Usage : Second phase of safe two phase construction, |
|
9981 to complete the object initialisation. |
|
9982 Error Condition : Leaves with an error code. |
|
9983 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
9984 @since 7.0 |
|
9985 @return None |
|
9986 @pre CWspHeaderWriter_CookieVersionNameVal_UnitTest is fully constructed. |
|
9987 @post CWspHeaderWriter_CookieVersionNameVal_UnitTest is fully initialized. |
|
9988 */ |
|
9989 void ConstructL(); |
|
9990 |
|
9991 /** |
|
9992 The context of the Unit Test. |
|
9993 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
9994 */ |
|
9995 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
9996 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
9997 /* C'tor, d'tor, and method transition validators */ |
|
9998 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
9999 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iCookieVersionNameValValidator; |
|
10000 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
10001 }; // CWspHeaderWriter_CookieVersionNameVal_UnitTest |
|
10002 |
|
10003 // ______________________________________________________________________________ |
|
10004 // |
|
10005 /** |
|
10006 @internal |
|
10007 @class CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest |
|
10008 @Depends CWspHeaderWriter & CUnitTest |
|
10009 |
|
10010 Comments : Unit Test for CookieVersionNameNullValPath on CWspHeaderWriter, the class under test. |
|
10011 */ |
|
10012 class CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest : public CUnitTest |
|
10013 { |
|
10014 public: |
|
10015 /** |
|
10016 @fn NewL(CDataLogger& aDataLogger, |
|
10017 MUnitTestObserver& aObserver) |
|
10018 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
10019 cleanup stack. |
|
10020 Error Condition : Leaves with the error code. |
|
10021 @exceptions KErrNoMemory |
|
10022 @since 7.0 |
|
10023 @param aDataLogger The output logging object. |
|
10024 @param aObserver The observer of this UnitTest. |
|
10025 @return CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest* The constructed object. |
|
10026 @pre None. |
|
10027 @post CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest is fully constructed, and initialized. |
|
10028 */ |
|
10029 static CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest* NewL(CDataLogger& aDataLogger, |
|
10030 MUnitTestObserver& aObserver); |
|
10031 |
|
10032 /** |
|
10033 @fn RunError(TInt aError) |
|
10034 Intended Usage : Intercept the panic caused by a RunL leave, |
|
10035 to restore the CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest |
|
10036 object to a sensible state. |
|
10037 (called by the Active Scheduler immediately before the Panic). |
|
10038 Error Condition : @see CUnitTest::RunError(). |
|
10039 @since 7.0 |
|
10040 @return KErrNone if cleanup successful, otherwise |
|
10041 @see CUnitTest::RunError() |
|
10042 @pre CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest is fully constructed, and initialized. |
|
10043 @post The object has been restored to a sensible state. |
|
10044 */ |
|
10045 inline TInt RunError(TInt aError); |
|
10046 |
|
10047 /** |
|
10048 @fn ~CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest() |
|
10049 Intended Usage : Standard Destructor. |
|
10050 Error Condition : None. |
|
10051 @since 7.0 |
|
10052 @pre CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest is fully constructed. |
|
10053 @post CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest is fully destroyed. |
|
10054 */ |
|
10055 ~CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest(); |
|
10056 |
|
10057 private: |
|
10058 /** |
|
10059 @fn CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest(CDataLogger& aDataLogger, |
|
10060 MUnitTestObserver& aObserver) |
|
10061 Intended Usage : Default constructor. |
|
10062 Error Condition : None. |
|
10063 @since 7.0 |
|
10064 @param aDataLogger The output logging object. |
|
10065 @param aObserver The observer of this UnitTest. |
|
10066 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
10067 @pre None. |
|
10068 @post CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest is fully constructed. |
|
10069 */ |
|
10070 inline CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest(CDataLogger& aDataLogger, |
|
10071 MUnitTestObserver& aObserver); |
|
10072 |
|
10073 /** |
|
10074 @fn void ConstructL() |
|
10075 Intended Usage : Second phase of safe two phase construction, |
|
10076 to complete the object initialisation. |
|
10077 Error Condition : Leaves with an error code. |
|
10078 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
10079 @since 7.0 |
|
10080 @return None |
|
10081 @pre CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest is fully constructed. |
|
10082 @post CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest is fully initialized. |
|
10083 */ |
|
10084 void ConstructL(); |
|
10085 |
|
10086 /** |
|
10087 The context of the Unit Test. |
|
10088 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
10089 */ |
|
10090 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
10091 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
10092 /* C'tor, d'tor, and method transition validators */ |
|
10093 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
10094 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iCookieVersionNameNullValPathValidator; |
|
10095 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
10096 }; // CWspHeaderWriter_CookieVersionNameNullValPath_UnitTest |
|
10097 |
|
10098 // ______________________________________________________________________________ |
|
10099 // |
|
10100 /** |
|
10101 @internal |
|
10102 @class CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest |
|
10103 @Depends CWspHeaderWriter & CUnitTest |
|
10104 |
|
10105 Comments : Unit Test for CookieVaerionNameValNullPathDomain on CWspHeaderWriter, the class under test. |
|
10106 */ |
|
10107 class CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest : public CUnitTest |
|
10108 { |
|
10109 public: |
|
10110 /** |
|
10111 @fn NewL(CDataLogger& aDataLogger, |
|
10112 MUnitTestObserver& aObserver) |
|
10113 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
10114 cleanup stack. |
|
10115 Error Condition : Leaves with the error code. |
|
10116 @exceptions KErrNoMemory |
|
10117 @since 7.0 |
|
10118 @param aDataLogger The output logging object. |
|
10119 @param aObserver The observer of this UnitTest. |
|
10120 @return CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest* The constructed object. |
|
10121 @pre None. |
|
10122 @post CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest is fully constructed, and initialized. |
|
10123 */ |
|
10124 static CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest* NewL(CDataLogger& aDataLogger, |
|
10125 MUnitTestObserver& aObserver); |
|
10126 |
|
10127 /** |
|
10128 @fn RunError(TInt aError) |
|
10129 Intended Usage : Intercept the panic caused by a RunL leave, |
|
10130 to restore the CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest |
|
10131 object to a sensible state. |
|
10132 (called by the Active Scheduler immediately before the Panic). |
|
10133 Error Condition : @see CUnitTest::RunError(). |
|
10134 @since 7.0 |
|
10135 @return KErrNone if cleanup successful, otherwise |
|
10136 @see CUnitTest::RunError() |
|
10137 @pre CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest is fully constructed, and initialized. |
|
10138 @post The object has been restored to a sensible state. |
|
10139 */ |
|
10140 inline TInt RunError(TInt aError); |
|
10141 |
|
10142 /** |
|
10143 @fn ~CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest() |
|
10144 Intended Usage : Standard Destructor. |
|
10145 Error Condition : None. |
|
10146 @since 7.0 |
|
10147 @pre CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest is fully constructed. |
|
10148 @post CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest is fully destroyed. |
|
10149 */ |
|
10150 ~CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest(); |
|
10151 |
|
10152 private: |
|
10153 /** |
|
10154 @fn CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest(CDataLogger& aDataLogger, |
|
10155 MUnitTestObserver& aObserver) |
|
10156 Intended Usage : Default constructor. |
|
10157 Error Condition : None. |
|
10158 @since 7.0 |
|
10159 @param aDataLogger The output logging object. |
|
10160 @param aObserver The observer of this UnitTest. |
|
10161 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
10162 @pre None. |
|
10163 @post CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest is fully constructed. |
|
10164 */ |
|
10165 inline CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest(CDataLogger& aDataLogger, |
|
10166 MUnitTestObserver& aObserver); |
|
10167 |
|
10168 /** |
|
10169 @fn void ConstructL() |
|
10170 Intended Usage : Second phase of safe two phase construction, |
|
10171 to complete the object initialisation. |
|
10172 Error Condition : Leaves with an error code. |
|
10173 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
10174 @since 7.0 |
|
10175 @return None |
|
10176 @pre CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest is fully constructed. |
|
10177 @post CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest is fully initialized. |
|
10178 */ |
|
10179 void ConstructL(); |
|
10180 |
|
10181 /** |
|
10182 The context of the Unit Test. |
|
10183 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
10184 */ |
|
10185 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
10186 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
10187 /* C'tor, d'tor, and method transition validators */ |
|
10188 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
10189 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iCookieVaerionNameValNullPathDomainValidator; |
|
10190 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
10191 }; // CWspHeaderWriter_CookieVaerionNameValNullPathDomain_UnitTest |
|
10192 |
|
10193 // ______________________________________________________________________________ |
|
10194 // |
|
10195 /** |
|
10196 @internal |
|
10197 @class CWspHeaderWriter_AcceptMultiHeader_UnitTest |
|
10198 @Depends CWspHeaderWriter & CUnitTest |
|
10199 |
|
10200 Comments : Unit Test for AcceptMultiHeader on CWspHeaderWriter, the class under test. |
|
10201 */ |
|
10202 class CWspHeaderWriter_AcceptMultiHeader_UnitTest : public CUnitTest |
|
10203 { |
|
10204 public: |
|
10205 /** |
|
10206 @fn NewL(CDataLogger& aDataLogger, |
|
10207 MUnitTestObserver& aObserver) |
|
10208 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
10209 cleanup stack. |
|
10210 Error Condition : Leaves with the error code. |
|
10211 @exceptions KErrNoMemory |
|
10212 @since 7.0 |
|
10213 @param aDataLogger The output logging object. |
|
10214 @param aObserver The observer of this UnitTest. |
|
10215 @return CWspHeaderWriter_AcceptMultiHeader_UnitTest* The constructed object. |
|
10216 @pre None. |
|
10217 @post CWspHeaderWriter_AcceptMultiHeader_UnitTest is fully constructed, and initialized. |
|
10218 */ |
|
10219 static CWspHeaderWriter_AcceptMultiHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
10220 MUnitTestObserver& aObserver); |
|
10221 |
|
10222 /** |
|
10223 @fn RunError(TInt aError) |
|
10224 Intended Usage : Intercept the panic caused by a RunL leave, |
|
10225 to restore the CWspHeaderWriter_AcceptMultiHeader_UnitTest |
|
10226 object to a sensible state. |
|
10227 (called by the Active Scheduler immediately before the Panic). |
|
10228 Error Condition : @see CUnitTest::RunError(). |
|
10229 @since 7.0 |
|
10230 @return KErrNone if cleanup successful, otherwise |
|
10231 @see CUnitTest::RunError() |
|
10232 @pre CWspHeaderWriter_AcceptMultiHeader_UnitTest is fully constructed, and initialized. |
|
10233 @post The object has been restored to a sensible state. |
|
10234 */ |
|
10235 inline TInt RunError(TInt aError); |
|
10236 |
|
10237 /** |
|
10238 @fn ~CWspHeaderWriter_AcceptMultiHeader_UnitTest() |
|
10239 Intended Usage : Standard Destructor. |
|
10240 Error Condition : None. |
|
10241 @since 7.0 |
|
10242 @pre CWspHeaderWriter_AcceptMultiHeader_UnitTest is fully constructed. |
|
10243 @post CWspHeaderWriter_AcceptMultiHeader_UnitTest is fully destroyed. |
|
10244 */ |
|
10245 ~CWspHeaderWriter_AcceptMultiHeader_UnitTest(); |
|
10246 |
|
10247 private: |
|
10248 /** |
|
10249 @fn CWspHeaderWriter_AcceptMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10250 MUnitTestObserver& aObserver) |
|
10251 Intended Usage : Default constructor. |
|
10252 Error Condition : None. |
|
10253 @since 7.0 |
|
10254 @param aDataLogger The output logging object. |
|
10255 @param aObserver The observer of this UnitTest. |
|
10256 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
10257 @pre None. |
|
10258 @post CWspHeaderWriter_AcceptMultiHeader_UnitTest is fully constructed. |
|
10259 */ |
|
10260 inline CWspHeaderWriter_AcceptMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10261 MUnitTestObserver& aObserver); |
|
10262 |
|
10263 /** |
|
10264 @fn void ConstructL() |
|
10265 Intended Usage : Second phase of safe two phase construction, |
|
10266 to complete the object initialisation. |
|
10267 Error Condition : Leaves with an error code. |
|
10268 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
10269 @since 7.0 |
|
10270 @return None |
|
10271 @pre CWspHeaderWriter_AcceptMultiHeader_UnitTest is fully constructed. |
|
10272 @post CWspHeaderWriter_AcceptMultiHeader_UnitTest is fully initialized. |
|
10273 */ |
|
10274 void ConstructL(); |
|
10275 |
|
10276 /** |
|
10277 The context of the Unit Test. |
|
10278 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
10279 */ |
|
10280 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
10281 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
10282 /* C'tor, d'tor, and method transition validators */ |
|
10283 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
10284 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptMultiHeaderValidator; |
|
10285 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
10286 }; // CWspHeaderWriter_AcceptMultiHeader_UnitTest |
|
10287 |
|
10288 // ______________________________________________________________________________ |
|
10289 // |
|
10290 /** |
|
10291 @internal |
|
10292 @class CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest |
|
10293 @Depends CWspHeaderWriter & CUnitTest |
|
10294 |
|
10295 Comments : Unit Test for AcceptCharsetMultiHeader on CWspHeaderWriter, the class under test. |
|
10296 */ |
|
10297 class CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest : public CUnitTest |
|
10298 { |
|
10299 public: |
|
10300 /** |
|
10301 @fn NewL(CDataLogger& aDataLogger, |
|
10302 MUnitTestObserver& aObserver) |
|
10303 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
10304 cleanup stack. |
|
10305 Error Condition : Leaves with the error code. |
|
10306 @exceptions KErrNoMemory |
|
10307 @since 7.0 |
|
10308 @param aDataLogger The output logging object. |
|
10309 @param aObserver The observer of this UnitTest. |
|
10310 @return CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest* The constructed object. |
|
10311 @pre None. |
|
10312 @post CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest is fully constructed, and initialized. |
|
10313 */ |
|
10314 static CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
10315 MUnitTestObserver& aObserver); |
|
10316 |
|
10317 /** |
|
10318 @fn RunError(TInt aError) |
|
10319 Intended Usage : Intercept the panic caused by a RunL leave, |
|
10320 to restore the CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest |
|
10321 object to a sensible state. |
|
10322 (called by the Active Scheduler immediately before the Panic). |
|
10323 Error Condition : @see CUnitTest::RunError(). |
|
10324 @since 7.0 |
|
10325 @return KErrNone if cleanup successful, otherwise |
|
10326 @see CUnitTest::RunError() |
|
10327 @pre CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest is fully constructed, and initialized. |
|
10328 @post The object has been restored to a sensible state. |
|
10329 */ |
|
10330 inline TInt RunError(TInt aError); |
|
10331 |
|
10332 /** |
|
10333 @fn ~CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest() |
|
10334 Intended Usage : Standard Destructor. |
|
10335 Error Condition : None. |
|
10336 @since 7.0 |
|
10337 @pre CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest is fully constructed. |
|
10338 @post CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest is fully destroyed. |
|
10339 */ |
|
10340 ~CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest(); |
|
10341 |
|
10342 private: |
|
10343 /** |
|
10344 @fn CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10345 MUnitTestObserver& aObserver) |
|
10346 Intended Usage : Default constructor. |
|
10347 Error Condition : None. |
|
10348 @since 7.0 |
|
10349 @param aDataLogger The output logging object. |
|
10350 @param aObserver The observer of this UnitTest. |
|
10351 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
10352 @pre None. |
|
10353 @post CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest is fully constructed. |
|
10354 */ |
|
10355 inline CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10356 MUnitTestObserver& aObserver); |
|
10357 |
|
10358 /** |
|
10359 @fn void ConstructL() |
|
10360 Intended Usage : Second phase of safe two phase construction, |
|
10361 to complete the object initialisation. |
|
10362 Error Condition : Leaves with an error code. |
|
10363 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
10364 @since 7.0 |
|
10365 @return None |
|
10366 @pre CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest is fully constructed. |
|
10367 @post CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest is fully initialized. |
|
10368 */ |
|
10369 void ConstructL(); |
|
10370 |
|
10371 /** |
|
10372 The context of the Unit Test. |
|
10373 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
10374 */ |
|
10375 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
10376 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
10377 /* C'tor, d'tor, and method transition validators */ |
|
10378 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
10379 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAcceptCharsetMultiHeaderValidator; |
|
10380 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
10381 }; // CWspHeaderWriter_AcceptCharsetMultiHeader_UnitTest |
|
10382 |
|
10383 // ______________________________________________________________________________ |
|
10384 // |
|
10385 /** |
|
10386 @internal |
|
10387 @class CWspHeaderWriter_RangeMultiHeader_UnitTest |
|
10388 @Depends CWspHeaderWriter & CUnitTest |
|
10389 |
|
10390 Comments : Unit Test for RangeMultiHeader on CWspHeaderWriter, the class under test. |
|
10391 */ |
|
10392 class CWspHeaderWriter_RangeMultiHeader_UnitTest : public CUnitTest |
|
10393 { |
|
10394 public: |
|
10395 /** |
|
10396 @fn NewL(CDataLogger& aDataLogger, |
|
10397 MUnitTestObserver& aObserver) |
|
10398 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
10399 cleanup stack. |
|
10400 Error Condition : Leaves with the error code. |
|
10401 @exceptions KErrNoMemory |
|
10402 @since 7.0 |
|
10403 @param aDataLogger The output logging object. |
|
10404 @param aObserver The observer of this UnitTest. |
|
10405 @return CWspHeaderWriter_RangeMultiHeader_UnitTest* The constructed object. |
|
10406 @pre None. |
|
10407 @post CWspHeaderWriter_RangeMultiHeader_UnitTest is fully constructed, and initialized. |
|
10408 */ |
|
10409 static CWspHeaderWriter_RangeMultiHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
10410 MUnitTestObserver& aObserver); |
|
10411 |
|
10412 /** |
|
10413 @fn RunError(TInt aError) |
|
10414 Intended Usage : Intercept the panic caused by a RunL leave, |
|
10415 to restore the CWspHeaderWriter_RangeMultiHeader_UnitTest |
|
10416 object to a sensible state. |
|
10417 (called by the Active Scheduler immediately before the Panic). |
|
10418 Error Condition : @see CUnitTest::RunError(). |
|
10419 @since 7.0 |
|
10420 @return KErrNone if cleanup successful, otherwise |
|
10421 @see CUnitTest::RunError() |
|
10422 @pre CWspHeaderWriter_RangeMultiHeader_UnitTest is fully constructed, and initialized. |
|
10423 @post The object has been restored to a sensible state. |
|
10424 */ |
|
10425 inline TInt RunError(TInt aError); |
|
10426 |
|
10427 /** |
|
10428 @fn ~CWspHeaderWriter_RangeMultiHeader_UnitTest() |
|
10429 Intended Usage : Standard Destructor. |
|
10430 Error Condition : None. |
|
10431 @since 7.0 |
|
10432 @pre CWspHeaderWriter_RangeMultiHeader_UnitTest is fully constructed. |
|
10433 @post CWspHeaderWriter_RangeMultiHeader_UnitTest is fully destroyed. |
|
10434 */ |
|
10435 ~CWspHeaderWriter_RangeMultiHeader_UnitTest(); |
|
10436 |
|
10437 private: |
|
10438 /** |
|
10439 @fn CWspHeaderWriter_RangeMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10440 MUnitTestObserver& aObserver) |
|
10441 Intended Usage : Default constructor. |
|
10442 Error Condition : None. |
|
10443 @since 7.0 |
|
10444 @param aDataLogger The output logging object. |
|
10445 @param aObserver The observer of this UnitTest. |
|
10446 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
10447 @pre None. |
|
10448 @post CWspHeaderWriter_RangeMultiHeader_UnitTest is fully constructed. |
|
10449 */ |
|
10450 inline CWspHeaderWriter_RangeMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10451 MUnitTestObserver& aObserver); |
|
10452 |
|
10453 /** |
|
10454 @fn void ConstructL() |
|
10455 Intended Usage : Second phase of safe two phase construction, |
|
10456 to complete the object initialisation. |
|
10457 Error Condition : Leaves with an error code. |
|
10458 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
10459 @since 7.0 |
|
10460 @return None |
|
10461 @pre CWspHeaderWriter_RangeMultiHeader_UnitTest is fully constructed. |
|
10462 @post CWspHeaderWriter_RangeMultiHeader_UnitTest is fully initialized. |
|
10463 */ |
|
10464 void ConstructL(); |
|
10465 |
|
10466 /** |
|
10467 The context of the Unit Test. |
|
10468 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
10469 */ |
|
10470 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
10471 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
10472 /* C'tor, d'tor, and method transition validators */ |
|
10473 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
10474 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iRangeMultiHeaderValidator; |
|
10475 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
10476 }; // CWspHeaderWriter_RangeMultiHeader_UnitTest |
|
10477 |
|
10478 // ______________________________________________________________________________ |
|
10479 // |
|
10480 /** |
|
10481 @internal |
|
10482 @class CWspHeaderWriter_TEMultiHeader_UnitTest |
|
10483 @Depends CWspHeaderWriter & CUnitTest |
|
10484 |
|
10485 Comments : Unit Test for TEMultiHeader on CWspHeaderWriter, the class under test. |
|
10486 */ |
|
10487 class CWspHeaderWriter_TEMultiHeader_UnitTest : public CUnitTest |
|
10488 { |
|
10489 public: |
|
10490 /** |
|
10491 @fn NewL(CDataLogger& aDataLogger, |
|
10492 MUnitTestObserver& aObserver) |
|
10493 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
10494 cleanup stack. |
|
10495 Error Condition : Leaves with the error code. |
|
10496 @exceptions KErrNoMemory |
|
10497 @since 7.0 |
|
10498 @param aDataLogger The output logging object. |
|
10499 @param aObserver The observer of this UnitTest. |
|
10500 @return CWspHeaderWriter_TEMultiHeader_UnitTest* The constructed object. |
|
10501 @pre None. |
|
10502 @post CWspHeaderWriter_TEMultiHeader_UnitTest is fully constructed, and initialized. |
|
10503 */ |
|
10504 static CWspHeaderWriter_TEMultiHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
10505 MUnitTestObserver& aObserver); |
|
10506 |
|
10507 /** |
|
10508 @fn RunError(TInt aError) |
|
10509 Intended Usage : Intercept the panic caused by a RunL leave, |
|
10510 to restore the CWspHeaderWriter_TEMultiHeader_UnitTest |
|
10511 object to a sensible state. |
|
10512 (called by the Active Scheduler immediately before the Panic). |
|
10513 Error Condition : @see CUnitTest::RunError(). |
|
10514 @since 7.0 |
|
10515 @return KErrNone if cleanup successful, otherwise |
|
10516 @see CUnitTest::RunError() |
|
10517 @pre CWspHeaderWriter_TEMultiHeader_UnitTest is fully constructed, and initialized. |
|
10518 @post The object has been restored to a sensible state. |
|
10519 */ |
|
10520 inline TInt RunError(TInt aError); |
|
10521 |
|
10522 /** |
|
10523 @fn ~CWspHeaderWriter_TEMultiHeader_UnitTest() |
|
10524 Intended Usage : Standard Destructor. |
|
10525 Error Condition : None. |
|
10526 @since 7.0 |
|
10527 @pre CWspHeaderWriter_TEMultiHeader_UnitTest is fully constructed. |
|
10528 @post CWspHeaderWriter_TEMultiHeader_UnitTest is fully destroyed. |
|
10529 */ |
|
10530 ~CWspHeaderWriter_TEMultiHeader_UnitTest(); |
|
10531 |
|
10532 private: |
|
10533 /** |
|
10534 @fn CWspHeaderWriter_TEMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10535 MUnitTestObserver& aObserver) |
|
10536 Intended Usage : Default constructor. |
|
10537 Error Condition : None. |
|
10538 @since 7.0 |
|
10539 @param aDataLogger The output logging object. |
|
10540 @param aObserver The observer of this UnitTest. |
|
10541 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
10542 @pre None. |
|
10543 @post CWspHeaderWriter_TEMultiHeader_UnitTest is fully constructed. |
|
10544 */ |
|
10545 inline CWspHeaderWriter_TEMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10546 MUnitTestObserver& aObserver); |
|
10547 |
|
10548 /** |
|
10549 @fn void ConstructL() |
|
10550 Intended Usage : Second phase of safe two phase construction, |
|
10551 to complete the object initialisation. |
|
10552 Error Condition : Leaves with an error code. |
|
10553 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
10554 @since 7.0 |
|
10555 @return None |
|
10556 @pre CWspHeaderWriter_TEMultiHeader_UnitTest is fully constructed. |
|
10557 @post CWspHeaderWriter_TEMultiHeader_UnitTest is fully initialized. |
|
10558 */ |
|
10559 void ConstructL(); |
|
10560 |
|
10561 /** |
|
10562 The context of the Unit Test. |
|
10563 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
10564 */ |
|
10565 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
10566 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
10567 /* C'tor, d'tor, and method transition validators */ |
|
10568 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
10569 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTEMultiHeaderValidator; |
|
10570 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
10571 }; // CWspHeaderWriter_TEMultiHeader_UnitTest |
|
10572 |
|
10573 // ______________________________________________________________________________ |
|
10574 // |
|
10575 /** |
|
10576 @internal |
|
10577 @class CWspHeaderWriter_TrailerMultiHeader_UnitTest |
|
10578 @Depends CWspHeaderWriter & CUnitTest |
|
10579 |
|
10580 Comments : Unit Test for TrailerMultiHeader on CWspHeaderWriter, the class under test. |
|
10581 */ |
|
10582 class CWspHeaderWriter_TrailerMultiHeader_UnitTest : public CUnitTest |
|
10583 { |
|
10584 public: |
|
10585 /** |
|
10586 @fn NewL(CDataLogger& aDataLogger, |
|
10587 MUnitTestObserver& aObserver) |
|
10588 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
10589 cleanup stack. |
|
10590 Error Condition : Leaves with the error code. |
|
10591 @exceptions KErrNoMemory |
|
10592 @since 7.0 |
|
10593 @param aDataLogger The output logging object. |
|
10594 @param aObserver The observer of this UnitTest. |
|
10595 @return CWspHeaderWriter_TrailerMultiHeader_UnitTest* The constructed object. |
|
10596 @pre None. |
|
10597 @post CWspHeaderWriter_TrailerMultiHeader_UnitTest is fully constructed, and initialized. |
|
10598 */ |
|
10599 static CWspHeaderWriter_TrailerMultiHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
10600 MUnitTestObserver& aObserver); |
|
10601 |
|
10602 /** |
|
10603 @fn RunError(TInt aError) |
|
10604 Intended Usage : Intercept the panic caused by a RunL leave, |
|
10605 to restore the CWspHeaderWriter_TrailerMultiHeader_UnitTest |
|
10606 object to a sensible state. |
|
10607 (called by the Active Scheduler immediately before the Panic). |
|
10608 Error Condition : @see CUnitTest::RunError(). |
|
10609 @since 7.0 |
|
10610 @return KErrNone if cleanup successful, otherwise |
|
10611 @see CUnitTest::RunError() |
|
10612 @pre CWspHeaderWriter_TrailerMultiHeader_UnitTest is fully constructed, and initialized. |
|
10613 @post The object has been restored to a sensible state. |
|
10614 */ |
|
10615 inline TInt RunError(TInt aError); |
|
10616 |
|
10617 /** |
|
10618 @fn ~CWspHeaderWriter_TrailerMultiHeader_UnitTest() |
|
10619 Intended Usage : Standard Destructor. |
|
10620 Error Condition : None. |
|
10621 @since 7.0 |
|
10622 @pre CWspHeaderWriter_TrailerMultiHeader_UnitTest is fully constructed. |
|
10623 @post CWspHeaderWriter_TrailerMultiHeader_UnitTest is fully destroyed. |
|
10624 */ |
|
10625 ~CWspHeaderWriter_TrailerMultiHeader_UnitTest(); |
|
10626 |
|
10627 private: |
|
10628 /** |
|
10629 @fn CWspHeaderWriter_TrailerMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10630 MUnitTestObserver& aObserver) |
|
10631 Intended Usage : Default constructor. |
|
10632 Error Condition : None. |
|
10633 @since 7.0 |
|
10634 @param aDataLogger The output logging object. |
|
10635 @param aObserver The observer of this UnitTest. |
|
10636 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
10637 @pre None. |
|
10638 @post CWspHeaderWriter_TrailerMultiHeader_UnitTest is fully constructed. |
|
10639 */ |
|
10640 inline CWspHeaderWriter_TrailerMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10641 MUnitTestObserver& aObserver); |
|
10642 |
|
10643 /** |
|
10644 @fn void ConstructL() |
|
10645 Intended Usage : Second phase of safe two phase construction, |
|
10646 to complete the object initialisation. |
|
10647 Error Condition : Leaves with an error code. |
|
10648 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
10649 @since 7.0 |
|
10650 @return None |
|
10651 @pre CWspHeaderWriter_TrailerMultiHeader_UnitTest is fully constructed. |
|
10652 @post CWspHeaderWriter_TrailerMultiHeader_UnitTest is fully initialized. |
|
10653 */ |
|
10654 void ConstructL(); |
|
10655 |
|
10656 /** |
|
10657 The context of the Unit Test. |
|
10658 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
10659 */ |
|
10660 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
10661 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
10662 /* C'tor, d'tor, and method transition validators */ |
|
10663 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
10664 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iTrailerMultiHeaderValidator; |
|
10665 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
10666 }; // CWspHeaderWriter_TrailerMultiHeader_UnitTest |
|
10667 |
|
10668 // ______________________________________________________________________________ |
|
10669 // |
|
10670 /** |
|
10671 @internal |
|
10672 @class CWspHeaderWriter_ViaMultiHeader_UnitTest |
|
10673 @Depends CWspHeaderWriter & CUnitTest |
|
10674 |
|
10675 Comments : Unit Test for ViaMultiHeader on CWspHeaderWriter, the class under test. |
|
10676 */ |
|
10677 class CWspHeaderWriter_ViaMultiHeader_UnitTest : public CUnitTest |
|
10678 { |
|
10679 public: |
|
10680 /** |
|
10681 @fn NewL(CDataLogger& aDataLogger, |
|
10682 MUnitTestObserver& aObserver) |
|
10683 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
10684 cleanup stack. |
|
10685 Error Condition : Leaves with the error code. |
|
10686 @exceptions KErrNoMemory |
|
10687 @since 7.0 |
|
10688 @param aDataLogger The output logging object. |
|
10689 @param aObserver The observer of this UnitTest. |
|
10690 @return CWspHeaderWriter_ViaMultiHeader_UnitTest* The constructed object. |
|
10691 @pre None. |
|
10692 @post CWspHeaderWriter_ViaMultiHeader_UnitTest is fully constructed, and initialized. |
|
10693 */ |
|
10694 static CWspHeaderWriter_ViaMultiHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
10695 MUnitTestObserver& aObserver); |
|
10696 |
|
10697 /** |
|
10698 @fn RunError(TInt aError) |
|
10699 Intended Usage : Intercept the panic caused by a RunL leave, |
|
10700 to restore the CWspHeaderWriter_ViaMultiHeader_UnitTest |
|
10701 object to a sensible state. |
|
10702 (called by the Active Scheduler immediately before the Panic). |
|
10703 Error Condition : @see CUnitTest::RunError(). |
|
10704 @since 7.0 |
|
10705 @return KErrNone if cleanup successful, otherwise |
|
10706 @see CUnitTest::RunError() |
|
10707 @pre CWspHeaderWriter_ViaMultiHeader_UnitTest is fully constructed, and initialized. |
|
10708 @post The object has been restored to a sensible state. |
|
10709 */ |
|
10710 inline TInt RunError(TInt aError); |
|
10711 |
|
10712 /** |
|
10713 @fn ~CWspHeaderWriter_ViaMultiHeader_UnitTest() |
|
10714 Intended Usage : Standard Destructor. |
|
10715 Error Condition : None. |
|
10716 @since 7.0 |
|
10717 @pre CWspHeaderWriter_ViaMultiHeader_UnitTest is fully constructed. |
|
10718 @post CWspHeaderWriter_ViaMultiHeader_UnitTest is fully destroyed. |
|
10719 */ |
|
10720 ~CWspHeaderWriter_ViaMultiHeader_UnitTest(); |
|
10721 |
|
10722 private: |
|
10723 /** |
|
10724 @fn CWspHeaderWriter_ViaMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10725 MUnitTestObserver& aObserver) |
|
10726 Intended Usage : Default constructor. |
|
10727 Error Condition : None. |
|
10728 @since 7.0 |
|
10729 @param aDataLogger The output logging object. |
|
10730 @param aObserver The observer of this UnitTest. |
|
10731 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
10732 @pre None. |
|
10733 @post CWspHeaderWriter_ViaMultiHeader_UnitTest is fully constructed. |
|
10734 */ |
|
10735 inline CWspHeaderWriter_ViaMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10736 MUnitTestObserver& aObserver); |
|
10737 |
|
10738 /** |
|
10739 @fn void ConstructL() |
|
10740 Intended Usage : Second phase of safe two phase construction, |
|
10741 to complete the object initialisation. |
|
10742 Error Condition : Leaves with an error code. |
|
10743 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
10744 @since 7.0 |
|
10745 @return None |
|
10746 @pre CWspHeaderWriter_ViaMultiHeader_UnitTest is fully constructed. |
|
10747 @post CWspHeaderWriter_ViaMultiHeader_UnitTest is fully initialized. |
|
10748 */ |
|
10749 void ConstructL(); |
|
10750 |
|
10751 /** |
|
10752 The context of the Unit Test. |
|
10753 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
10754 */ |
|
10755 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
10756 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
10757 /* C'tor, d'tor, and method transition validators */ |
|
10758 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
10759 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iViaMultiHeaderValidator; |
|
10760 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
10761 }; // CWspHeaderWriter_ViaMultiHeader_UnitTest |
|
10762 |
|
10763 // ______________________________________________________________________________ |
|
10764 // |
|
10765 /** |
|
10766 @internal |
|
10767 @class CWspHeaderWriter_AllowMultiHeader_UnitTest |
|
10768 @Depends CWspHeaderWriter & CUnitTest |
|
10769 |
|
10770 Comments : Unit Test for AllowMultiHeader on CWspHeaderWriter, the class under test. |
|
10771 */ |
|
10772 class CWspHeaderWriter_AllowMultiHeader_UnitTest : public CUnitTest |
|
10773 { |
|
10774 public: |
|
10775 /** |
|
10776 @fn NewL(CDataLogger& aDataLogger, |
|
10777 MUnitTestObserver& aObserver) |
|
10778 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
10779 cleanup stack. |
|
10780 Error Condition : Leaves with the error code. |
|
10781 @exceptions KErrNoMemory |
|
10782 @since 7.0 |
|
10783 @param aDataLogger The output logging object. |
|
10784 @param aObserver The observer of this UnitTest. |
|
10785 @return CWspHeaderWriter_AllowMultiHeader_UnitTest* The constructed object. |
|
10786 @pre None. |
|
10787 @post CWspHeaderWriter_AllowMultiHeader_UnitTest is fully constructed, and initialized. |
|
10788 */ |
|
10789 static CWspHeaderWriter_AllowMultiHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
10790 MUnitTestObserver& aObserver); |
|
10791 |
|
10792 /** |
|
10793 @fn RunError(TInt aError) |
|
10794 Intended Usage : Intercept the panic caused by a RunL leave, |
|
10795 to restore the CWspHeaderWriter_AllowMultiHeader_UnitTest |
|
10796 object to a sensible state. |
|
10797 (called by the Active Scheduler immediately before the Panic). |
|
10798 Error Condition : @see CUnitTest::RunError(). |
|
10799 @since 7.0 |
|
10800 @return KErrNone if cleanup successful, otherwise |
|
10801 @see CUnitTest::RunError() |
|
10802 @pre CWspHeaderWriter_AllowMultiHeader_UnitTest is fully constructed, and initialized. |
|
10803 @post The object has been restored to a sensible state. |
|
10804 */ |
|
10805 inline TInt RunError(TInt aError); |
|
10806 |
|
10807 /** |
|
10808 @fn ~CWspHeaderWriter_AllowMultiHeader_UnitTest() |
|
10809 Intended Usage : Standard Destructor. |
|
10810 Error Condition : None. |
|
10811 @since 7.0 |
|
10812 @pre CWspHeaderWriter_AllowMultiHeader_UnitTest is fully constructed. |
|
10813 @post CWspHeaderWriter_AllowMultiHeader_UnitTest is fully destroyed. |
|
10814 */ |
|
10815 ~CWspHeaderWriter_AllowMultiHeader_UnitTest(); |
|
10816 |
|
10817 private: |
|
10818 /** |
|
10819 @fn CWspHeaderWriter_AllowMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10820 MUnitTestObserver& aObserver) |
|
10821 Intended Usage : Default constructor. |
|
10822 Error Condition : None. |
|
10823 @since 7.0 |
|
10824 @param aDataLogger The output logging object. |
|
10825 @param aObserver The observer of this UnitTest. |
|
10826 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
10827 @pre None. |
|
10828 @post CWspHeaderWriter_AllowMultiHeader_UnitTest is fully constructed. |
|
10829 */ |
|
10830 inline CWspHeaderWriter_AllowMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10831 MUnitTestObserver& aObserver); |
|
10832 |
|
10833 /** |
|
10834 @fn void ConstructL() |
|
10835 Intended Usage : Second phase of safe two phase construction, |
|
10836 to complete the object initialisation. |
|
10837 Error Condition : Leaves with an error code. |
|
10838 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
10839 @since 7.0 |
|
10840 @return None |
|
10841 @pre CWspHeaderWriter_AllowMultiHeader_UnitTest is fully constructed. |
|
10842 @post CWspHeaderWriter_AllowMultiHeader_UnitTest is fully initialized. |
|
10843 */ |
|
10844 void ConstructL(); |
|
10845 |
|
10846 /** |
|
10847 The context of the Unit Test. |
|
10848 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
10849 */ |
|
10850 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
10851 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
10852 /* C'tor, d'tor, and method transition validators */ |
|
10853 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
10854 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iAllowMultiHeaderValidator; |
|
10855 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
10856 }; // CWspHeaderWriter_AllowMultiHeader_UnitTest |
|
10857 |
|
10858 // ______________________________________________________________________________ |
|
10859 // |
|
10860 /** |
|
10861 @internal |
|
10862 @class CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest |
|
10863 @Depends CWspHeaderWriter & CUnitTest |
|
10864 |
|
10865 Comments : Unit Test for ContentEncodingMultiHeader on CWspHeaderWriter, the class under test. |
|
10866 */ |
|
10867 class CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest : public CUnitTest |
|
10868 { |
|
10869 public: |
|
10870 /** |
|
10871 @fn NewL(CDataLogger& aDataLogger, |
|
10872 MUnitTestObserver& aObserver) |
|
10873 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
10874 cleanup stack. |
|
10875 Error Condition : Leaves with the error code. |
|
10876 @exceptions KErrNoMemory |
|
10877 @since 7.0 |
|
10878 @param aDataLogger The output logging object. |
|
10879 @param aObserver The observer of this UnitTest. |
|
10880 @return CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest* The constructed object. |
|
10881 @pre None. |
|
10882 @post CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest is fully constructed, and initialized. |
|
10883 */ |
|
10884 static CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
10885 MUnitTestObserver& aObserver); |
|
10886 |
|
10887 /** |
|
10888 @fn RunError(TInt aError) |
|
10889 Intended Usage : Intercept the panic caused by a RunL leave, |
|
10890 to restore the CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest |
|
10891 object to a sensible state. |
|
10892 (called by the Active Scheduler immediately before the Panic). |
|
10893 Error Condition : @see CUnitTest::RunError(). |
|
10894 @since 7.0 |
|
10895 @return KErrNone if cleanup successful, otherwise |
|
10896 @see CUnitTest::RunError() |
|
10897 @pre CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest is fully constructed, and initialized. |
|
10898 @post The object has been restored to a sensible state. |
|
10899 */ |
|
10900 inline TInt RunError(TInt aError); |
|
10901 |
|
10902 /** |
|
10903 @fn ~CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest() |
|
10904 Intended Usage : Standard Destructor. |
|
10905 Error Condition : None. |
|
10906 @since 7.0 |
|
10907 @pre CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest is fully constructed. |
|
10908 @post CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest is fully destroyed. |
|
10909 */ |
|
10910 ~CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest(); |
|
10911 |
|
10912 private: |
|
10913 /** |
|
10914 @fn CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10915 MUnitTestObserver& aObserver) |
|
10916 Intended Usage : Default constructor. |
|
10917 Error Condition : None. |
|
10918 @since 7.0 |
|
10919 @param aDataLogger The output logging object. |
|
10920 @param aObserver The observer of this UnitTest. |
|
10921 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
10922 @pre None. |
|
10923 @post CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest is fully constructed. |
|
10924 */ |
|
10925 inline CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
10926 MUnitTestObserver& aObserver); |
|
10927 |
|
10928 /** |
|
10929 @fn void ConstructL() |
|
10930 Intended Usage : Second phase of safe two phase construction, |
|
10931 to complete the object initialisation. |
|
10932 Error Condition : Leaves with an error code. |
|
10933 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
10934 @since 7.0 |
|
10935 @return None |
|
10936 @pre CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest is fully constructed. |
|
10937 @post CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest is fully initialized. |
|
10938 */ |
|
10939 void ConstructL(); |
|
10940 |
|
10941 /** |
|
10942 The context of the Unit Test. |
|
10943 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
10944 */ |
|
10945 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
10946 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
10947 /* C'tor, d'tor, and method transition validators */ |
|
10948 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
10949 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iContentEncodingMultiHeaderValidator; |
|
10950 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
10951 }; // CWspHeaderWriter_ContentEncodingMultiHeader_UnitTest |
|
10952 |
|
10953 // ______________________________________________________________________________ |
|
10954 // |
|
10955 /** |
|
10956 @internal |
|
10957 @class CWspHeaderWriter_UnknownHeader_UnitTest |
|
10958 @Depends CWspHeaderWriter & CUnitTest |
|
10959 |
|
10960 Comments : Unit Test for UnknownHeader on CWspHeaderWriter, the class under test. |
|
10961 */ |
|
10962 class CWspHeaderWriter_UnknownHeader_UnitTest : public CUnitTest |
|
10963 { |
|
10964 public: |
|
10965 /** |
|
10966 @fn NewL(CDataLogger& aDataLogger, |
|
10967 MUnitTestObserver& aObserver) |
|
10968 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
10969 cleanup stack. |
|
10970 Error Condition : Leaves with the error code. |
|
10971 @exceptions KErrNoMemory |
|
10972 @since 7.0 |
|
10973 @param aDataLogger The output logging object. |
|
10974 @param aObserver The observer of this UnitTest. |
|
10975 @return CWspHeaderWriter_UnknownHeader_UnitTest* The constructed object. |
|
10976 @pre None. |
|
10977 @post CWspHeaderWriter_UnknownHeader_UnitTest is fully constructed, and initialized. |
|
10978 */ |
|
10979 static CWspHeaderWriter_UnknownHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
10980 MUnitTestObserver& aObserver); |
|
10981 |
|
10982 /** |
|
10983 @fn RunError(TInt aError) |
|
10984 Intended Usage : Intercept the panic caused by a RunL leave, |
|
10985 to restore the CWspHeaderWriter_TETrailers_UnitTest |
|
10986 object to a sensible state. |
|
10987 (called by the Active Scheduler immediately before the Panic). |
|
10988 Error Condition : @see CUnitTest::RunError(). |
|
10989 @since 7.0 |
|
10990 @return KErrNone if cleanup successful, otherwise |
|
10991 @see CUnitTest::RunError() |
|
10992 @pre CWspHeaderWriter_UnknownHeader_UnitTest is fully constructed, and initialized. |
|
10993 @post The object has been restored to a sensible state. |
|
10994 */ |
|
10995 inline TInt RunError(TInt aError); |
|
10996 |
|
10997 /** |
|
10998 @fn ~CWspHeaderWriter_UnknownHeader_UnitTest() |
|
10999 Intended Usage : Standard Destructor. |
|
11000 Error Condition : None. |
|
11001 @since 7.0 |
|
11002 @pre CWspHeaderWriter_UnknownHeader_UnitTest is fully constructed. |
|
11003 @post CWspHeaderWriter_UnknownHeader_UnitTest is fully destroyed. |
|
11004 */ |
|
11005 ~CWspHeaderWriter_UnknownHeader_UnitTest(); |
|
11006 |
|
11007 private: |
|
11008 /** |
|
11009 @fn CWspHeaderWriter_UnknownHeader_UnitTest(CDataLogger& aDataLogger, |
|
11010 MUnitTestObserver& aObserver) |
|
11011 Intended Usage : Default constructor. |
|
11012 Error Condition : None. |
|
11013 @since 7.0 |
|
11014 @param aDataLogger The output logging object. |
|
11015 @param aObserver The observer of this UnitTest. |
|
11016 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
11017 @pre None. |
|
11018 @post CWspHeaderWriter_UnknownHeader_UnitTest is fully constructed. |
|
11019 */ |
|
11020 inline CWspHeaderWriter_UnknownHeader_UnitTest(CDataLogger& aDataLogger, |
|
11021 MUnitTestObserver& aObserver); |
|
11022 |
|
11023 /** |
|
11024 @fn void ConstructL() |
|
11025 Intended Usage : Second phase of safe two phase construction, |
|
11026 to complete the object initialisation. |
|
11027 Error Condition : Leaves with an error code. |
|
11028 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
11029 @since 7.0 |
|
11030 @return None |
|
11031 @pre CWspHeaderWriter_UnknownHeader_UnitTest is fully constructed. |
|
11032 @post CWspHeaderWriter_UnknownHeader_UnitTest is fully initialized. |
|
11033 */ |
|
11034 void ConstructL(); |
|
11035 |
|
11036 /** |
|
11037 The context of the Unit Test. |
|
11038 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
11039 */ |
|
11040 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
11041 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
11042 /* C'tor, d'tor, and method transition validators */ |
|
11043 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
11044 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iUnknownHeaderValidator; |
|
11045 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
11046 }; // CWspHeaderWriter_UnknownHeader_UnitTest |
|
11047 |
|
11048 // ______________________________________________________________________________ |
|
11049 // |
|
11050 /** |
|
11051 @internal |
|
11052 @class CWspHeaderWriter_UnknownNullHeader_UnitTest |
|
11053 @Depends CWspHeaderWriter & CUnitTest |
|
11054 |
|
11055 Comments : Unit Test for UnknownNullHeader on CWspHeaderWriter, the class under test. |
|
11056 */ |
|
11057 class CWspHeaderWriter_UnknownNullHeader_UnitTest : public CUnitTest |
|
11058 { |
|
11059 public: |
|
11060 /** |
|
11061 @fn NewL(CDataLogger& aDataLogger, |
|
11062 MUnitTestObserver& aObserver) |
|
11063 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
11064 cleanup stack. |
|
11065 Error Condition : Leaves with the error code. |
|
11066 @exceptions KErrNoMemory |
|
11067 @since 7.0 |
|
11068 @param aDataLogger The output logging object. |
|
11069 @param aObserver The observer of this UnitTest. |
|
11070 @return CWspHeaderWriter_UnknownNullHeader_UnitTest* The constructed object. |
|
11071 @pre None. |
|
11072 @post CWspHeaderWriter_UnknownNullHeader_UnitTest is fully constructed, and initialized. |
|
11073 */ |
|
11074 static CWspHeaderWriter_UnknownNullHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
11075 MUnitTestObserver& aObserver); |
|
11076 |
|
11077 /** |
|
11078 @fn RunError(TInt aError) |
|
11079 Intended Usage : Intercept the panic caused by a RunL leave, |
|
11080 to restore the CWspHeaderWriter_TETrailers_UnitTest |
|
11081 object to a sensible state. |
|
11082 (called by the Active Scheduler immediately before the Panic). |
|
11083 Error Condition : @see CUnitTest::RunError(). |
|
11084 @since 7.0 |
|
11085 @return KErrNone if cleanup successful, otherwise |
|
11086 @see CUnitTest::RunError() |
|
11087 @pre CWspHeaderWriter_UnknownNullHeader_UnitTest is fully constructed, and initialized. |
|
11088 @post The object has been restored to a sensible state. |
|
11089 */ |
|
11090 inline TInt RunError(TInt aError); |
|
11091 |
|
11092 /** |
|
11093 @fn ~CWspHeaderWriter_UnknownHeader_UnitTest() |
|
11094 Intended Usage : Standard Destructor. |
|
11095 Error Condition : None. |
|
11096 @since 7.0 |
|
11097 @pre CWspHeaderWriter_UnknownNullHeader_UnitTest is fully constructed. |
|
11098 @post CWspHeaderWriter_UnknownNullHeader_UnitTest is fully destroyed. |
|
11099 */ |
|
11100 ~CWspHeaderWriter_UnknownNullHeader_UnitTest(); |
|
11101 |
|
11102 private: |
|
11103 /** |
|
11104 @fn CWspHeaderWriter_UnknownNullHeader_UnitTest(CDataLogger& aDataLogger, |
|
11105 MUnitTestObserver& aObserver) |
|
11106 Intended Usage : Default constructor. |
|
11107 Error Condition : None. |
|
11108 @since 7.0 |
|
11109 @param aDataLogger The output logging object. |
|
11110 @param aObserver The observer of this UnitTest. |
|
11111 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
11112 @pre None. |
|
11113 @post CWspHeaderWriter_UnknownNullHeader_UnitTest is fully constructed. |
|
11114 */ |
|
11115 inline CWspHeaderWriter_UnknownNullHeader_UnitTest(CDataLogger& aDataLogger, |
|
11116 MUnitTestObserver& aObserver); |
|
11117 |
|
11118 /** |
|
11119 @fn void ConstructL() |
|
11120 Intended Usage : Second phase of safe two phase construction, |
|
11121 to complete the object initialisation. |
|
11122 Error Condition : Leaves with an error code. |
|
11123 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
11124 @since 7.0 |
|
11125 @return None |
|
11126 @pre CWspHeaderWriter_UnknownNullHeader_UnitTest is fully constructed. |
|
11127 @post CWspHeaderWriter_UnknownNullHeader_UnitTest is fully initialized. |
|
11128 */ |
|
11129 void ConstructL(); |
|
11130 |
|
11131 /** |
|
11132 The context of the Unit Test. |
|
11133 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
11134 */ |
|
11135 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
11136 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
11137 /* C'tor, d'tor, and method transition validators */ |
|
11138 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
11139 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iUnknownNullHeaderValidator; |
|
11140 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
11141 }; // CWspHeaderWriter_UnknownNullHeader_UnitTest |
|
11142 |
|
11143 // ______________________________________________________________________________ |
|
11144 // |
|
11145 /** |
|
11146 @internal |
|
11147 @class CWspHeaderWriter_MultiUnknownHeader_UnitTest |
|
11148 @Depends CWspHeaderWriter & CUnitTest |
|
11149 |
|
11150 Comments : Unit Test for MultiUnknownHeader on CWspHeaderWriter, the class under test. |
|
11151 */ |
|
11152 class CWspHeaderWriter_MultiUnknownHeader_UnitTest : public CUnitTest |
|
11153 { |
|
11154 public: |
|
11155 /** |
|
11156 @fn NewL(CDataLogger& aDataLogger, |
|
11157 MUnitTestObserver& aObserver) |
|
11158 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
11159 cleanup stack. |
|
11160 Error Condition : Leaves with the error code. |
|
11161 @exceptions KErrNoMemory |
|
11162 @since 7.0 |
|
11163 @param aDataLogger The output logging object. |
|
11164 @param aObserver The observer of this UnitTest. |
|
11165 @return CWspHeaderWriter_MultiUnknownHeader_UnitTest* The constructed object. |
|
11166 @pre None. |
|
11167 @post CWspHeaderWriter_MultiUnknownHeader_UnitTest is fully constructed, and initialized. |
|
11168 */ |
|
11169 static CWspHeaderWriter_MultiUnknownHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
11170 MUnitTestObserver& aObserver); |
|
11171 |
|
11172 /** |
|
11173 @fn RunError(TInt aError) |
|
11174 Intended Usage : Intercept the panic caused by a RunL leave, |
|
11175 to restore the CWspHeaderWriter_TETrailers_UnitTest |
|
11176 object to a sensible state. |
|
11177 (called by the Active Scheduler immediately before the Panic). |
|
11178 Error Condition : @see CUnitTest::RunError(). |
|
11179 @since 7.0 |
|
11180 @return KErrNone if cleanup successful, otherwise |
|
11181 @see CUnitTest::RunError() |
|
11182 @pre CWspHeaderWriter_UnknownNullHeader_UnitTest is fully constructed, and initialized. |
|
11183 @post The object has been restored to a sensible state. |
|
11184 */ |
|
11185 inline TInt RunError(TInt aError); |
|
11186 |
|
11187 /** |
|
11188 @fn ~CWspHeaderWriter_MultiUnknownHeader_UnitTest() |
|
11189 Intended Usage : Standard Destructor. |
|
11190 Error Condition : None. |
|
11191 @since 7.0 |
|
11192 @pre CWspHeaderWriter_MultiUnknownHeader_UnitTest is fully constructed. |
|
11193 @post CWspHeaderWriter_MultiUnknownHeader_UnitTest is fully destroyed. |
|
11194 */ |
|
11195 ~CWspHeaderWriter_MultiUnknownHeader_UnitTest(); |
|
11196 |
|
11197 private: |
|
11198 /** |
|
11199 @fn CWspHeaderWriter_MultiUnknownHeader_UnitTest(CDataLogger& aDataLogger, |
|
11200 MUnitTestObserver& aObserver) |
|
11201 Intended Usage : Default constructor. |
|
11202 Error Condition : None. |
|
11203 @since 7.0 |
|
11204 @param aDataLogger The output logging object. |
|
11205 @param aObserver The observer of this UnitTest. |
|
11206 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
11207 @pre None. |
|
11208 @post CWspHeaderWriter_MultiUnknownHeader_UnitTest is fully constructed. |
|
11209 */ |
|
11210 inline CWspHeaderWriter_MultiUnknownHeader_UnitTest(CDataLogger& aDataLogger, |
|
11211 MUnitTestObserver& aObserver); |
|
11212 |
|
11213 /** |
|
11214 @fn void ConstructL() |
|
11215 Intended Usage : Second phase of safe two phase construction, |
|
11216 to complete the object initialisation. |
|
11217 Error Condition : Leaves with an error code. |
|
11218 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
11219 @since 7.0 |
|
11220 @return None |
|
11221 @pre CWspHeaderWriter_MultiUnknownHeader_UnitTest is fully constructed. |
|
11222 @post CWspHeaderWriter_MultiUnknownHeader_UnitTest is fully initialized. |
|
11223 */ |
|
11224 void ConstructL(); |
|
11225 |
|
11226 /** |
|
11227 The context of the Unit Test. |
|
11228 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
11229 */ |
|
11230 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
11231 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
11232 /* C'tor, d'tor, and method transition validators */ |
|
11233 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
11234 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iMultiUnknownHeaderValidator; |
|
11235 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
11236 }; // CWspHeaderWriter_MultiUnknownHeader_UnitTest |
|
11237 |
|
11238 // ______________________________________________________________________________ |
|
11239 // |
|
11240 /** |
|
11241 @internal |
|
11242 @class CWspHeaderWriter_Profile_UnitTest |
|
11243 @Depends CWspHeaderWriter & CUnitTest |
|
11244 |
|
11245 Comments : Unit Test for Profile on CWspHeaderWriter, the class under test. |
|
11246 */ |
|
11247 class CWspHeaderWriter_Profile_UnitTest : public CUnitTest |
|
11248 { |
|
11249 public: |
|
11250 /** |
|
11251 @fn NewL(CDataLogger& aDataLogger, |
|
11252 MUnitTestObserver& aObserver) |
|
11253 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
11254 cleanup stack. |
|
11255 Error Condition : Leaves with the error code. |
|
11256 @exceptions KErrNoMemory |
|
11257 @since 7.0 |
|
11258 @param aDataLogger The output logging object. |
|
11259 @param aObserver The observer of this UnitTest. |
|
11260 @return CWspHeaderWriter_Profile_UnitTest* The constructed object. |
|
11261 @pre None. |
|
11262 @post CWspHeaderWriter_Profile_UnitTest is fully constructed, and initialized. |
|
11263 */ |
|
11264 static CWspHeaderWriter_Profile_UnitTest* NewL(CDataLogger& aDataLogger, |
|
11265 MUnitTestObserver& aObserver); |
|
11266 |
|
11267 /** |
|
11268 @fn RunError(TInt aError) |
|
11269 Intended Usage : Intercept the panic caused by a RunL leave, |
|
11270 to restore the CWspHeaderWriter_Profile_UnitTest |
|
11271 object to a sensible state. |
|
11272 (called by the Active Scheduler immediately before the Panic). |
|
11273 Error Condition : @see CUnitTest::RunError(). |
|
11274 @since 7.0 |
|
11275 @return KErrNone if cleanup successful, otherwise |
|
11276 @see CUnitTest::RunError() |
|
11277 @pre CWspHeaderWriter_Profile_UnitTest is fully constructed, and initialized. |
|
11278 @post The object has been restored to a sensible state. |
|
11279 */ |
|
11280 inline TInt RunError(TInt aError); |
|
11281 |
|
11282 /** |
|
11283 @fn ~CWspHeaderWriter_Profile_UnitTest() |
|
11284 Intended Usage : Standard Destructor. |
|
11285 Error Condition : None. |
|
11286 @since 7.0 |
|
11287 @pre CWspHeaderWriter_Profile_UnitTest is fully constructed. |
|
11288 @post CWspHeaderWriter_Profile_UnitTest is fully destroyed. |
|
11289 */ |
|
11290 ~CWspHeaderWriter_Profile_UnitTest(); |
|
11291 |
|
11292 private: |
|
11293 /** |
|
11294 @fn CWspHeaderWriter_Profile_UnitTest(CDataLogger& aDataLogger, |
|
11295 MUnitTestObserver& aObserver) |
|
11296 Intended Usage : Default constructor. |
|
11297 Error Condition : None. |
|
11298 @since 7.0 |
|
11299 @param aDataLogger The output logging object. |
|
11300 @param aObserver The observer of this UnitTest. |
|
11301 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
11302 @pre None. |
|
11303 @post CWspHeaderWriter_Profile_UnitTest is fully constructed. |
|
11304 */ |
|
11305 inline CWspHeaderWriter_Profile_UnitTest(CDataLogger& aDataLogger, |
|
11306 MUnitTestObserver& aObserver); |
|
11307 |
|
11308 /** |
|
11309 @fn void ConstructL() |
|
11310 Intended Usage : Second phase of safe two phase construction, |
|
11311 to complete the object initialisation. |
|
11312 Error Condition : Leaves with an error code. |
|
11313 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
11314 @since 7.0 |
|
11315 @return None |
|
11316 @pre CWspHeaderWriter_Profile_UnitTest is fully constructed. |
|
11317 @post CWspHeaderWriter_Profile_UnitTest is fully initialized. |
|
11318 */ |
|
11319 void ConstructL(); |
|
11320 |
|
11321 /** |
|
11322 The context of the Unit Test. |
|
11323 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
11324 */ |
|
11325 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
11326 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
11327 /* C'tor, d'tor, and method transition validators */ |
|
11328 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
11329 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iProfileValidator; |
|
11330 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
11331 }; // CWspHeaderWriter_Profile_UnitTest |
|
11332 |
|
11333 // ______________________________________________________________________________ |
|
11334 // |
|
11335 /** |
|
11336 @internal |
|
11337 @class CWspHeaderWriter_ProfileNullText_UnitTest |
|
11338 @Depends CWspHeaderWriter & CUnitTest |
|
11339 |
|
11340 Comments : Unit Test for ProfileNullText on CWspHeaderWriter, the class under test. |
|
11341 */ |
|
11342 class CWspHeaderWriter_ProfileNullText_UnitTest : public CUnitTest |
|
11343 { |
|
11344 public: |
|
11345 /** |
|
11346 @fn NewL(CDataLogger& aDataLogger, |
|
11347 MUnitTestObserver& aObserver) |
|
11348 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
11349 cleanup stack. |
|
11350 Error Condition : Leaves with the error code. |
|
11351 @exceptions KErrNoMemory |
|
11352 @since 7.0 |
|
11353 @param aDataLogger The output logging object. |
|
11354 @param aObserver The observer of this UnitTest. |
|
11355 @return CWspHeaderWriter_ProfileNullText_UnitTest* The constructed object. |
|
11356 @pre None. |
|
11357 @post CWspHeaderWriter_ProfileNullText_UnitTest is fully constructed, and initialized. |
|
11358 */ |
|
11359 static CWspHeaderWriter_ProfileNullText_UnitTest* NewL(CDataLogger& aDataLogger, |
|
11360 MUnitTestObserver& aObserver); |
|
11361 |
|
11362 /** |
|
11363 @fn RunError(TInt aError) |
|
11364 Intended Usage : Intercept the panic caused by a RunL leave, |
|
11365 to restore the CWspHeaderWriter_ProfileNullText_UnitTest |
|
11366 object to a sensible state. |
|
11367 (called by the Active Scheduler immediately before the Panic). |
|
11368 Error Condition : @see CUnitTest::RunError(). |
|
11369 @since 7.0 |
|
11370 @return KErrNone if cleanup successful, otherwise |
|
11371 @see CUnitTest::RunError() |
|
11372 @pre CWspHeaderWriter_ProfileNullText_UnitTest is fully constructed, and initialized. |
|
11373 @post The object has been restored to a sensible state. |
|
11374 */ |
|
11375 inline TInt RunError(TInt aError); |
|
11376 |
|
11377 /** |
|
11378 @fn ~CWspHeaderWriter_ProfileNullText_UnitTest() |
|
11379 Intended Usage : Standard Destructor. |
|
11380 Error Condition : None. |
|
11381 @since 7.0 |
|
11382 @pre CWspHeaderWriter_ProfileNullText_UnitTest is fully constructed. |
|
11383 @post CWspHeaderWriter_ProfileNullText_UnitTest is fully destroyed. |
|
11384 */ |
|
11385 ~CWspHeaderWriter_ProfileNullText_UnitTest(); |
|
11386 |
|
11387 private: |
|
11388 /** |
|
11389 @fn CWspHeaderWriter_ProfileNullText_UnitTest(CDataLogger& aDataLogger, |
|
11390 MUnitTestObserver& aObserver) |
|
11391 Intended Usage : Default constructor. |
|
11392 Error Condition : None. |
|
11393 @since 7.0 |
|
11394 @param aDataLogger The output logging object. |
|
11395 @param aObserver The observer of this UnitTest. |
|
11396 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
11397 @pre None. |
|
11398 @post CWspHeaderWriter_ProfileNullText_UnitTest is fully constructed. |
|
11399 */ |
|
11400 inline CWspHeaderWriter_ProfileNullText_UnitTest(CDataLogger& aDataLogger, |
|
11401 MUnitTestObserver& aObserver); |
|
11402 |
|
11403 /** |
|
11404 @fn void ConstructL() |
|
11405 Intended Usage : Second phase of safe two phase construction, |
|
11406 to complete the object initialisation. |
|
11407 Error Condition : Leaves with an error code. |
|
11408 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
11409 @since 7.0 |
|
11410 @return None |
|
11411 @pre CWspHeaderWriter_ProfileNullText_UnitTest is fully constructed. |
|
11412 @post CWspHeaderWriter_ProfileNullText_UnitTest is fully initialized. |
|
11413 */ |
|
11414 void ConstructL(); |
|
11415 |
|
11416 /** |
|
11417 The context of the Unit Test. |
|
11418 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
11419 */ |
|
11420 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
11421 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
11422 /* C'tor, d'tor, and method transition validators */ |
|
11423 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
11424 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iProfileNullTextValidator; |
|
11425 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
11426 }; // CWspHeaderWriter_ProfileNullText_UnitTest |
|
11427 |
|
11428 // ______________________________________________________________________________ |
|
11429 // |
|
11430 /** |
|
11431 @internal |
|
11432 @class CWspHeaderWriter_ProfileMalformed_UnitTest |
|
11433 @Depends CWspHeaderWriter & CUnitTest |
|
11434 |
|
11435 Comments : Unit Test for ProfileMalformed on CWspHeaderWriter, the class under test. |
|
11436 */ |
|
11437 class CWspHeaderWriter_ProfileMalformed_UnitTest : public CUnitTest |
|
11438 { |
|
11439 public: |
|
11440 /** |
|
11441 @fn NewL(CDataLogger& aDataLogger, |
|
11442 MUnitTestObserver& aObserver) |
|
11443 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
11444 cleanup stack. |
|
11445 Error Condition : Leaves with the error code. |
|
11446 @exceptions KErrNoMemory |
|
11447 @since 7.0 |
|
11448 @param aDataLogger The output logging object. |
|
11449 @param aObserver The observer of this UnitTest. |
|
11450 @return CWspHeaderWriter_ProfileMalformed_UnitTest* The constructed object. |
|
11451 @pre None. |
|
11452 @post CWspHeaderWriter_ProfileMalformed_UnitTest is fully constructed, and initialized. |
|
11453 */ |
|
11454 static CWspHeaderWriter_ProfileMalformed_UnitTest* NewL(CDataLogger& aDataLogger, |
|
11455 MUnitTestObserver& aObserver); |
|
11456 |
|
11457 /** |
|
11458 @fn RunError(TInt aError) |
|
11459 Intended Usage : Intercept the panic caused by a RunL leave, |
|
11460 to restore the CWspHeaderWriter_ProfileMalformed_UnitTest |
|
11461 object to a sensible state. |
|
11462 (called by the Active Scheduler immediately before the Panic). |
|
11463 Error Condition : @see CUnitTest::RunError(). |
|
11464 @since 7.0 |
|
11465 @return KErrNone if cleanup successful, otherwise |
|
11466 @see CUnitTest::RunError() |
|
11467 @pre CWspHeaderWriter_ProfileMalformed_UnitTest is fully constructed, and initialized. |
|
11468 @post The object has been restored to a sensible state. |
|
11469 */ |
|
11470 inline TInt RunError(TInt aError); |
|
11471 |
|
11472 /** |
|
11473 @fn ~CWspHeaderWriter_ProfileMalformed_UnitTest() |
|
11474 Intended Usage : Standard Destructor. |
|
11475 Error Condition : None. |
|
11476 @since 7.0 |
|
11477 @pre CWspHeaderWriter_ProfileMalformed_UnitTest is fully constructed. |
|
11478 @post CWspHeaderWriter_ProfileMalformed_UnitTest is fully destroyed. |
|
11479 */ |
|
11480 ~CWspHeaderWriter_ProfileMalformed_UnitTest(); |
|
11481 |
|
11482 private: |
|
11483 /** |
|
11484 @fn CWspHeaderWriter_ProfileMalformed_UnitTest(CDataLogger& aDataLogger, |
|
11485 MUnitTestObserver& aObserver) |
|
11486 Intended Usage : Default constructor. |
|
11487 Error Condition : None. |
|
11488 @since 7.0 |
|
11489 @param aDataLogger The output logging object. |
|
11490 @param aObserver The observer of this UnitTest. |
|
11491 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
11492 @pre None. |
|
11493 @post CWspHeaderWriter_ProfileMalformed_UnitTest is fully constructed. |
|
11494 */ |
|
11495 inline CWspHeaderWriter_ProfileMalformed_UnitTest(CDataLogger& aDataLogger, |
|
11496 MUnitTestObserver& aObserver); |
|
11497 |
|
11498 /** |
|
11499 @fn void ConstructL() |
|
11500 Intended Usage : Second phase of safe two phase construction, |
|
11501 to complete the object initialisation. |
|
11502 Error Condition : Leaves with an error code. |
|
11503 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
11504 @since 7.0 |
|
11505 @return None |
|
11506 @pre CWspHeaderWriter_ProfileMalformed_UnitTest is fully constructed. |
|
11507 @post CWspHeaderWriter_ProfileMalformed_UnitTest is fully initialized. |
|
11508 */ |
|
11509 void ConstructL(); |
|
11510 |
|
11511 /** |
|
11512 The context of the Unit Test. |
|
11513 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
11514 */ |
|
11515 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
11516 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
11517 /* C'tor, d'tor, and method transition validators */ |
|
11518 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
11519 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iProfileMalformedValidator; |
|
11520 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
11521 }; // CWspHeaderWriter_ProfileMalformed_UnitTest |
|
11522 |
|
11523 // ______________________________________________________________________________ |
|
11524 // |
|
11525 /** |
|
11526 @internal |
|
11527 @class CWspHeaderWriter_ProfileDiffShort_UnitTest |
|
11528 @Depends CWspHeaderWriter & CUnitTest |
|
11529 |
|
11530 Comments : Unit Test for ProfileDiffShort on CWspHeaderWriter, the class under test. |
|
11531 */ |
|
11532 class CWspHeaderWriter_ProfileDiffShort_UnitTest : public CUnitTest |
|
11533 { |
|
11534 public: |
|
11535 /** |
|
11536 @fn NewL(CDataLogger& aDataLogger, |
|
11537 MUnitTestObserver& aObserver) |
|
11538 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
11539 cleanup stack. |
|
11540 Error Condition : Leaves with the error code. |
|
11541 @exceptions KErrNoMemory |
|
11542 @since 7.0 |
|
11543 @param aDataLogger The output logging object. |
|
11544 @param aObserver The observer of this UnitTest. |
|
11545 @return CWspHeaderWriter_ProfileDiffShort_UnitTest* The constructed object. |
|
11546 @pre None. |
|
11547 @post CWspHeaderWriter_ProfileDiffShort_UnitTest is fully constructed, and initialized. |
|
11548 */ |
|
11549 static CWspHeaderWriter_ProfileDiffShort_UnitTest* NewL(CDataLogger& aDataLogger, |
|
11550 MUnitTestObserver& aObserver); |
|
11551 |
|
11552 /** |
|
11553 @fn RunError(TInt aError) |
|
11554 Intended Usage : Intercept the panic caused by a RunL leave, |
|
11555 to restore the CWspHeaderWriter_ProfileDiffShort_UnitTest |
|
11556 object to a sensible state. |
|
11557 (called by the Active Scheduler immediately before the Panic). |
|
11558 Error Condition : @see CUnitTest::RunError(). |
|
11559 @since 7.0 |
|
11560 @return KErrNone if cleanup successful, otherwise |
|
11561 @see CUnitTest::RunError() |
|
11562 @pre CWspHeaderWriter_ProfileDiffShort_UnitTest is fully constructed, and initialized. |
|
11563 @post The object has been restored to a sensible state. |
|
11564 */ |
|
11565 inline TInt RunError(TInt aError); |
|
11566 |
|
11567 /** |
|
11568 @fn ~CWspHeaderWriter_ProfileDiffShort_UnitTest() |
|
11569 Intended Usage : Standard Destructor. |
|
11570 Error Condition : None. |
|
11571 @since 7.0 |
|
11572 @pre CWspHeaderWriter_ProfileDiffShort_UnitTest is fully constructed. |
|
11573 @post CWspHeaderWriter_ProfileDiffShort_UnitTest is fully destroyed. |
|
11574 */ |
|
11575 ~CWspHeaderWriter_ProfileDiffShort_UnitTest(); |
|
11576 |
|
11577 private: |
|
11578 /** |
|
11579 @fn CWspHeaderWriter_ProfileDiffShort_UnitTest(CDataLogger& aDataLogger, |
|
11580 MUnitTestObserver& aObserver) |
|
11581 Intended Usage : Default constructor. |
|
11582 Error Condition : None. |
|
11583 @since 7.0 |
|
11584 @param aDataLogger The output logging object. |
|
11585 @param aObserver The observer of this UnitTest. |
|
11586 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
11587 @pre None. |
|
11588 @post CWspHeaderWriter_ProfileDiffShort_UnitTest is fully constructed. |
|
11589 */ |
|
11590 inline CWspHeaderWriter_ProfileDiffShort_UnitTest(CDataLogger& aDataLogger, |
|
11591 MUnitTestObserver& aObserver); |
|
11592 |
|
11593 /** |
|
11594 @fn void ConstructL() |
|
11595 Intended Usage : Second phase of safe two phase construction, |
|
11596 to complete the object initialisation. |
|
11597 Error Condition : Leaves with an error code. |
|
11598 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
11599 @since 7.0 |
|
11600 @return None |
|
11601 @pre CWspHeaderWriter_ProfileDiffShort_UnitTest is fully constructed. |
|
11602 @post CWspHeaderWriter_ProfileDiffShort_UnitTest is fully initialized. |
|
11603 */ |
|
11604 void ConstructL(); |
|
11605 |
|
11606 /** |
|
11607 The context of the Unit Test. |
|
11608 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
11609 */ |
|
11610 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
11611 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
11612 /* C'tor, d'tor, and method transition validators */ |
|
11613 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
11614 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iProfileDiffShortValidator; |
|
11615 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
11616 }; // CWspHeaderWriter_ProfileDiffShort_UnitTest |
|
11617 |
|
11618 // ______________________________________________________________________________ |
|
11619 // |
|
11620 /** |
|
11621 @internal |
|
11622 @class CWspHeaderWriter_ProfileDiffLong_UnitTest |
|
11623 @Depends CWspHeaderWriter & CUnitTest |
|
11624 |
|
11625 Comments : Unit Test for ProfileDiffLong on CWspHeaderWriter, the class under test. |
|
11626 */ |
|
11627 class CWspHeaderWriter_ProfileDiffLong_UnitTest : public CUnitTest |
|
11628 { |
|
11629 public: |
|
11630 /** |
|
11631 @fn NewL(CDataLogger& aDataLogger, |
|
11632 MUnitTestObserver& aObserver) |
|
11633 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
11634 cleanup stack. |
|
11635 Error Condition : Leaves with the error code. |
|
11636 @exceptions KErrNoMemory |
|
11637 @since 7.0 |
|
11638 @param aDataLogger The output logging object. |
|
11639 @param aObserver The observer of this UnitTest. |
|
11640 @return CWspHeaderWriter_ProfileDiffLong_UnitTest* The constructed object. |
|
11641 @pre None. |
|
11642 @post CWspHeaderWriter_ProfileDiffLong_UnitTest is fully constructed, and initialized. |
|
11643 */ |
|
11644 static CWspHeaderWriter_ProfileDiffLong_UnitTest* NewL(CDataLogger& aDataLogger, |
|
11645 MUnitTestObserver& aObserver); |
|
11646 |
|
11647 /** |
|
11648 @fn RunError(TInt aError) |
|
11649 Intended Usage : Intercept the panic caused by a RunL leave, |
|
11650 to restore the CWspHeaderWriter_ProfileDiffLong_UnitTest |
|
11651 object to a sensible state. |
|
11652 (called by the Active Scheduler immediately before the Panic). |
|
11653 Error Condition : @see CUnitTest::RunError(). |
|
11654 @since 7.0 |
|
11655 @return KErrNone if cleanup successful, otherwise |
|
11656 @see CUnitTest::RunError() |
|
11657 @pre CWspHeaderWriter_ProfileDiffLong_UnitTest is fully constructed, and initialized. |
|
11658 @post The object has been restored to a sensible state. |
|
11659 */ |
|
11660 inline TInt RunError(TInt aError); |
|
11661 |
|
11662 /** |
|
11663 @fn ~CWspHeaderWriter_ProfileDiffLong_UnitTest() |
|
11664 Intended Usage : Standard Destructor. |
|
11665 Error Condition : None. |
|
11666 @since 7.0 |
|
11667 @pre CWspHeaderWriter_ProfileDiffLong_UnitTest is fully constructed. |
|
11668 @post CWspHeaderWriter_ProfileDiffLong_UnitTest is fully destroyed. |
|
11669 */ |
|
11670 ~CWspHeaderWriter_ProfileDiffLong_UnitTest(); |
|
11671 |
|
11672 private: |
|
11673 /** |
|
11674 @fn CWspHeaderWriter_ProfileDiffLong_UnitTest(CDataLogger& aDataLogger, |
|
11675 MUnitTestObserver& aObserver) |
|
11676 Intended Usage : Default constructor. |
|
11677 Error Condition : None. |
|
11678 @since 7.0 |
|
11679 @param aDataLogger The output logging object. |
|
11680 @param aObserver The observer of this UnitTest. |
|
11681 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
11682 @pre None. |
|
11683 @post CWspHeaderWriter_ProfileDiffLong_UnitTest is fully constructed. |
|
11684 */ |
|
11685 inline CWspHeaderWriter_ProfileDiffLong_UnitTest(CDataLogger& aDataLogger, |
|
11686 MUnitTestObserver& aObserver); |
|
11687 |
|
11688 /** |
|
11689 @fn void ConstructL() |
|
11690 Intended Usage : Second phase of safe two phase construction, |
|
11691 to complete the object initialisation. |
|
11692 Error Condition : Leaves with an error code. |
|
11693 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
11694 @since 7.0 |
|
11695 @return None |
|
11696 @pre CWspHeaderWriter_ProfileDiffLong_UnitTest is fully constructed. |
|
11697 @post CWspHeaderWriter_ProfileDiffLong_UnitTest is fully initialized. |
|
11698 */ |
|
11699 void ConstructL(); |
|
11700 |
|
11701 /** |
|
11702 The context of the Unit Test. |
|
11703 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
11704 */ |
|
11705 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
11706 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
11707 /* C'tor, d'tor, and method transition validators */ |
|
11708 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
11709 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iProfileDiffLongValidator; |
|
11710 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
11711 }; // CWspHeaderWriter_ProfileDiffLong_UnitTest |
|
11712 |
|
11713 // ______________________________________________________________________________ |
|
11714 // |
|
11715 /** |
|
11716 @internal |
|
11717 @class CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest |
|
11718 @Depends CWspHeaderWriter & CUnitTest |
|
11719 |
|
11720 Comments : Unit Test for ProfileDiffMultiHeader on CWspHeaderWriter, the class under test. |
|
11721 */ |
|
11722 class CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest : public CUnitTest |
|
11723 { |
|
11724 public: |
|
11725 /** |
|
11726 @fn NewL(CDataLogger& aDataLogger, |
|
11727 MUnitTestObserver& aObserver) |
|
11728 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
11729 cleanup stack. |
|
11730 Error Condition : Leaves with the error code. |
|
11731 @exceptions KErrNoMemory |
|
11732 @since 7.0 |
|
11733 @param aDataLogger The output logging object. |
|
11734 @param aObserver The observer of this UnitTest. |
|
11735 @return CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest* The constructed object. |
|
11736 @pre None. |
|
11737 @post CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest is fully constructed, and initialized. |
|
11738 */ |
|
11739 static CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest* NewL(CDataLogger& aDataLogger, |
|
11740 MUnitTestObserver& aObserver); |
|
11741 |
|
11742 /** |
|
11743 @fn RunError(TInt aError) |
|
11744 Intended Usage : Intercept the panic caused by a RunL leave, |
|
11745 to restore the CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest |
|
11746 object to a sensible state. |
|
11747 (called by the Active Scheduler immediately before the Panic). |
|
11748 Error Condition : @see CUnitTest::RunError(). |
|
11749 @since 7.0 |
|
11750 @return KErrNone if cleanup successful, otherwise |
|
11751 @see CUnitTest::RunError() |
|
11752 @pre CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest is fully constructed, and initialized. |
|
11753 @post The object has been restored to a sensible state. |
|
11754 */ |
|
11755 inline TInt RunError(TInt aError); |
|
11756 |
|
11757 /** |
|
11758 @fn ~CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest() |
|
11759 Intended Usage : Standard Destructor. |
|
11760 Error Condition : None. |
|
11761 @since 7.0 |
|
11762 @pre CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest is fully constructed. |
|
11763 @post CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest is fully destroyed. |
|
11764 */ |
|
11765 ~CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest(); |
|
11766 |
|
11767 private: |
|
11768 /** |
|
11769 @fn CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
11770 MUnitTestObserver& aObserver) |
|
11771 Intended Usage : Default constructor. |
|
11772 Error Condition : None. |
|
11773 @since 7.0 |
|
11774 @param aDataLogger The output logging object. |
|
11775 @param aObserver The observer of this UnitTest. |
|
11776 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
11777 @pre None. |
|
11778 @post CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest is fully constructed. |
|
11779 */ |
|
11780 inline CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest(CDataLogger& aDataLogger, |
|
11781 MUnitTestObserver& aObserver); |
|
11782 |
|
11783 /** |
|
11784 @fn void ConstructL() |
|
11785 Intended Usage : Second phase of safe two phase construction, |
|
11786 to complete the object initialisation. |
|
11787 Error Condition : Leaves with an error code. |
|
11788 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
11789 @since 7.0 |
|
11790 @return None |
|
11791 @pre CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest is fully constructed. |
|
11792 @post CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest is fully initialized. |
|
11793 */ |
|
11794 void ConstructL(); |
|
11795 |
|
11796 /** |
|
11797 The context of the Unit Test. |
|
11798 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
11799 */ |
|
11800 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
11801 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
11802 /* C'tor, d'tor, and method transition validators */ |
|
11803 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
11804 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iProfileDiffMultiHeaderValidator; |
|
11805 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
11806 }; // CWspHeaderWriter_ProfileDiffMultiHeader_UnitTest |
|
11807 |
|
11808 |
|
11809 |
|
11810 // ______________________________________________________________________________ |
|
11811 // |
|
11812 /** |
|
11813 @internal |
|
11814 @class CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest |
|
11815 @Depends CWspHeaderWriter & CUnitTest |
|
11816 |
|
11817 Comments : Unit Test for DefectFix_HOL595DR6_1 on CWspHeaderWriter, the class under test. |
|
11818 |
|
11819 Test Case: This is a simple test that sets the current WSP version to 1.2 and tries to |
|
11820 encode a header introduced in 1.3. |
|
11821 */ |
|
11822 class CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest : public CUnitTest |
|
11823 { |
|
11824 public: |
|
11825 /** |
|
11826 @fn NewL(CDataLogger& aDataLogger, |
|
11827 MUnitTestObserver& aObserver) |
|
11828 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
11829 cleanup stack. |
|
11830 Error Condition : Leaves with the error code. |
|
11831 @exceptions KErrNoMemory |
|
11832 @since 7.0 |
|
11833 @param aDataLogger The output logging object. |
|
11834 @param aObserver The observer of this UnitTest. |
|
11835 @return CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest* The constructed object. |
|
11836 @pre None. |
|
11837 @post CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest is fully constructed, and initialized. |
|
11838 */ |
|
11839 static CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest* NewL(CDataLogger& aDataLogger, |
|
11840 MUnitTestObserver& aObserver); |
|
11841 |
|
11842 /** |
|
11843 @fn RunError(TInt aError) |
|
11844 Intended Usage : Intercept the panic caused by a RunL leave, |
|
11845 to restore the CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest |
|
11846 object to a sensible state. |
|
11847 (called by the Active Scheduler immediately before the Panic). |
|
11848 Error Condition : @see CUnitTest::RunError(). |
|
11849 @since 7.0 |
|
11850 @return KErrNone if cleanup successful, otherwise |
|
11851 @see CUnitTest::RunError() |
|
11852 @pre CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest is fully constructed, and initialized. |
|
11853 @post The object has been restored to a sensible state. |
|
11854 */ |
|
11855 inline TInt RunError(TInt aError); |
|
11856 |
|
11857 /** |
|
11858 @fn ~CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest() |
|
11859 Intended Usage : Standard Destructor. |
|
11860 Error Condition : None. |
|
11861 @since 7.0 |
|
11862 @pre CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest is fully constructed. |
|
11863 @post CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest is fully destroyed. |
|
11864 */ |
|
11865 ~CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest(); |
|
11866 |
|
11867 private: |
|
11868 /** |
|
11869 @fn CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest(CDataLogger& aDataLogger, |
|
11870 MUnitTestObserver& aObserver) |
|
11871 Intended Usage : Default constructor. |
|
11872 Error Condition : None. |
|
11873 @since 7.0 |
|
11874 @param aDataLogger The output logging object. |
|
11875 @param aObserver The observer of this UnitTest. |
|
11876 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
11877 @pre None. |
|
11878 @post CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest is fully constructed. |
|
11879 */ |
|
11880 inline CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest(CDataLogger& aDataLogger, |
|
11881 MUnitTestObserver& aObserver); |
|
11882 |
|
11883 /** |
|
11884 @fn void ConstructL() |
|
11885 Intended Usage : Second phase of safe two phase construction, |
|
11886 to complete the object initialisation. |
|
11887 Error Condition : Leaves with an error code. |
|
11888 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
11889 @since 7.0 |
|
11890 @return None |
|
11891 @pre CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest is fully constructed. |
|
11892 @post CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest is fully initialized. |
|
11893 */ |
|
11894 void ConstructL(); |
|
11895 |
|
11896 /** |
|
11897 The context of the Unit Test. |
|
11898 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
11899 */ |
|
11900 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
11901 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
11902 /* C'tor, d'tor, and method transition validators */ |
|
11903 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
11904 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iDefectFix_HOL595DR6_1Validator; |
|
11905 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
11906 }; // CWspHeaderWriter_DefectFix_HOL595DR6_1_UnitTest |
|
11907 |
|
11908 // ______________________________________________________________________________ |
|
11909 // |
|
11910 /** |
|
11911 @internal |
|
11912 @class CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest |
|
11913 @Depends CWspHeaderWriter & CUnitTest |
|
11914 |
|
11915 Comments : Unit Test for DefectFix_HOL595DR6_2 on CWspHeaderWriter, the class under test. |
|
11916 |
|
11917 Test Case: This test case uses the Content-Type header field with WSP v1.4 content-type |
|
11918 value using v1.4 as the current encoding |
|
11919 */ |
|
11920 class CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest : public CUnitTest |
|
11921 { |
|
11922 public: |
|
11923 /** |
|
11924 @fn NewL(CDataLogger& aDataLogger, |
|
11925 MUnitTestObserver& aObserver) |
|
11926 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
11927 cleanup stack. |
|
11928 Error Condition : Leaves with the error code. |
|
11929 @exceptions KErrNoMemory |
|
11930 @since 7.0 |
|
11931 @param aDataLogger The output logging object. |
|
11932 @param aObserver The observer of this UnitTest. |
|
11933 @return CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest* The constructed object. |
|
11934 @pre None. |
|
11935 @post CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest is fully constructed, and initialized. |
|
11936 */ |
|
11937 static CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest* NewL(CDataLogger& aDataLogger, |
|
11938 MUnitTestObserver& aObserver); |
|
11939 |
|
11940 /** |
|
11941 @fn RunError(TInt aError) |
|
11942 Intended Usage : Intercept the panic caused by a RunL leave, |
|
11943 to restore the CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest |
|
11944 object to a sensible state. |
|
11945 (called by the Active Scheduler immediately before the Panic). |
|
11946 Error Condition : @see CUnitTest::RunError(). |
|
11947 @since 7.0 |
|
11948 @return KErrNone if cleanup successful, otherwise |
|
11949 @see CUnitTest::RunError() |
|
11950 @pre CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest is fully constructed, and initialized. |
|
11951 @post The object has been restored to a sensible state. |
|
11952 */ |
|
11953 inline TInt RunError(TInt aError); |
|
11954 |
|
11955 /** |
|
11956 @fn ~CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest() |
|
11957 Intended Usage : Standard Destructor. |
|
11958 Error Condition : None. |
|
11959 @since 7.0 |
|
11960 @pre CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest is fully constructed. |
|
11961 @post CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest is fully destroyed. |
|
11962 */ |
|
11963 ~CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest(); |
|
11964 |
|
11965 private: |
|
11966 /** |
|
11967 @fn CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest(CDataLogger& aDataLogger, |
|
11968 MUnitTestObserver& aObserver) |
|
11969 Intended Usage : Default constructor. |
|
11970 Error Condition : None. |
|
11971 @since 7.0 |
|
11972 @param aDataLogger The output logging object. |
|
11973 @param aObserver The observer of this UnitTest. |
|
11974 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
11975 @pre None. |
|
11976 @post CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest is fully constructed. |
|
11977 */ |
|
11978 inline CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest(CDataLogger& aDataLogger, |
|
11979 MUnitTestObserver& aObserver); |
|
11980 |
|
11981 /** |
|
11982 @fn void ConstructL() |
|
11983 Intended Usage : Second phase of safe two phase construction, |
|
11984 to complete the object initialisation. |
|
11985 Error Condition : Leaves with an error code. |
|
11986 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
11987 @since 7.0 |
|
11988 @return None |
|
11989 @pre CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest is fully constructed. |
|
11990 @post CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest is fully initialized. |
|
11991 */ |
|
11992 void ConstructL(); |
|
11993 |
|
11994 /** |
|
11995 The context of the Unit Test. |
|
11996 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
11997 */ |
|
11998 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
11999 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
12000 /* C'tor, d'tor, and method transition validators */ |
|
12001 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
12002 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iDefectFix_HOL595DR6_2Validator; |
|
12003 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
12004 }; // CWspHeaderWriter_DefectFix_HOL595DR6_2_UnitTest |
|
12005 |
|
12006 // ______________________________________________________________________________ |
|
12007 // |
|
12008 /** |
|
12009 @internal |
|
12010 @class CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest |
|
12011 @Depends CWspHeaderWriter & CUnitTest |
|
12012 |
|
12013 Comments : Unit Test for DefectFix_HOL595DR6_3 on CWspHeaderWriter, the class under test. |
|
12014 |
|
12015 Test Case: This test case uses the Content-Type header field with WSP v1.4 content-type |
|
12016 value using v1.2 as the current encoding |
|
12017 */ |
|
12018 class CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest : public CUnitTest |
|
12019 { |
|
12020 public: |
|
12021 /** |
|
12022 @fn NewL(CDataLogger& aDataLogger, |
|
12023 MUnitTestObserver& aObserver) |
|
12024 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
12025 cleanup stack. |
|
12026 Error Condition : Leaves with the error code. |
|
12027 @exceptions KErrNoMemory |
|
12028 @since 7.0 |
|
12029 @param aDataLogger The output logging object. |
|
12030 @param aObserver The observer of this UnitTest. |
|
12031 @return CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest* The constructed object. |
|
12032 @pre None. |
|
12033 @post CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest is fully constructed, and initialized. |
|
12034 */ |
|
12035 static CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest* NewL(CDataLogger& aDataLogger, |
|
12036 MUnitTestObserver& aObserver); |
|
12037 |
|
12038 /** |
|
12039 @fn RunError(TInt aError) |
|
12040 Intended Usage : Intercept the panic caused by a RunL leave, |
|
12041 to restore the CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest |
|
12042 object to a sensible state. |
|
12043 (called by the Active Scheduler immediately before the Panic). |
|
12044 Error Condition : @see CUnitTest::RunError(). |
|
12045 @since 7.0 |
|
12046 @return KErrNone if cleanup successful, otherwise |
|
12047 @see CUnitTest::RunError() |
|
12048 @pre CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest is fully constructed, and initialized. |
|
12049 @post The object has been restored to a sensible state. |
|
12050 */ |
|
12051 inline TInt RunError(TInt aError); |
|
12052 |
|
12053 /** |
|
12054 @fn ~CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest() |
|
12055 Intended Usage : Standard Destructor. |
|
12056 Error Condition : None. |
|
12057 @since 7.0 |
|
12058 @pre CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest is fully constructed. |
|
12059 @post CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest is fully destroyed. |
|
12060 */ |
|
12061 ~CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest(); |
|
12062 |
|
12063 private: |
|
12064 /** |
|
12065 @fn CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest(CDataLogger& aDataLogger, |
|
12066 MUnitTestObserver& aObserver) |
|
12067 Intended Usage : Default constructor. |
|
12068 Error Condition : None. |
|
12069 @since 7.0 |
|
12070 @param aDataLogger The output logging object. |
|
12071 @param aObserver The observer of this UnitTest. |
|
12072 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
12073 @pre None. |
|
12074 @post CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest is fully constructed. |
|
12075 */ |
|
12076 inline CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest(CDataLogger& aDataLogger, |
|
12077 MUnitTestObserver& aObserver); |
|
12078 |
|
12079 /** |
|
12080 @fn void ConstructL() |
|
12081 Intended Usage : Second phase of safe two phase construction, |
|
12082 to complete the object initialisation. |
|
12083 Error Condition : Leaves with an error code. |
|
12084 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
12085 @since 7.0 |
|
12086 @return None |
|
12087 @pre CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest is fully constructed. |
|
12088 @post CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest is fully initialized. |
|
12089 */ |
|
12090 void ConstructL(); |
|
12091 |
|
12092 /** |
|
12093 The context of the Unit Test. |
|
12094 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
12095 */ |
|
12096 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
12097 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
12098 /* C'tor, d'tor, and method transition validators */ |
|
12099 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
12100 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iDefectFix_HOL595DR6_3Validator; |
|
12101 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
12102 }; // CWspHeaderWriter_DefectFix_HOL595DR6_3_UnitTest |
|
12103 |
|
12104 // ______________________________________________________________________________ |
|
12105 // |
|
12106 /** |
|
12107 @internal |
|
12108 @class CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest |
|
12109 @Depends CWspHeaderWriter & CUnitTest |
|
12110 |
|
12111 Comments : Unit Test for DefectFix_HOL595DR6_4 on CWspHeaderWriter, the class under test. |
|
12112 |
|
12113 Test Case: This test case uses the Content-Type header field with a value with a parameter |
|
12114 value that has been replaced in v1.4 using v1.4 |
|
12115 */ |
|
12116 class CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest : public CUnitTest |
|
12117 { |
|
12118 public: |
|
12119 /** |
|
12120 @fn NewL(CDataLogger& aDataLogger, |
|
12121 MUnitTestObserver& aObserver) |
|
12122 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
12123 cleanup stack. |
|
12124 Error Condition : Leaves with the error code. |
|
12125 @exceptions KErrNoMemory |
|
12126 @since 7.0 |
|
12127 @param aDataLogger The output logging object. |
|
12128 @param aObserver The observer of this UnitTest. |
|
12129 @return CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest* The constructed object. |
|
12130 @pre None. |
|
12131 @post CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest is fully constructed, and initialized. |
|
12132 */ |
|
12133 static CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest* NewL(CDataLogger& aDataLogger, |
|
12134 MUnitTestObserver& aObserver); |
|
12135 |
|
12136 /** |
|
12137 @fn RunError(TInt aError) |
|
12138 Intended Usage : Intercept the panic caused by a RunL leave, |
|
12139 to restore the CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest |
|
12140 object to a sensible state. |
|
12141 (called by the Active Scheduler immediately before the Panic). |
|
12142 Error Condition : @see CUnitTest::RunError(). |
|
12143 @since 7.0 |
|
12144 @return KErrNone if cleanup successful, otherwise |
|
12145 @see CUnitTest::RunError() |
|
12146 @pre CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest is fully constructed, and initialized. |
|
12147 @post The object has been restored to a sensible state. |
|
12148 */ |
|
12149 inline TInt RunError(TInt aError); |
|
12150 |
|
12151 /** |
|
12152 @fn ~CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest() |
|
12153 Intended Usage : Standard Destructor. |
|
12154 Error Condition : None. |
|
12155 @since 7.0 |
|
12156 @pre CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest is fully constructed. |
|
12157 @post CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest is fully destroyed. |
|
12158 */ |
|
12159 ~CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest(); |
|
12160 |
|
12161 private: |
|
12162 /** |
|
12163 @fn CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest(CDataLogger& aDataLogger, |
|
12164 MUnitTestObserver& aObserver) |
|
12165 Intended Usage : Default constructor. |
|
12166 Error Condition : None. |
|
12167 @since 7.0 |
|
12168 @param aDataLogger The output logging object. |
|
12169 @param aObserver The observer of this UnitTest. |
|
12170 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
12171 @pre None. |
|
12172 @post CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest is fully constructed. |
|
12173 */ |
|
12174 inline CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest(CDataLogger& aDataLogger, |
|
12175 MUnitTestObserver& aObserver); |
|
12176 |
|
12177 /** |
|
12178 @fn void ConstructL() |
|
12179 Intended Usage : Second phase of safe two phase construction, |
|
12180 to complete the object initialisation. |
|
12181 Error Condition : Leaves with an error code. |
|
12182 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
12183 @since 7.0 |
|
12184 @return None |
|
12185 @pre CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest is fully constructed. |
|
12186 @post CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest is fully initialized. |
|
12187 */ |
|
12188 void ConstructL(); |
|
12189 |
|
12190 /** |
|
12191 The context of the Unit Test. |
|
12192 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
12193 */ |
|
12194 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
12195 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
12196 /* C'tor, d'tor, and method transition validators */ |
|
12197 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
12198 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iDefectFix_HOL595DR6_4Validator; |
|
12199 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
12200 }; // CWspHeaderWriter_DefectFix_HOL595DR6_4_UnitTest |
|
12201 |
|
12202 // ______________________________________________________________________________ |
|
12203 // |
|
12204 /** |
|
12205 @internal |
|
12206 @class CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest |
|
12207 @Depends CWspHeaderWriter & CUnitTest |
|
12208 |
|
12209 Comments : Unit Test for DefectFix_HOL595DR6_5 on CWspHeaderWriter, the class under test. |
|
12210 |
|
12211 Test Case: This test case uses the Content-Type header field with a value with a parameter |
|
12212 value that has been replaced in v1.4 using v1.2 |
|
12213 */ |
|
12214 class CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest : public CUnitTest |
|
12215 { |
|
12216 public: |
|
12217 /** |
|
12218 @fn NewL(CDataLogger& aDataLogger, |
|
12219 MUnitTestObserver& aObserver) |
|
12220 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
12221 cleanup stack. |
|
12222 Error Condition : Leaves with the error code. |
|
12223 @exceptions KErrNoMemory |
|
12224 @since 7.0 |
|
12225 @param aDataLogger The output logging object. |
|
12226 @param aObserver The observer of this UnitTest. |
|
12227 @return CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest* The constructed object. |
|
12228 @pre None. |
|
12229 @post CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest is fully constructed, and initialized. |
|
12230 */ |
|
12231 static CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest* NewL(CDataLogger& aDataLogger, |
|
12232 MUnitTestObserver& aObserver); |
|
12233 |
|
12234 /** |
|
12235 @fn RunError(TInt aError) |
|
12236 Intended Usage : Intercept the panic caused by a RunL leave, |
|
12237 to restore the CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest |
|
12238 object to a sensible state. |
|
12239 (called by the Active Scheduler immediately before the Panic). |
|
12240 Error Condition : @see CUnitTest::RunError(). |
|
12241 @since 7.0 |
|
12242 @return KErrNone if cleanup successful, otherwise |
|
12243 @see CUnitTest::RunError() |
|
12244 @pre CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest is fully constructed, and initialized. |
|
12245 @post The object has been restored to a sensible state. |
|
12246 */ |
|
12247 inline TInt RunError(TInt aError); |
|
12248 |
|
12249 /** |
|
12250 @fn ~CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest() |
|
12251 Intended Usage : Standard Destructor. |
|
12252 Error Condition : None. |
|
12253 @since 7.0 |
|
12254 @pre CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest is fully constructed. |
|
12255 @post CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest is fully destroyed. |
|
12256 */ |
|
12257 ~CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest(); |
|
12258 |
|
12259 private: |
|
12260 /** |
|
12261 @fn CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest(CDataLogger& aDataLogger, |
|
12262 MUnitTestObserver& aObserver) |
|
12263 Intended Usage : Default constructor. |
|
12264 Error Condition : None. |
|
12265 @since 7.0 |
|
12266 @param aDataLogger The output logging object. |
|
12267 @param aObserver The observer of this UnitTest. |
|
12268 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
12269 @pre None. |
|
12270 @post CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest is fully constructed. |
|
12271 */ |
|
12272 inline CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest(CDataLogger& aDataLogger, |
|
12273 MUnitTestObserver& aObserver); |
|
12274 |
|
12275 /** |
|
12276 @fn void ConstructL() |
|
12277 Intended Usage : Second phase of safe two phase construction, |
|
12278 to complete the object initialisation. |
|
12279 Error Condition : Leaves with an error code. |
|
12280 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
12281 @since 7.0 |
|
12282 @return None |
|
12283 @pre CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest is fully constructed. |
|
12284 @post CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest is fully initialized. |
|
12285 */ |
|
12286 void ConstructL(); |
|
12287 |
|
12288 /** |
|
12289 The context of the Unit Test. |
|
12290 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
12291 */ |
|
12292 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
12293 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
12294 /* C'tor, d'tor, and method transition validators */ |
|
12295 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
12296 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iDefectFix_HOL595DR6_5Validator; |
|
12297 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
12298 }; // CWspHeaderWriter_DefectFix_HOL595DR6_5_UnitTest |
|
12299 |
|
12300 // ______________________________________________________________________________ |
|
12301 // |
|
12302 /** |
|
12303 @internal |
|
12304 @class CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest |
|
12305 @Depends CWspHeaderWriter & CUnitTest |
|
12306 |
|
12307 Comments : Unit Test for DefectFix_HOL595DR6_6 on CWspHeaderWriter, the class under test. |
|
12308 |
|
12309 Test Case: This test case uses the Content-Type header field with a value with a parameter |
|
12310 value that has been replaced in v1.4 using v1.4 |
|
12311 */ |
|
12312 class CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest : public CUnitTest |
|
12313 { |
|
12314 public: |
|
12315 /** |
|
12316 @fn NewL(CDataLogger& aDataLogger, |
|
12317 MUnitTestObserver& aObserver) |
|
12318 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
12319 cleanup stack. |
|
12320 Error Condition : Leaves with the error code. |
|
12321 @exceptions KErrNoMemory |
|
12322 @since 7.0 |
|
12323 @param aDataLogger The output logging object. |
|
12324 @param aObserver The observer of this UnitTest. |
|
12325 @return CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest* The constructed object. |
|
12326 @pre None. |
|
12327 @post CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest is fully constructed, and initialized. |
|
12328 */ |
|
12329 static CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest* NewL(CDataLogger& aDataLogger, |
|
12330 MUnitTestObserver& aObserver); |
|
12331 |
|
12332 /** |
|
12333 @fn RunError(TInt aError) |
|
12334 Intended Usage : Intercept the panic caused by a RunL leave, |
|
12335 to restore the CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest |
|
12336 object to a sensible state. |
|
12337 (called by the Active Scheduler immediately before the Panic). |
|
12338 Error Condition : @see CUnitTest::RunError(). |
|
12339 @since 7.0 |
|
12340 @return KErrNone if cleanup successful, otherwise |
|
12341 @see CUnitTest::RunError() |
|
12342 @pre CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest is fully constructed, and initialized. |
|
12343 @post The object has been restored to a sensible state. |
|
12344 */ |
|
12345 inline TInt RunError(TInt aError); |
|
12346 |
|
12347 /** |
|
12348 @fn ~CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest() |
|
12349 Intended Usage : Standard Destructor. |
|
12350 Error Condition : None. |
|
12351 @since 7.0 |
|
12352 @pre CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest is fully constructed. |
|
12353 @post CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest is fully destroyed. |
|
12354 */ |
|
12355 ~CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest(); |
|
12356 |
|
12357 private: |
|
12358 /** |
|
12359 @fn CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest(CDataLogger& aDataLogger, |
|
12360 MUnitTestObserver& aObserver) |
|
12361 Intended Usage : Default constructor. |
|
12362 Error Condition : None. |
|
12363 @since 7.0 |
|
12364 @param aDataLogger The output logging object. |
|
12365 @param aObserver The observer of this UnitTest. |
|
12366 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
12367 @pre None. |
|
12368 @post CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest is fully constructed. |
|
12369 */ |
|
12370 inline CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest(CDataLogger& aDataLogger, |
|
12371 MUnitTestObserver& aObserver); |
|
12372 |
|
12373 /** |
|
12374 @fn void ConstructL() |
|
12375 Intended Usage : Second phase of safe two phase construction, |
|
12376 to complete the object initialisation. |
|
12377 Error Condition : Leaves with an error code. |
|
12378 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
12379 @since 7.0 |
|
12380 @return None |
|
12381 @pre CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest is fully constructed. |
|
12382 @post CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest is fully initialized. |
|
12383 */ |
|
12384 void ConstructL(); |
|
12385 |
|
12386 /** |
|
12387 The context of the Unit Test. |
|
12388 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
12389 */ |
|
12390 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
12391 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
12392 /* C'tor, d'tor, and method transition validators */ |
|
12393 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
12394 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iDefectFix_HOL595DR6_6Validator; |
|
12395 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
12396 }; // CWspHeaderWriter_DefectFix_HOL595DR6_6_UnitTest |
|
12397 |
|
12398 // ______________________________________________________________________________ |
|
12399 // |
|
12400 /** |
|
12401 @internal |
|
12402 @class CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest |
|
12403 @Depends CWspHeaderWriter & CUnitTest |
|
12404 |
|
12405 Comments : Unit Test for DefectFix_HOL595DR6_7 on CWspHeaderWriter, the class under test. |
|
12406 |
|
12407 Test Case: This test case uses the Content-Type header field with a value with a parameter |
|
12408 value that was introduced in v1.3 using v1.2 as current |
|
12409 */ |
|
12410 class CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest : public CUnitTest |
|
12411 { |
|
12412 public: |
|
12413 /** |
|
12414 @fn NewL(CDataLogger& aDataLogger, |
|
12415 MUnitTestObserver& aObserver) |
|
12416 Intended Usage : Standard two-phase construction which leaves nothing on the |
|
12417 cleanup stack. |
|
12418 Error Condition : Leaves with the error code. |
|
12419 @exceptions KErrNoMemory |
|
12420 @since 7.0 |
|
12421 @param aDataLogger The output logging object. |
|
12422 @param aObserver The observer of this UnitTest. |
|
12423 @return CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest* The constructed object. |
|
12424 @pre None. |
|
12425 @post CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest is fully constructed, and initialized. |
|
12426 */ |
|
12427 static CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest* NewL(CDataLogger& aDataLogger, |
|
12428 MUnitTestObserver& aObserver); |
|
12429 |
|
12430 /** |
|
12431 @fn RunError(TInt aError) |
|
12432 Intended Usage : Intercept the panic caused by a RunL leave, |
|
12433 to restore the CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest |
|
12434 object to a sensible state. |
|
12435 (called by the Active Scheduler immediately before the Panic). |
|
12436 Error Condition : @see CUnitTest::RunError(). |
|
12437 @since 7.0 |
|
12438 @return KErrNone if cleanup successful, otherwise |
|
12439 @see CUnitTest::RunError() |
|
12440 @pre CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest is fully constructed, and initialized. |
|
12441 @post The object has been restored to a sensible state. |
|
12442 */ |
|
12443 inline TInt RunError(TInt aError); |
|
12444 |
|
12445 /** |
|
12446 @fn ~CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest() |
|
12447 Intended Usage : Standard Destructor. |
|
12448 Error Condition : None. |
|
12449 @since 7.0 |
|
12450 @pre CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest is fully constructed. |
|
12451 @post CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest is fully destroyed. |
|
12452 */ |
|
12453 ~CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest(); |
|
12454 |
|
12455 private: |
|
12456 /** |
|
12457 @fn CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest(CDataLogger& aDataLogger, |
|
12458 MUnitTestObserver& aObserver) |
|
12459 Intended Usage : Default constructor. |
|
12460 Error Condition : None. |
|
12461 @since 7.0 |
|
12462 @param aDataLogger The output logging object. |
|
12463 @param aObserver The observer of this UnitTest. |
|
12464 @param aStateAccessor WhiteBox state access to the CWspHeaderWriter class. |
|
12465 @pre None. |
|
12466 @post CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest is fully constructed. |
|
12467 */ |
|
12468 inline CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest(CDataLogger& aDataLogger, |
|
12469 MUnitTestObserver& aObserver); |
|
12470 |
|
12471 /** |
|
12472 @fn void ConstructL() |
|
12473 Intended Usage : Second phase of safe two phase construction, |
|
12474 to complete the object initialisation. |
|
12475 Error Condition : Leaves with an error code. |
|
12476 @exception KErrNoMemory, and @see CUnitTest::BaseNewL(). |
|
12477 @since 7.0 |
|
12478 @return None |
|
12479 @pre CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest is fully constructed. |
|
12480 @post CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest is fully initialized. |
|
12481 */ |
|
12482 void ConstructL(); |
|
12483 |
|
12484 /** |
|
12485 The context of the Unit Test. |
|
12486 i.e The CWspHeaderWriter class tested by this UnitTest's transitions. |
|
12487 */ |
|
12488 CWspHeaderWriter_UnitTestContext* iUTContext; |
|
12489 TWspHeaderWriter_StateAccessor* iStateAccessor; |
|
12490 /* C'tor, d'tor, and method transition validators */ |
|
12491 TWspHeaderWriter_Ctor_TransitionValidator* iCtorValidator; |
|
12492 TWspHeaderWriter_EncodeHeaderL_TransitionValidator* iDefectFix_HOL595DR6_7Validator; |
|
12493 TWspHeaderWriter_Dtor_TransitionValidator* iDtorValidator; |
|
12494 }; // CWspHeaderWriter_DefectFix_HOL595DR6_7_UnitTest |
|
12495 |
|
12496 #endif // __WSPHEADERWRITERUNITTEST_H__ |