|
1 /* |
|
2 * Copyright (c) 2008-2009 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 the License "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: |
|
15 * Defines test steps for component management APIs in the SCR |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 @test |
|
24 */ |
|
25 |
|
26 #ifndef COMPONENTMANAGEMENTSTEPS_H |
|
27 #define COMPONENTMANAGEMENTSTEPS_H |
|
28 |
|
29 #include "tscrstep.h" |
|
30 class CScrTestServer; |
|
31 |
|
32 _LIT(KScrAddComponentStep, "SCRAddComponent"); |
|
33 _LIT(KScrSetComponentPropertyStep, "SCRSetComponentProperty"); |
|
34 _LIT(KScrRegisterFileStep, "SCRRegisterFile"); |
|
35 _LIT(KScrAddFilePropertyStep, "SCRAddFileProperty"); |
|
36 _LIT(KScrSetCommonPropertyStep, "SCRSetCommonProperty"); |
|
37 _LIT(KScrDeleteComponentPropertyStep, "SCRDeleteComponentProperty"); |
|
38 _LIT(KScrDeleteFilePropertyStep, "SCRDeleteFileProperty"); |
|
39 _LIT(KScrUnregisterFileStep, "SCRUnregisterFile"); |
|
40 _LIT(KScrDeleteComponentStep, "SCRDeleteComponent"); |
|
41 _LIT(KScrDeleteAllComponentsStep, "SCRDeleteAllComponents"); |
|
42 _LIT(KScrInstallComponentStep, "SCRInstallComponent"); |
|
43 _LIT(KScrAddComponentDependencyStep, "SCRAddComponentDependency"); |
|
44 _LIT(KScrDeleteComponentDependencyStep, "SCRDeleteComponentDependency"); |
|
45 |
|
46 class CScrAddComponentStep : public CScrTestStep |
|
47 /** |
|
48 TEF test step which exercises the SCR AddComponent interface |
|
49 */ |
|
50 { |
|
51 public: |
|
52 CScrAddComponentStep(CScrTestServer& aParent); |
|
53 |
|
54 protected: |
|
55 // From CScrTestStep |
|
56 void ImplTestStepPreambleL(); |
|
57 void ImplTestStepL(); |
|
58 void ImplTestStepPostambleL(); |
|
59 |
|
60 private: |
|
61 Usif::TComponentId AddLocalisableComponentL(); |
|
62 void VerifyComponentLocalizablesL(Usif::TComponentId aComponentId); |
|
63 }; |
|
64 |
|
65 class CScrSetComponentPropertyStep : public CScrTestStep |
|
66 /** |
|
67 TEF test step which exercises the SCR SetComponentProperty interface. |
|
68 */ |
|
69 { |
|
70 public: |
|
71 CScrSetComponentPropertyStep(CScrTestServer& aParent); |
|
72 |
|
73 protected: |
|
74 // From CScrTestStep |
|
75 void ImplTestStepPreambleL(); |
|
76 void ImplTestStepL(); |
|
77 void ImplTestStepPostambleL(); |
|
78 }; |
|
79 |
|
80 class CScrRegisterFileStep : public CScrTestStep |
|
81 /** |
|
82 TEF test step which exercises the SCR RegisterComponentFile interface |
|
83 */ |
|
84 { |
|
85 public: |
|
86 CScrRegisterFileStep(CScrTestServer& aParent); |
|
87 |
|
88 protected: |
|
89 // From CScrTestStep |
|
90 void ImplTestStepPreambleL(); |
|
91 void ImplTestStepL(); |
|
92 void ImplTestStepPostambleL(); |
|
93 }; |
|
94 |
|
95 class CScrAddFilePropertyStep : public CScrTestStep |
|
96 /** |
|
97 TEF test step which exercises the SCR SetFilePropertyL interface |
|
98 */ |
|
99 { |
|
100 public: |
|
101 CScrAddFilePropertyStep(CScrTestServer& aParent); |
|
102 |
|
103 protected: |
|
104 // From CScrTestStep |
|
105 void ImplTestStepPreambleL(); |
|
106 void ImplTestStepL(); |
|
107 void ImplTestStepPostambleL(); |
|
108 }; |
|
109 |
|
110 class CScrSetCommonPropertyStep : public CScrTestStep |
|
111 /** |
|
112 TEF test step which exercises the SCR SetComponentNameL, SetVendorNameL and SetVersionL interface |
|
113 */ |
|
114 { |
|
115 public: |
|
116 CScrSetCommonPropertyStep(CScrTestServer& aParent); |
|
117 |
|
118 protected: |
|
119 // From CScrTestStep |
|
120 void ImplTestStepPreambleL(); |
|
121 void ImplTestStepL(); |
|
122 void ImplTestStepPostambleL(); |
|
123 }; |
|
124 |
|
125 class CScrDeleteComponentPropertyStep : public CScrTestStep |
|
126 /** |
|
127 TEF test step which exercises the SCR DeleteComponentPropertyL interface |
|
128 */ |
|
129 { |
|
130 public: |
|
131 CScrDeleteComponentPropertyStep(CScrTestServer& aParent); |
|
132 |
|
133 protected: |
|
134 // From CScrTestStep |
|
135 void ImplTestStepPreambleL(); |
|
136 void ImplTestStepL(); |
|
137 void ImplTestStepPostambleL(); |
|
138 }; |
|
139 |
|
140 class CScrDeleteFilePropertyStep : public CScrTestStep |
|
141 /** |
|
142 TEF test step which exercises the SCR DeleteFilePropertyL interface |
|
143 */ |
|
144 { |
|
145 public: |
|
146 CScrDeleteFilePropertyStep(CScrTestServer& aParent); |
|
147 |
|
148 protected: |
|
149 // From CScrTestStep |
|
150 void ImplTestStepPreambleL(); |
|
151 void ImplTestStepL(); |
|
152 void ImplTestStepPostambleL(); |
|
153 }; |
|
154 |
|
155 class CScrUnregisterFileStep : public CScrTestStep |
|
156 /** |
|
157 TEF test step which exercises the SCR UnregisterComponentFileL interface |
|
158 */ |
|
159 { |
|
160 public: |
|
161 CScrUnregisterFileStep(CScrTestServer& aParent); |
|
162 |
|
163 protected: |
|
164 // From CScrTestStep |
|
165 void ImplTestStepPreambleL(); |
|
166 void ImplTestStepL(); |
|
167 void ImplTestStepPostambleL(); |
|
168 }; |
|
169 |
|
170 class CScrDeleteComponentStep : public CScrTestStep |
|
171 /** |
|
172 TEF test step which exercises the SCR DeleteComponentL interface |
|
173 */ |
|
174 { |
|
175 public: |
|
176 CScrDeleteComponentStep(CScrTestServer& aParent); |
|
177 |
|
178 protected: |
|
179 // From CScrTestStep |
|
180 void ImplTestStepPreambleL(); |
|
181 void ImplTestStepL(); |
|
182 void ImplTestStepPostambleL(); |
|
183 }; |
|
184 |
|
185 class CScrDeleteAllComponentsStep : public CScrTestStep |
|
186 /** |
|
187 TEF test step which deletes all components added by the harness. |
|
188 */ |
|
189 { |
|
190 public: |
|
191 CScrDeleteAllComponentsStep(CScrTestServer& aParent); |
|
192 |
|
193 protected: |
|
194 // From CScrTestStep |
|
195 void ImplTestStepPreambleL(); |
|
196 void ImplTestStepL(); |
|
197 void ImplTestStepPostambleL(); |
|
198 }; |
|
199 |
|
200 class CScrInstallComponentStep : public CScrTestStep |
|
201 /** |
|
202 TEF test step which installs a typical SWI component. |
|
203 */ |
|
204 { |
|
205 public: |
|
206 CScrInstallComponentStep(CScrTestServer& aParent); |
|
207 |
|
208 protected: |
|
209 // From CScrTestStep |
|
210 void ImplTestStepPreambleL(); |
|
211 void ImplTestStepL(); |
|
212 void ImplTestStepPostambleL(); |
|
213 }; |
|
214 |
|
215 class CScrAddComponentDependencyStep : public CScrTestStep |
|
216 /** |
|
217 TEF test step which exercises the SCR AddComponentDependencyL interface |
|
218 */ |
|
219 { |
|
220 public: |
|
221 CScrAddComponentDependencyStep(CScrTestServer& aParent); |
|
222 |
|
223 protected: |
|
224 // From CScrTestStep |
|
225 void ImplTestStepPreambleL(); |
|
226 void ImplTestStepL(); |
|
227 void ImplTestStepPostambleL(); |
|
228 }; |
|
229 |
|
230 class CScrDeleteComponentDependencyStep : public CScrTestStep |
|
231 /** |
|
232 TEF test step which exercises the SCR DeleteComponentDependencyL interface |
|
233 */ |
|
234 { |
|
235 public: |
|
236 CScrDeleteComponentDependencyStep(CScrTestServer& aParent); |
|
237 |
|
238 protected: |
|
239 // From CScrTestStep |
|
240 void ImplTestStepPreambleL(); |
|
241 void ImplTestStepL(); |
|
242 void ImplTestStepPostambleL(); |
|
243 }; |
|
244 |
|
245 #endif /* COMPONENTMANAGEMENTSTEPS_H */ |