|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The definitions of the transition classes upon the CMailtoSchemeHandler class methods. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @SYMCreationDate Created : 24/05/01 15:57:46 |
|
21 */ |
|
22 |
|
23 #ifndef __MAILTOSCHEMEHANDLERTRANSITIONVALIDATION_H__ |
|
24 #define __MAILTOSCHEMEHANDLERTRANSITIONVALIDATION_H__ |
|
25 |
|
26 #include "MailtoSchemeHandlerTransitions.h" |
|
27 |
|
28 // ______________________________________________________________________________ |
|
29 // |
|
30 /** |
|
31 @internalTechnology |
|
32 @class |
|
33 Comments : Provide all the CtorUnit Test's specific |
|
34 validatation for the state of a transition before and after its execution. |
|
35 on the CMailtoSchemeHandler test class for a transition. |
|
36 */ |
|
37 class TMailtoSchemeHandler_Ctor_TransitionValidator : public TTransitionValidator |
|
38 { |
|
39 public: |
|
40 /** |
|
41 @fn TMailtoSchemeHandler_Ctor_TransitionValidator(CUnitTestContext& aUTContext) |
|
42 Intended Usage : |
|
43 @leave KErrNoMemory |
|
44 @since 6.0 |
|
45 @param aUTContext The context within which this transition is executing |
|
46 */ |
|
47 inline TMailtoSchemeHandler_Ctor_TransitionValidator(CUnitTestContext& aUTContext); |
|
48 |
|
49 /** |
|
50 @fn ValidatePreConditions() |
|
51 Intended Usage : Implemented by the developer to check the |
|
52 end state of the transition behaviour. |
|
53 Error Condition : Invalid pre-conditions |
|
54 @since 6.0 |
|
55 @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. |
|
56 @pre TMailtoSchemeHandler_Ctor_TransitionValidator is fully constructed. |
|
57 @post No change to the iUTContext class. |
|
58 */ |
|
59 virtual inline TBool ValidatePreConditions(); |
|
60 |
|
61 /** |
|
62 @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) |
|
63 Intended Usage : Implemented by the developer to check the |
|
64 end state of the transition behaviour. |
|
65 When overriding, if the transition calls an asynchronous function |
|
66 ValidatePostConditions will be called twice. Firstly, after the |
|
67 asynchronous function has been called and, secondly, after the |
|
68 asynchronous request has completed. The parameter aAsyncState can |
|
69 be used to distinguish between these two cases. |
|
70 Error Condition : Invalid post-conditions. |
|
71 @since 6.0 |
|
72 @param aAsyncState EAsyncCalled if the async function has been just been called, |
|
73 EAsyncCompleted if the function has completed. |
|
74 @return TBool ETrue if the post-conditions were valid, EFalse otherwise. |
|
75 @pre TMailtoSchemeHandler_Ctor_TransitionValidator is fully constructed. |
|
76 @post No change to the iUTContext class. |
|
77 */ |
|
78 virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); |
|
79 }; // TMailtoSchemeHandler_Ctor_TransitionValidator |
|
80 |
|
81 // ______________________________________________________________________________ |
|
82 // |
|
83 /** |
|
84 @internalTechnology |
|
85 @class |
|
86 Comments : Provide all the DtorUnit Test's specific |
|
87 validatation for the state of a transition before and after its execution. |
|
88 on the CMailtoSchemeHandler test class for a transition. |
|
89 */ |
|
90 class TMailtoSchemeHandler_Dtor_TransitionValidator : public TTransitionValidator |
|
91 { |
|
92 public: |
|
93 /** |
|
94 @fn TMailtoSchemeHandler_Dtor_TransitionValidator(CUnitTestContext& aUTContext) |
|
95 Intended Usage : |
|
96 @leave KErrNoMemory |
|
97 @since 6.0 |
|
98 @param aUTContext The context within which this transition is executing |
|
99 */ |
|
100 inline TMailtoSchemeHandler_Dtor_TransitionValidator(CUnitTestContext& aUTContext); |
|
101 |
|
102 /** |
|
103 @fn ValidatePreConditions() |
|
104 Intended Usage : Implemented by the developer to check the |
|
105 end state of the transition behaviour. |
|
106 Error Condition : Invalid pre-conditions |
|
107 @since 6.0 |
|
108 @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. |
|
109 @pre TMailtoSchemeHandler_Dtor_TransitionValidator is fully constructed. |
|
110 @post No change to the iUTContext class. |
|
111 */ |
|
112 virtual inline TBool ValidatePreConditions(); |
|
113 |
|
114 /** |
|
115 @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) |
|
116 Intended Usage : Implemented by the developer to check the |
|
117 end state of the transition behaviour. |
|
118 When overriding, if the transition calls an asynchronous function |
|
119 ValidatePostConditions will be called twice. Firstly, after the |
|
120 asynchronous function has been called and, secondly, after the |
|
121 asynchronous request has completed. The parameter aAsyncState can |
|
122 be used to distinguish between these two cases. |
|
123 Error Condition : Invalid post-conditions. |
|
124 @since 6.0 |
|
125 @param aAsyncState EAsyncCalled if the async function has been just been called, |
|
126 EAsyncCompleted if the function has completed. |
|
127 @return TBool ETrue if the post-conditions were valid, EFalse otherwise. |
|
128 @pre TMailtoSchemeHandler_Dtor_TransitionValidator is fully constructed. |
|
129 @post No change to the iUTContext class. |
|
130 */ |
|
131 virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); |
|
132 }; // TMailtoSchemeHandler_Dtor_TransitionValidator |
|
133 |
|
134 |
|
135 // ______________________________________________________________________________ |
|
136 // |
|
137 /** |
|
138 @internalTechnology |
|
139 @class |
|
140 Comments : Provide all the ParseUrlTest1Unit Test's specific |
|
141 validatation for the state of a transition before and after its execution. |
|
142 on the CMailtoSchemeHandler test class for a transition. |
|
143 */ |
|
144 class TMailtoSchemeHandler_ParseUrlTest1_TransitionValidator : public TTransitionValidator |
|
145 { |
|
146 public: |
|
147 /** |
|
148 @fn TMailtoSchemeHandler_ParseUrlTest1_TransitionValidator(CUnitTestContext& aUTContext) |
|
149 Intended Usage : |
|
150 @leave KErrNoMemory |
|
151 @since 6.0 |
|
152 @param aUTContext The context within which this transition is executing |
|
153 */ |
|
154 inline TMailtoSchemeHandler_ParseUrlTest1_TransitionValidator(CUnitTestContext& aUTContext); |
|
155 |
|
156 /** |
|
157 @fn ValidatePreConditions() |
|
158 Intended Usage : Implemented by the developer to check the |
|
159 end state of the transition behaviour. |
|
160 Error Condition : Invalid pre-conditions |
|
161 @since 6.0 |
|
162 @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. |
|
163 @pre TMailtoSchemeHandler_ParseUrlTest1_TransitionValidator is fully constructed. |
|
164 @post No change to the iUTContext class. |
|
165 */ |
|
166 virtual inline TBool ValidatePreConditions(); |
|
167 |
|
168 /** |
|
169 @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) |
|
170 Intended Usage : Implemented by the developer to check the |
|
171 end state of the transition behaviour. |
|
172 When overriding, if the transition calls an asynchronous function |
|
173 ValidatePostConditions will be called twice. Firstly, after the |
|
174 asynchronous function has been called and, secondly, after the |
|
175 asynchronous request has completed. The parameter aAsyncState can |
|
176 be used to distinguish between these two cases. |
|
177 Error Condition : Invalid post-conditions. |
|
178 @since 6.0 |
|
179 @param aAsyncState EAsyncCalled if the async function has been just been called, |
|
180 EAsyncCompleted if the function has completed. |
|
181 @return TBool ETrue if the post-conditions were valid, EFalse otherwise. |
|
182 @pre TMailtoSchemeHandler_ParseUrlTest1_TransitionValidator is fully constructed. |
|
183 @post No change to the iUTContext class. |
|
184 */ |
|
185 virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); |
|
186 }; // TMailtoSchemeHandler_ParseUrlTest1_TransitionValidator |
|
187 |
|
188 |
|
189 // ______________________________________________________________________________ |
|
190 // |
|
191 /** |
|
192 @internalTechnology |
|
193 @class |
|
194 Comments : Provide all the ParseUrlTest9Unit Test's specific |
|
195 validatation for the state of a transition before and after its execution. |
|
196 on the CMailtoSchemeHandler test class for a transition. |
|
197 */ |
|
198 class TMailtoSchemeHandler_ParseUrlTest9_TransitionValidator : public TTransitionValidator |
|
199 { |
|
200 public: |
|
201 /** |
|
202 @fn TMailtoSchemeHandler_ParseUrlTest9_TransitionValidator(CUnitTestContext& aUTContext) |
|
203 Intended Usage : |
|
204 @leave KErrNoMemory |
|
205 @since 6.0 |
|
206 @param aUTContext The context within which this transition is executing |
|
207 */ |
|
208 inline TMailtoSchemeHandler_ParseUrlTest9_TransitionValidator(CUnitTestContext& aUTContext); |
|
209 |
|
210 /** |
|
211 @fn ValidatePreConditions() |
|
212 Intended Usage : Implemented by the developer to check the |
|
213 end state of the transition behaviour. |
|
214 Error Condition : Invalid pre-conditions |
|
215 @since 6.0 |
|
216 @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. |
|
217 @pre TMailtoSchemeHandler_ParseUrlTest9_TransitionValidator is fully constructed. |
|
218 @post No change to the iUTContext class. |
|
219 */ |
|
220 virtual inline TBool ValidatePreConditions(); |
|
221 |
|
222 /** |
|
223 @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) |
|
224 Intended Usage : Implemented by the developer to check the |
|
225 end state of the transition behaviour. |
|
226 When overriding, if the transition calls an asynchronous function |
|
227 ValidatePostConditions will be called twice. Firstly, after the |
|
228 asynchronous function has been called and, secondly, after the |
|
229 asynchronous request has completed. The parameter aAsyncState can |
|
230 be used to distinguish between these two cases. |
|
231 Error Condition : Invalid post-conditions. |
|
232 @since 6.0 |
|
233 @param aAsyncState EAsyncCalled if the async function has been just been called, |
|
234 EAsyncCompleted if the function has completed. |
|
235 @return TBool ETrue if the post-conditions were valid, EFalse otherwise. |
|
236 @pre TMailtoSchemeHandler_ParseUrlTest9_TransitionValidator is fully constructed. |
|
237 @post No change to the iUTContext class. |
|
238 */ |
|
239 virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); |
|
240 }; // TMailtoSchemeHandler_ParseUrlTest9_TransitionValidator |
|
241 |
|
242 // ______________________________________________________________________________ |
|
243 // |
|
244 /** |
|
245 @internalTechnology |
|
246 @class |
|
247 Comments : Provide all the ParseUrlTest12Unit Test's specific |
|
248 validatation for the state of a transition before and after its execution. |
|
249 on the CMailtoSchemeHandler test class for a transition. |
|
250 */ |
|
251 class TMailtoSchemeHandler_ParseUrlTest12_TransitionValidator : public TTransitionValidator |
|
252 { |
|
253 public: |
|
254 /** |
|
255 @fn TMailtoSchemeHandler_ParseUrlTest12_TransitionValidator(CUnitTestContext& aUTContext) |
|
256 Intended Usage : |
|
257 @leave KErrNoMemory |
|
258 @since 6.0 |
|
259 @param aUTContext The context within which this transition is executing |
|
260 */ |
|
261 inline TMailtoSchemeHandler_ParseUrlTest12_TransitionValidator(CUnitTestContext& aUTContext); |
|
262 |
|
263 /** |
|
264 @fn ValidatePreConditions() |
|
265 Intended Usage : Implemented by the developer to check the |
|
266 end state of the transition behaviour. |
|
267 Error Condition : Invalid pre-conditions |
|
268 @since 6.0 |
|
269 @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. |
|
270 @pre TMailtoSchemeHandler_ParseUrlTest12_TransitionValidator is fully constructed. |
|
271 @post No change to the iUTContext class. |
|
272 */ |
|
273 virtual inline TBool ValidatePreConditions(); |
|
274 |
|
275 /** |
|
276 @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) |
|
277 Intended Usage : Implemented by the developer to check the |
|
278 end state of the transition behaviour. |
|
279 When overriding, if the transition calls an asynchronous function |
|
280 ValidatePostConditions will be called twice. Firstly, after the |
|
281 asynchronous function has been called and, secondly, after the |
|
282 asynchronous request has completed. The parameter aAsyncState can |
|
283 be used to distinguish between these two cases. |
|
284 Error Condition : Invalid post-conditions. |
|
285 @since 6.0 |
|
286 @param aAsyncState EAsyncCalled if the async function has been just been called, |
|
287 EAsyncCompleted if the function has completed. |
|
288 @return TBool ETrue if the post-conditions were valid, EFalse otherwise. |
|
289 @pre TMailtoSchemeHandler_ParseUrlTest12_TransitionValidator is fully constructed. |
|
290 @post No change to the iUTContext class. |
|
291 */ |
|
292 virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); |
|
293 }; // TMailtoSchemeHandler_ParseUrlTest12_TransitionValidator |
|
294 |
|
295 // ______________________________________________________________________________ |
|
296 // |
|
297 /** |
|
298 @internalTechnology |
|
299 @class |
|
300 Comments : Provide all the ParseUrlHandler14Unit Test's specific |
|
301 validatation for the state of a transition before and after its execution. |
|
302 on the CMailtoSchemeHandler test class for a transition. |
|
303 */ |
|
304 class TMailtoSchemeHandler_ParseUrlTest14_TransitionValidator : public TTransitionValidator |
|
305 { |
|
306 public: |
|
307 /** |
|
308 @fn TMailtoSchemeHandler_ParseUrlTest14_TransitionValidator(CUnitTestContext& aUTContext) |
|
309 Intended Usage : |
|
310 @leave KErrNoMemory |
|
311 @since 6.0 |
|
312 @param aUTContext The context within which this transition is executing |
|
313 */ |
|
314 inline TMailtoSchemeHandler_ParseUrlTest14_TransitionValidator(CUnitTestContext& aUTContext); |
|
315 |
|
316 /** |
|
317 @fn ValidatePreConditions() |
|
318 Intended Usage : Implemented by the developer to check the |
|
319 end state of the transition behaviour. |
|
320 Error Condition : Invalid pre-conditions |
|
321 @since 6.0 |
|
322 @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. |
|
323 @pre TMailtoSchemeHandler_ParseUrlTest14_TransitionValidator is fully constructed. |
|
324 @post No change to the iUTContext class. |
|
325 */ |
|
326 virtual inline TBool ValidatePreConditions(); |
|
327 |
|
328 /** |
|
329 @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) |
|
330 Intended Usage : Implemented by the developer to check the |
|
331 end state of the transition behaviour. |
|
332 When overriding, if the transition calls an asynchronous function |
|
333 ValidatePostConditions will be called twice. Firstly, after the |
|
334 asynchronous function has been called and, secondly, after the |
|
335 asynchronous request has completed. The parameter aAsyncState can |
|
336 be used to distinguish between these two cases. |
|
337 Error Condition : Invalid post-conditions. |
|
338 @since 6.0 |
|
339 @param aAsyncState EAsyncCalled if the async function has been just been called, |
|
340 EAsyncCompleted if the function has completed. |
|
341 @return TBool ETrue if the post-conditions were valid, EFalse otherwise. |
|
342 @pre TMailtoSchemeHandler_ParseUrlTest14_TransitionValidator is fully constructed. |
|
343 @post No change to the iUTContext class. |
|
344 */ |
|
345 virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); |
|
346 }; // TMailtoSchemeHandler_ParseUrlTest14_TransitionValidator |
|
347 |
|
348 // ______________________________________________________________________________ |
|
349 // |
|
350 /** |
|
351 @internalTechnology |
|
352 @class |
|
353 |
|
354 Comments : Provide all the CreateEmailLUnit Test's specific |
|
355 validatation for the state of a transition before and after its execution. |
|
356 on the CMailtoSchemeHandler test class for a transition. |
|
357 */ |
|
358 class TMailtoSchemeHandler_CreateEmailL_TransitionValidator : public TTransitionValidator |
|
359 { |
|
360 public: |
|
361 /** |
|
362 @fn TMailtoSchemeHandler_CreateEmailL_TransitionValidator(CUnitTestContext& aUTContext) |
|
363 Intended Usage : |
|
364 @leave KErrNoMemory |
|
365 @since 6.0 |
|
366 @param aUTContext The context within which this transition is executing |
|
367 */ |
|
368 inline TMailtoSchemeHandler_CreateEmailL_TransitionValidator(CUnitTestContext& aUTContext); |
|
369 |
|
370 /** |
|
371 @fn ValidatePreConditions() |
|
372 Intended Usage : Implemented by the developer to check the |
|
373 end state of the transition behaviour. |
|
374 Error Condition : Invalid pre-conditions |
|
375 @since 6.0 |
|
376 @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. |
|
377 @pre TMailtoSchemeHandler_CreateEmailL_TransitionValidator is fully constructed. |
|
378 @post No change to the iUTContext class. |
|
379 */ |
|
380 virtual inline TBool ValidatePreConditions(); |
|
381 |
|
382 /** |
|
383 @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) |
|
384 Intended Usage : Implemented by the developer to check the |
|
385 end state of the transition behaviour. |
|
386 When overriding, if the transition calls an asynchronous function |
|
387 ValidatePostConditions will be called twice. Firstly, after the |
|
388 asynchronous function has been called and, secondly, after the |
|
389 asynchronous request has completed. The parameter aAsyncState can |
|
390 be used to distinguish between these two cases. |
|
391 Error Condition : Invalid post-conditions. |
|
392 @since 6.0 |
|
393 @param aAsyncState EAsyncCalled if the async function has been just been called, |
|
394 EAsyncCompleted if the function has completed. |
|
395 @return TBool ETrue if the post-conditions were valid, EFalse otherwise. |
|
396 @pre TMailtoSchemeHandler_CreateEmailL_TransitionValidator is fully constructed. |
|
397 @post No change to the iUTContext class. |
|
398 */ |
|
399 virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); |
|
400 }; // TMailtoSchemeHandler_CreateEmailL_TransitionValidator |
|
401 |
|
402 #include "MailtoSchemeHandlerTransitionValidation.inl" |
|
403 |
|
404 #endif // __MAILTOSCHEMEHANDLERTRANSITIONVALIDATION_H__ |
|
405 |