|
1 // Copyright (c) 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 // |
|
15 |
|
16 /** |
|
17 @file texml2teststep.h |
|
18 @internalTechnology |
|
19 */ |
|
20 #ifndef _XML2TESTSTEP_H_ |
|
21 #define _XML2TESTSTEP_H_ |
|
22 |
|
23 #include <test/testexecutestepbase.h> |
|
24 |
|
25 /** |
|
26 * Test Steps: |
|
27 * KXmlEngLeaveOOM : tests xmlengmem:XmlEngLeaveOOML |
|
28 * KXmlEngXmlCharFromDes : tests xmlengutils:XmlEngXmlCharFromDesL |
|
29 * KXmlEngEscapeForXmlValue : tests xmlengutils:XmlEngEscapeForXmlValue |
|
30 * KXmlEnginePush : tests xmlengxmlengine:XmlEnginePushL |
|
31 * KXmlEnginePopAndClose : tests xmlengxmlengine:XmlEnginePopAndClose |
|
32 * KXmlStringCopy : tests xmlengxmlstring:CopyL |
|
33 * KXmlStringFree : tests xmlengxmlstring:Free |
|
34 * KXmlStringLength : tests xmlengxmlstring:Length |
|
35 * KXmlStringSet1 : tests xmlengxmlstring:Set |
|
36 * KXmlStringAlloc1 : tests xmlengxmlstring:AllocL |
|
37 * KXmlStringAlloc2 : tests xmlengxmlstring:AllocLC |
|
38 * KXmlStringSet2 : tests xmlengxmlstring:SetL |
|
39 * KXmlStringSet3 : tests xmlengxmlstring:SetL |
|
40 * KXmlStringAllocAndFree1 : tests xmlengxmlstring:AllocAndFreeL |
|
41 * KXmlStringAllocAndFree2 : tests xmlengxmlstring:AllocAndFreeLC |
|
42 * KXmlStringAppend : tests xmlengxmlstring:AppendL |
|
43 */ |
|
44 _LIT(KXmlEngLeaveOOMStep1, "XmlEngLeaveOOMStep1"); |
|
45 _LIT(KXmlEngLeaveOOMStep2, "XmlEngLeaveOOMStep2"); |
|
46 _LIT(KXmlEngXmlCharFromDes, "XmlEngXmlCharFromDes"); |
|
47 _LIT(KXmlEngEscapeForXmlValueStep1, "XmlEngEscapeForXmlValueStep1"); |
|
48 _LIT(KXmlEngEscapeForXmlValueStep2, "XmlEngEscapeForXmlValueStep2"); |
|
49 _LIT(KXmlEnginePushAndPop, "XmlEnginePushAndPop"); |
|
50 _LIT(KXmlStringCopy, "XmlStringCopy"); |
|
51 _LIT(KXmlStringSetStep1, "XmlStringSetStep1"); |
|
52 _LIT(KXmlStringSetStep2, "XmlStringSetStep2"); |
|
53 _LIT(KXmlStringAlloc1, "XmlStringAlloc1"); |
|
54 _LIT(KXmlStringAlloc2, "XmlStringAlloc2"); |
|
55 _LIT(KXmlStringCompare, "XmlStringCompare"); |
|
56 _LIT(KXmlStringAllocAndFree1, "XmlStringAllocAndFree1"); |
|
57 _LIT(KXmlStringAllocAndFree2, "XmlStringAllocAndFree2"); |
|
58 _LIT(KXmlStringAppend, "XmlStringAppend"); |
|
59 |
|
60 /** |
|
61 * For the test cases covering APIs in xmlengmem |
|
62 */ |
|
63 class CXmlEngMemStep : public CTestStep |
|
64 { |
|
65 public: |
|
66 CXmlEngMemStep(const TDesC& aStepName); |
|
67 virtual TVerdict doTestStepL(void); |
|
68 private: |
|
69 TVerdict TestKXmlEngLeaveOOMStep1(); |
|
70 TVerdict TestKXmlEngLeaveOOMStep2(); |
|
71 }; |
|
72 |
|
73 /** |
|
74 * For the test cases covering APIs in xmlengutils |
|
75 */ |
|
76 class CXmlUtilStep : public CTestStep |
|
77 { |
|
78 public: |
|
79 CXmlUtilStep(const TDesC& aStepName); |
|
80 virtual TVerdict doTestStepL(void); |
|
81 private: |
|
82 TVerdict TestKXmlEngXmlCharFromDes(); |
|
83 TVerdict TestKXmlEngEscapeForXmlValueStep1(); |
|
84 TVerdict TestKXmlEngEscapeForXmlValueStep2(); |
|
85 TBool CompareChars(const char* aString1,const char* aString2); |
|
86 TBool CompareDescAndChar(const char* aString,TDesC8& aDesc); |
|
87 }; |
|
88 |
|
89 /** |
|
90 * For the test cases covering APIs in xmlengxmlengine |
|
91 */ |
|
92 class CXmlEngineStep : public CTestStep |
|
93 { |
|
94 public: |
|
95 CXmlEngineStep(const TDesC& aStepName); |
|
96 virtual TVerdict doTestStepL(void); |
|
97 private: |
|
98 TVerdict TestKXmlEnginePushAndPopL(); |
|
99 }; |
|
100 |
|
101 /** |
|
102 * For the test cases covering APIs in xmlengxmlstring |
|
103 */ |
|
104 class CXmlStringStep : public CTestStep |
|
105 { |
|
106 public: |
|
107 CXmlStringStep(const TDesC& aStepName); |
|
108 virtual TVerdict doTestStepL(void); |
|
109 private: |
|
110 TVerdict TestKXmlStringCopy(); |
|
111 TVerdict TestKXmlStringSetStep1(); |
|
112 TVerdict TestKXmlStringSetStep2(); |
|
113 TVerdict TestKXmlStringAppend(); |
|
114 TVerdict TestKXmlStringCompare(); |
|
115 TVerdict TestKXmlStringAlloc1(); |
|
116 TVerdict TestKXmlStringAlloc2(); |
|
117 TVerdict TestKXmlStringAllocAndFree1(); |
|
118 TVerdict TestKXmlStringAllocAndFree2(); |
|
119 |
|
120 }; |
|
121 #endif |