|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 #ifndef SENFRAGMENTTESTER_H |
|
27 #define SENFRAGMENTTESTER_H |
|
28 |
|
29 // INCLUDES |
|
30 #include <StifLogger.h> |
|
31 #include <TestScripterInternal.h> |
|
32 #include <StifTestModule.h> |
|
33 #include <TestclassAssert.h> |
|
34 |
|
35 // CONSTANTS |
|
36 //const ?type ?constant_var = ?constant; |
|
37 |
|
38 // MACROS |
|
39 //#define ?macro ?macro_def |
|
40 #define TEST_CLASS_VERSION_MAJOR 0 |
|
41 #define TEST_CLASS_VERSION_MINOR 0 |
|
42 #define TEST_CLASS_VERSION_BUILD 0 |
|
43 |
|
44 // Logging path |
|
45 _LIT( KSenFragmentTesterLogPath, "\\logs\\testframework\\SenFragmentTester\\" ); |
|
46 // Log file |
|
47 _LIT( KSenFragmentTesterLogFile, "SenFragmentTester.txt" ); |
|
48 _LIT( KSenFragmentTesterLogFileWithTitle, "SenFragmentTester_[%S].txt" ); |
|
49 |
|
50 // FUNCTION PROTOTYPES |
|
51 //?type ?function_name(?arg_list); |
|
52 |
|
53 // FORWARD DECLARATIONS |
|
54 //class ?FORWARD_CLASSNAME; |
|
55 class CSenFragmentTester; |
|
56 |
|
57 // DATA TYPES |
|
58 //enum ?declaration |
|
59 //typedef ?declaration |
|
60 //extern ?data_type; |
|
61 |
|
62 // CLASS DECLARATION |
|
63 |
|
64 /** |
|
65 * CSenFragmentTester test class for STIF Test Framework TestScripter. |
|
66 * ?other_description_lines |
|
67 * |
|
68 * @lib ?library |
|
69 * @since ?Series60_version |
|
70 */ |
|
71 NONSHARABLE_CLASS(CSenFragmentTester) : public CScriptBase |
|
72 { |
|
73 public: // Constructors and destructor |
|
74 |
|
75 /** |
|
76 * Two-phased constructor. |
|
77 */ |
|
78 static CSenFragmentTester* NewL( CTestModuleIf& aTestModuleIf ); |
|
79 |
|
80 /** |
|
81 * Destructor. |
|
82 */ |
|
83 virtual ~CSenFragmentTester(); |
|
84 |
|
85 public: // New functions |
|
86 |
|
87 /** |
|
88 * ?member_description. |
|
89 * @since ?Series60_version |
|
90 * @param ?arg1 ?description |
|
91 * @return ?description |
|
92 */ |
|
93 //?type ?member_function( ?type ?arg1 ); |
|
94 |
|
95 public: // Functions from base classes |
|
96 |
|
97 /** |
|
98 * From CScriptBase Runs a script line. |
|
99 * @since ?Series60_version |
|
100 * @param aItem Script line containing method name and parameters |
|
101 * @return Symbian OS error code |
|
102 */ |
|
103 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
104 |
|
105 protected: // New functions |
|
106 |
|
107 /** |
|
108 * ?member_description. |
|
109 * @since ?Series60_version |
|
110 * @param ?arg1 ?description |
|
111 * @return ?description |
|
112 */ |
|
113 //?type ?member_function( ?type ?arg1 ); |
|
114 |
|
115 protected: // Functions from base classes |
|
116 |
|
117 /** |
|
118 * From ?base_class ?member_description |
|
119 */ |
|
120 //?type ?member_function(); |
|
121 |
|
122 private: |
|
123 |
|
124 /** |
|
125 * C++ default constructor. |
|
126 */ |
|
127 CSenFragmentTester( CTestModuleIf& aTestModuleIf ); |
|
128 |
|
129 /** |
|
130 * By default Symbian 2nd phase constructor is private. |
|
131 */ |
|
132 void ConstructL(); |
|
133 |
|
134 // Prohibit copy constructor if not deriving from CBase. |
|
135 // ?classname( const ?classname& ); |
|
136 // Prohibit assigment operator if not deriving from CBase. |
|
137 // ?classname& operator=( const ?classname& ); |
|
138 |
|
139 /** |
|
140 * Frees all resources allocated from test methods. |
|
141 * @since ?Series60_version |
|
142 */ |
|
143 void Delete(); |
|
144 |
|
145 /** |
|
146 * Test methods are listed below. |
|
147 */ |
|
148 |
|
149 /** |
|
150 * Example test method. |
|
151 * @since ?Series60_version |
|
152 * @param aItem Script line containing parameters. |
|
153 * @return Symbian OS error code. |
|
154 */ |
|
155 TInt MT_CSenDomFragmentBase_NewLL(); |
|
156 |
|
157 |
|
158 TInt MT_CSenDomFragmentBase_NewL_1L(); |
|
159 |
|
160 |
|
161 TInt MT_CSenDomFragmentBase_NewL_2L(); |
|
162 |
|
163 |
|
164 TInt MT_CSenDomFragmentBase_NewL_3L(); |
|
165 |
|
166 |
|
167 TInt MT_CSenDomFragmentBase_NewL_4L(); |
|
168 |
|
169 |
|
170 TInt MT_CSenDomFragmentBase_NewL_5L(); |
|
171 |
|
172 |
|
173 TInt MT_CSenDomFragmentBase_NewL_6L(); |
|
174 |
|
175 |
|
176 TInt MT_CSenDomFragmentBase_NewL_7L(); |
|
177 |
|
178 |
|
179 TInt MT_CSenDomFragmentBase_ExpandLL(); |
|
180 |
|
181 |
|
182 TInt MT_CSenDomFragmentBase_OnResumeParsingFromLL(); |
|
183 |
|
184 |
|
185 TInt MT_CSenDomFragmentBase_AddAttributesLL(); |
|
186 |
|
187 |
|
188 TInt MT_CSenDomFragmentBase_AsXmlLL(); |
|
189 |
|
190 |
|
191 TInt MT_CSenDomFragmentBase_OnStartElementLL(); |
|
192 |
|
193 |
|
194 TInt MT_CSenDomFragmentBase_OnContentLL(); |
|
195 |
|
196 |
|
197 TInt MT_CSenDomFragmentBase_OnWriteStartElementLL(); |
|
198 |
|
199 |
|
200 TInt MT_CSenDomFragmentBase_OnWriteEndElementLL(); |
|
201 |
|
202 |
|
203 TInt MT_CSenDomFragmentBase_OnEndElementLL(); |
|
204 |
|
205 |
|
206 TInt MT_CSenDomFragmentBase_OnStartDocumentLL(); |
|
207 |
|
208 |
|
209 TInt MT_CSenDomFragmentBase_OnEndDocumentLL(); |
|
210 |
|
211 |
|
212 TInt MT_CSenDomFragmentBase_OnStartPrefixMappingLL(); |
|
213 |
|
214 |
|
215 TInt MT_CSenDomFragmentBase_OnEndPrefixMappingLL(); |
|
216 |
|
217 |
|
218 TInt MT_CSenDomFragmentBase_OnIgnorableWhiteSpaceLL(); |
|
219 |
|
220 |
|
221 TInt MT_CSenDomFragmentBase_OnSkippedEntityLL(); |
|
222 |
|
223 |
|
224 TInt MT_CSenDomFragmentBase_OnProcessingInstructionLL(); |
|
225 |
|
226 |
|
227 TInt MT_CSenDomFragmentBase_OnErrorL(); |
|
228 |
|
229 |
|
230 TInt MT_CSenDomFragmentBase_GetExtendedInterfaceL(); |
|
231 |
|
232 |
|
233 TInt MT_CSenDomFragmentBase_ContentLL(); |
|
234 |
|
235 |
|
236 TInt MT_CSenDomFragmentBase_NamespaceL(); |
|
237 |
|
238 |
|
239 TInt MT_CSenDomFragmentBase_ResetContentLL(); |
|
240 |
|
241 |
|
242 TInt MT_CSenDomFragmentBase_LocalNameL(); |
|
243 |
|
244 |
|
245 TInt MT_CSenDomFragmentBase_NsUriL(); |
|
246 |
|
247 |
|
248 TInt MT_CSenDomFragmentBase_NsPrefixL(); |
|
249 |
|
250 |
|
251 TInt MT_CSenDomFragmentBase_AsElementLL(); |
|
252 |
|
253 |
|
254 TInt MT_CSenDomFragmentBase_AsDocumentLL(); |
|
255 |
|
256 |
|
257 TInt MT_CSenDomFragmentBase_ExtractElementL(); |
|
258 |
|
259 |
|
260 TInt MT_CSenDomFragmentBase_OnDelegateParsingLL(); |
|
261 |
|
262 |
|
263 TInt MT_CSenDomFragmentBase_OnDelegateParsingL_1L(); |
|
264 |
|
265 |
|
266 TInt MT_CSenDomFragmentBase_SetOwnerL(); |
|
267 |
|
268 |
|
269 TInt MT_CSenDomFragmentBase_AsXmlUnicodeLL(); |
|
270 |
|
271 |
|
272 TInt MT_CSenDomFragmentBase_WriteAsXMLToLL(); |
|
273 |
|
274 |
|
275 TInt MT_CSenDomFragmentBase_ConsistsOfLL(); |
|
276 |
|
277 |
|
278 TInt MT_CSenDomFragmentBase_SetContentHandlerL(); |
|
279 |
|
280 |
|
281 TInt MT_CSenDomFragmentBase_Parsing1L(); |
|
282 |
|
283 |
|
284 TInt MT_CSenDomFragmentBase_Parsing2L(); |
|
285 |
|
286 |
|
287 TInt MT_CSenDomFragmentBase_Parsing3L(); |
|
288 |
|
289 |
|
290 TInt MT_CSenDomFragmentBase_Parsing4L(); |
|
291 |
|
292 |
|
293 TInt MT_CSenDomFragmentBase_Parsing5L(); |
|
294 |
|
295 |
|
296 TInt MT_CSenDomFragmentBase_Parsing6L(); |
|
297 |
|
298 |
|
299 TInt MT_CSenDomFragmentBase_Parsing7L(); |
|
300 |
|
301 |
|
302 TInt MT_CSenDomFragmentBase_Parsing8L(); |
|
303 |
|
304 |
|
305 TInt MT_CSenFragmentBase_NewLL(); |
|
306 |
|
307 |
|
308 TInt MT_CSenFragmentBase_NewL_1L(); |
|
309 |
|
310 |
|
311 TInt MT_CSenFragmentBase_NewL_2L(); |
|
312 |
|
313 |
|
314 TInt MT_CSenFragmentBase_NewL_3L(); |
|
315 |
|
316 |
|
317 TInt MT_CSenFragmentBase_NewL_4L(); |
|
318 |
|
319 |
|
320 TInt MT_CSenFragmentBase_NewL_5L(); |
|
321 |
|
322 |
|
323 TInt MT_CSenFragmentBase_NewL_6L(); |
|
324 |
|
325 |
|
326 TInt MT_CSenFragmentBase_NewL_7L(); |
|
327 |
|
328 |
|
329 TInt MT_CSenFragmentBase_OnStartElementLL(); |
|
330 |
|
331 |
|
332 TInt MT_CSenFragmentBase_OnEndElementLL(); |
|
333 |
|
334 |
|
335 TInt MT_CSenFragmentBase_OnStartDocumentLL(); |
|
336 |
|
337 |
|
338 TInt MT_CSenFragmentBase_OnEndDocumentLL(); |
|
339 |
|
340 |
|
341 TInt MT_CSenFragmentBase_OnContentLL(); |
|
342 |
|
343 |
|
344 TInt MT_CSenFragmentBase_OnStartPrefixMappingLL(); |
|
345 |
|
346 |
|
347 TInt MT_CSenFragmentBase_OnEndPrefixMappingLL(); |
|
348 |
|
349 |
|
350 TInt MT_CSenFragmentBase_OnIgnorableWhiteSpaceLL(); |
|
351 |
|
352 |
|
353 TInt MT_CSenFragmentBase_OnSkippedEntityLL(); |
|
354 |
|
355 |
|
356 TInt MT_CSenFragmentBase_OnProcessingInstructionLL(); |
|
357 |
|
358 |
|
359 TInt MT_CSenFragmentBase_OnErrorL(); |
|
360 |
|
361 |
|
362 TInt MT_CSenFragmentBase_GetExtendedInterfaceL(); |
|
363 |
|
364 |
|
365 TInt MT_CSenFragmentBase_ContentLL(); |
|
366 |
|
367 |
|
368 TInt MT_CSenFragmentBase_NamespaceL(); |
|
369 |
|
370 |
|
371 TInt MT_CSenFragmentBase_ResetContentLL(); |
|
372 |
|
373 |
|
374 TInt MT_CSenFragmentBase_LocalNameL(); |
|
375 |
|
376 |
|
377 TInt MT_CSenFragmentBase_NsUriL(); |
|
378 |
|
379 |
|
380 TInt MT_CSenFragmentBase_NsPrefixL(); |
|
381 |
|
382 |
|
383 TInt MT_CSenFragmentBase_AsElementLL(); |
|
384 |
|
385 |
|
386 TInt MT_CSenFragmentBase_AsDocumentLL(); |
|
387 |
|
388 |
|
389 TInt MT_CSenFragmentBase_ExtractElementL(); |
|
390 |
|
391 |
|
392 TInt MT_CSenFragmentBase_OnDelegateParsingLL(); |
|
393 |
|
394 |
|
395 TInt MT_CSenFragmentBase_OnDelegateParsingL_1L(); |
|
396 |
|
397 |
|
398 TInt MT_CSenFragmentBase_SetOwnerL(); |
|
399 |
|
400 |
|
401 TInt MT_CSenFragmentBase_OnResumeParsingFromLL(); |
|
402 |
|
403 |
|
404 TInt MT_CSenFragmentBase_OnWriteStartElementLL(); |
|
405 |
|
406 |
|
407 TInt MT_CSenFragmentBase_OnWriteEndElementLL(); |
|
408 |
|
409 |
|
410 TInt MT_CSenFragmentBase_AsXmlUnicodeLL(); |
|
411 |
|
412 |
|
413 TInt MT_CSenFragmentBase_AsXmlLL(); |
|
414 |
|
415 |
|
416 TInt MT_CSenFragmentBase_WriteAsXMLToLL(); |
|
417 |
|
418 |
|
419 TInt MT_CSenFragmentBase_ConsistsOfLL(); |
|
420 |
|
421 |
|
422 TInt MT_CSenFragmentBase_SetContentHandlerL(); |
|
423 |
|
424 |
|
425 TInt MT_CSenFragmentBase_Parsing1L(); |
|
426 |
|
427 |
|
428 TInt MT_CSenFragmentBase_Parsing2L(); |
|
429 |
|
430 |
|
431 TInt MT_CSenFragmentBase_Parsing3L(); |
|
432 |
|
433 |
|
434 TInt MT_CSenFragmentBase_Parsing4L(); |
|
435 |
|
436 |
|
437 TInt MT_CSenFragmentBase_Parsing5L(); |
|
438 |
|
439 |
|
440 TInt MT_CSenParser_NewLL(); |
|
441 |
|
442 |
|
443 TInt MT_CSenParser_NewLCL(); |
|
444 |
|
445 |
|
446 TInt MT_CSenParser_NewL_1L(); |
|
447 |
|
448 |
|
449 TInt MT_CSenParser_NewLC_1L(); |
|
450 |
|
451 |
|
452 TInt MT_CSenParser_NewL_2L(); |
|
453 |
|
454 |
|
455 TInt MT_CSenParser_NewLC_2L(); |
|
456 |
|
457 #if defined( __SERIES60_31__ ) || (!defined( __SERIES60_30__ ) && defined( SYMBIAN_SWI_POST_INSTALL_REVOCATION) ) |
|
458 |
|
459 TInt MT_CSenParser_NewL_3L(); |
|
460 TInt MT_CSenParser_NewLC_3L(); |
|
461 |
|
462 #endif |
|
463 |
|
464 |
|
465 TInt MT_RSenDocument_NewLL(); |
|
466 |
|
467 |
|
468 TInt MT_RSenDocument_NewLCL(); |
|
469 |
|
470 |
|
471 TInt MT_RSenDocument_NewL_1L(); |
|
472 |
|
473 |
|
474 TInt MT_RSenDocument_NewLC_1L(); |
|
475 |
|
476 |
|
477 TInt MT_RSenDocument_CopyL(); |
|
478 |
|
479 |
|
480 TInt MT_RSenDocument_CloseL(); |
|
481 |
|
482 |
|
483 TInt MT_RSenDocument_DestroyL(); |
|
484 |
|
485 /** |
|
486 * Method used to log version of test class |
|
487 */ |
|
488 void SendTestClassVersion(); |
|
489 |
|
490 |
|
491 }; |
|
492 |
|
493 #endif // SENFRAGMENTTESTER_H |
|
494 |
|
495 // End of File |