|
1 /* |
|
2 * Copyright (c) 2008 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: Defination of class MT_CHSPSConfigurationIf |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_MT_HSPSCONFIGURATIONIF_H |
|
20 #define C_MT_HSPSCONFIGURATIONIF_H |
|
21 |
|
22 #include <eunitdecorators.h> |
|
23 #include <liwservicehandler.h> |
|
24 #include "mt_hsps.h" |
|
25 |
|
26 /** |
|
27 * This class is a tester class for HSPS SAPI configuration interface |
|
28 */ |
|
29 NONSHARABLE_CLASS( MT_CHSPSConfigurationIf ) : public MT_CHSPS |
|
30 { |
|
31 public: // Constructors and destructors |
|
32 |
|
33 /** |
|
34 * Two phase construction |
|
35 */ |
|
36 static MT_CHSPSConfigurationIf* NewL(); |
|
37 |
|
38 /** |
|
39 * Destructor |
|
40 */ |
|
41 virtual ~MT_CHSPSConfigurationIf(); |
|
42 |
|
43 private: // Constructors and destructors |
|
44 |
|
45 /** |
|
46 * Default constructor. |
|
47 */ |
|
48 MT_CHSPSConfigurationIf(); |
|
49 |
|
50 /** |
|
51 * 2nd tier constructor. |
|
52 */ |
|
53 void ConstructL(); |
|
54 |
|
55 private: // Common test case methods |
|
56 |
|
57 /** |
|
58 * Remove resources from client's private folder |
|
59 */ |
|
60 void ResetClientFolderL(); |
|
61 |
|
62 /** |
|
63 * Setup for the unit test. |
|
64 */ |
|
65 void SetupL(); |
|
66 |
|
67 /** |
|
68 * Unit test teardown. |
|
69 */ |
|
70 void Teardown(); |
|
71 |
|
72 /** |
|
73 * Prints return value to a file. |
|
74 * @param aOutParamList Parameter list to be printed. |
|
75 */ |
|
76 void PrintReturnValuesL( |
|
77 CLiwGenericParamList& aOutParamList ); |
|
78 |
|
79 private: // Test cases |
|
80 |
|
81 /** |
|
82 * Test case function for test case GetActiveAppConf(1) |
|
83 * See HSPS module test specification |
|
84 */ |
|
85 void GetActiveAppConf_1_L(); |
|
86 /** |
|
87 * Test case function for test case GetActiveAppConf(2) |
|
88 * See HSPS module test specification |
|
89 */ |
|
90 void GetActiveAppConf_2_L(); |
|
91 /** |
|
92 * Test case function for test case GetActiveAppConf(3) |
|
93 * See HSPS module test specification |
|
94 */ |
|
95 void GetActiveAppConf_3_L(); |
|
96 /** |
|
97 * Test case function for test case GetPluginConf(1) |
|
98 * See HSPS module test specification |
|
99 */ |
|
100 void GetPluginConf_1_L(); |
|
101 /** |
|
102 * Test case function for test case GetPluginConf(2) |
|
103 * See HSPS module test specification |
|
104 */ |
|
105 void GetPluginConf_2_L(); |
|
106 /** |
|
107 * Test case function for test case GetPluginConf(3) |
|
108 * See HSPS module test specification |
|
109 */ |
|
110 void GetPluginConf_3_L(); |
|
111 /** |
|
112 * Test case function for test case GetPluginConf(4) |
|
113 * See HSPS module test specification |
|
114 */ |
|
115 void GetPluginConf_4_L(); |
|
116 /** |
|
117 * Test case function for test case GetPluginConf(5) |
|
118 * See HSPS module test specification |
|
119 */ |
|
120 void GetPluginConf_5_L(); |
|
121 /** |
|
122 * Test case function for test case GetPlugins(1) |
|
123 * See HSPS module test specification |
|
124 */ |
|
125 void GetPlugins_1_L(); |
|
126 /** |
|
127 * Test case function for test case GetPlugins(2) |
|
128 * See HSPS module test specification |
|
129 */ |
|
130 void GetPlugins_2_L(); |
|
131 /** |
|
132 * Test case function for test case GetPlugins(3) |
|
133 * See HSPS module test specification |
|
134 */ |
|
135 void GetPlugins_3_L(); |
|
136 /** |
|
137 * Test case function for test case GetPlugins(4) |
|
138 * See HSPS module test specification |
|
139 */ |
|
140 void GetPlugins_4_L(); |
|
141 /** |
|
142 * Test case function for test case GetPlugins(5) |
|
143 * See HSPS module test specification |
|
144 */ |
|
145 void GetPlugins_5_L(); |
|
146 /** |
|
147 * Test case function for test case GetPlugins(6) |
|
148 * See HSPS module test specification |
|
149 */ |
|
150 void GetPlugins_6_L(); |
|
151 /** |
|
152 * Test case function for test case GetPlugins(7) |
|
153 * See HSPS module test specification |
|
154 */ |
|
155 void GetPlugins_7_L(); |
|
156 /** |
|
157 * Test case function for test case GetPluginList(1) |
|
158 * See HSPS module test specification |
|
159 */ |
|
160 void GetPluginList_1_L(); |
|
161 /** |
|
162 * Test case function for test case GetPluginList(2) |
|
163 * See HSPS module test specification |
|
164 */ |
|
165 void GetPluginList_2_L(); |
|
166 /** |
|
167 * Test case function for test case GetPluginList(3) |
|
168 * See HSPS module test specification |
|
169 */ |
|
170 void GetPluginList_3_L(); |
|
171 /** |
|
172 * Test case function for test case GetPluginList(4) |
|
173 * See HSPS module test specification |
|
174 */ |
|
175 void GetPluginList_4_L(); |
|
176 /** |
|
177 * Test case function for test case GetPluginList(5) |
|
178 * See HSPS module test specification |
|
179 */ |
|
180 void GetPluginList_5_L(); |
|
181 /** |
|
182 * Test case function for test case GetPluginList(6) |
|
183 * See HSPS module test specification |
|
184 */ |
|
185 void GetPluginList_6_L(); |
|
186 /** |
|
187 * Test case function for test case GetPluginList(7) |
|
188 * See HSPS module test specification |
|
189 */ |
|
190 void GetPluginList_7_L(); |
|
191 /** |
|
192 * Test case function for test case GetPluginList(8) |
|
193 * See HSPS module test specification |
|
194 */ |
|
195 void GetPluginList_8_L(); |
|
196 /** |
|
197 * Test case function for test case AddPlugin(1) |
|
198 * See HSPS module test specification |
|
199 */ |
|
200 void AddPlugin_1_L(); |
|
201 /** |
|
202 * Test case function for test case AddPlugin(2) |
|
203 * See HSPS module test specification |
|
204 */ |
|
205 void AddPlugin_2_L(); |
|
206 /** |
|
207 * Test case function for test case AddPlugin(3) |
|
208 * See HSPS module test specification |
|
209 */ |
|
210 void AddPlugin_3_L(); |
|
211 /** |
|
212 * Test case function for test case AddPlugin(4) |
|
213 * See HSPS module test specification |
|
214 */ |
|
215 void AddPlugin_4_L(); |
|
216 /** |
|
217 * Test case function for test case AddPlugin(5) |
|
218 * See HSPS module test specification |
|
219 */ |
|
220 void AddPlugin_5_L(); |
|
221 /** |
|
222 * Test case function for test case AddPlugin(6) |
|
223 * See HSPS module test specification |
|
224 */ |
|
225 void AddPlugin_6_L(); |
|
226 /** |
|
227 * Test case function for test case AddPlugin(7) |
|
228 * See HSPS module test specification |
|
229 */ |
|
230 void AddPlugin_7_L(); |
|
231 /** |
|
232 * Test case function for test case AddPlugin(8) |
|
233 * See HSPS module test specification |
|
234 */ |
|
235 void AddPlugin_8_L(); |
|
236 /** |
|
237 * Test case function for test case AddPlugin(9) |
|
238 * See HSPS module test specification |
|
239 */ |
|
240 void AddPlugin_9_L(); |
|
241 /** |
|
242 * Test case function for test case AddPlugin(10) |
|
243 * See HSPS module test specification |
|
244 */ |
|
245 void AddPlugin_10_L(); |
|
246 /** |
|
247 * Test case function for test case AddPlugin(11) |
|
248 * See HSPS module test specification |
|
249 */ |
|
250 void AddPlugin_11_L(); |
|
251 /** |
|
252 * Test case function for test case RemovePlugin(1) |
|
253 * See HSPS module test specification |
|
254 */ |
|
255 void RemovePlugin_1_L(); |
|
256 /** |
|
257 * Test case function for test case RemovePlugin(2) |
|
258 * See HSPS module test specification |
|
259 */ |
|
260 void RemovePlugin_2_L(); |
|
261 /** |
|
262 * Test case function for test case RemovePlugin(3) |
|
263 * See HSPS module test specification |
|
264 */ |
|
265 void RemovePlugin_3_L(); |
|
266 /** |
|
267 * Test case function for test case RemovePlugin(4) |
|
268 * See HSPS module test specification |
|
269 */ |
|
270 void RemovePlugin_4_L(); |
|
271 /** |
|
272 * Test case function for test case SetPluginSettings(1) |
|
273 * See HSPS module test specification |
|
274 */ |
|
275 void SetPluginSettings_1_L(); |
|
276 /** |
|
277 * Test case function for test case SetPluginSettings(2) |
|
278 * See HSPS module test specification |
|
279 */ |
|
280 void SetPluginSettings_2_L(); |
|
281 /** |
|
282 * Test case function for test case SetPluginSettings(3) |
|
283 * See HSPS module test specification |
|
284 */ |
|
285 void SetPluginSettings_3_L(); |
|
286 /** |
|
287 * Test case function for test case SetPluginSettings(4) |
|
288 * See HSPS module test specification |
|
289 */ |
|
290 void SetPluginSettings_4_L(); |
|
291 /** |
|
292 * Test case function for test case SetPluginSettings(5) |
|
293 * See HSPS module test specification |
|
294 */ |
|
295 void SetPluginSettings_5_L(); |
|
296 /** |
|
297 * Test case function for test case SetPluginSettings(6) |
|
298 * See HSPS module test specification |
|
299 */ |
|
300 void SetPluginSettings_6_L(); |
|
301 /** |
|
302 * Test case function for test case GetPluginSettings(1) |
|
303 * See HSPS module test specification |
|
304 */ |
|
305 void GetPluginSettings_1_L(); |
|
306 /** |
|
307 * Test case function for test case GetPluginSettings(2) |
|
308 * See HSPS module test specification |
|
309 */ |
|
310 void GetPluginSettings_2_L(); |
|
311 /** |
|
312 * Test case function for test case GetPluginSettings(3) |
|
313 * See HSPS module test specification |
|
314 */ |
|
315 void GetPluginSettings_3_L(); |
|
316 /** |
|
317 * Test case function for test case MovePlugins(1) |
|
318 * See HSPS module test specification |
|
319 */ |
|
320 void MovePlugins_1_L(); |
|
321 /** |
|
322 * Test case function for test case MovePlugins(2) |
|
323 * See HSPS module test specification |
|
324 */ |
|
325 void MovePlugins_2_L(); |
|
326 /** |
|
327 * Test case function for test case MovePlugins(3) |
|
328 * See HSPS module test specification |
|
329 */ |
|
330 void MovePlugins_3_L(); |
|
331 /** |
|
332 * Test case function for test case MovePlugins(4) |
|
333 * See HSPS module test specification |
|
334 */ |
|
335 void MovePlugins_4_L(); |
|
336 /** |
|
337 * Test case function for test case MovePlugins(5) |
|
338 * See HSPS module test specification |
|
339 */ |
|
340 void MovePlugins_5_L(); |
|
341 /** |
|
342 * Test case function for test case MovePlugins(6) |
|
343 * See HSPS module test specification |
|
344 */ |
|
345 void MovePlugins_6_L(); |
|
346 /** |
|
347 * Test case function for test case ReplacePlugin(1) |
|
348 * See HSPS module test specification |
|
349 */ |
|
350 void ReplacePlugin_1_L(); |
|
351 /** |
|
352 * Test case function for test case GetAppConfs(1) |
|
353 * See HSPS module test specification |
|
354 */ |
|
355 void GetAppConfs_1_L(); |
|
356 /** |
|
357 * Test case function for test case SetActiveAppConf(1) |
|
358 * See HSPS module test specification |
|
359 */ |
|
360 void SetActiveAppConf_1_L(); |
|
361 /** |
|
362 * Test case function for test case SetActiveAppConf(2) |
|
363 * See HSPS module test specification |
|
364 */ |
|
365 void SetActiveAppConf_2_L(); |
|
366 /** |
|
367 * Test case function for test case SetActiveAppConf(3) |
|
368 * See HSPS module test specification |
|
369 */ |
|
370 void SetActiveAppConf_3_L(); |
|
371 /** |
|
372 * Test case function for test case SetActiveAppConf(4) |
|
373 * See HSPS module test specification |
|
374 */ |
|
375 void SetActiveAppConf_4_L(); |
|
376 /** |
|
377 * Test case function for test case RequestNotify(1) |
|
378 * See HSPS module test specification |
|
379 */ |
|
380 void RequestNotify_1_L(); |
|
381 /** |
|
382 * Test case function for test case RequestNotify(2) |
|
383 * See HSPS module test specification |
|
384 */ |
|
385 void RequestNotify_2_L(); |
|
386 /** |
|
387 * Test case function for test case RequestNotify(3) |
|
388 * See HSPS module test specification |
|
389 */ |
|
390 void RequestNotify_3_L(); |
|
391 /** |
|
392 * Test case function for test case RequestNotify(4) |
|
393 * See HSPS module test specification |
|
394 */ |
|
395 void RequestNotify_4_L(); |
|
396 /** |
|
397 * Test case function for test case RequestNotify(5) |
|
398 * See HSPS module test specification |
|
399 */ |
|
400 void RequestNotify_5_L(); |
|
401 /** |
|
402 * Test case function for test case RequestNotify(6) |
|
403 * See HSPS module test specification |
|
404 */ |
|
405 void RequestNotify_6_L(); |
|
406 /** |
|
407 * Test case function for test case SisxInstallation(1) |
|
408 * See HSPS module test specification |
|
409 */ |
|
410 void SisxInstallation_1_L(); |
|
411 /** |
|
412 * Test case function for test case NativeInstallation(1) |
|
413 * See HSPS module test specification |
|
414 */ |
|
415 void NativeInstallation_1_L(); |
|
416 /** |
|
417 * Test case function for test case SetActivePlugin(1) |
|
418 * See HSPS module test specification |
|
419 */ |
|
420 void SetActivePlugin_1_L(); |
|
421 /** |
|
422 * Test case function for test case SetActivePlugin(2) |
|
423 * See HSPS module test specification |
|
424 */ |
|
425 void SetActivePlugin_2_L(); |
|
426 /** |
|
427 * Test case function for test case SetActivePlugin(3) |
|
428 * See HSPS module test specification |
|
429 */ |
|
430 void SetActivePlugin_3_L(); |
|
431 /** |
|
432 * Test case function for test case SetActivePlugin(4) |
|
433 * See HSPS module test specification |
|
434 */ |
|
435 void SetActivePlugin_4_L(); |
|
436 /** |
|
437 * Test case function for test case SetActivePlugin(5) |
|
438 * See HSPS module test specification |
|
439 */ |
|
440 void SetActivePlugin_5_L(); |
|
441 /** |
|
442 * Test case function for test case SetActivePlugin(6) |
|
443 * See HSPS module test specification |
|
444 */ |
|
445 void SetActivePlugin_6_L(); |
|
446 |
|
447 private: // Data |
|
448 |
|
449 EUNIT_DECLARE_TEST_TABLE; |
|
450 |
|
451 RFs iFileserver; |
|
452 |
|
453 }; |
|
454 |
|
455 #endif // C_MT_HSPSCONFIGURATIONIF_H |
|
456 |
|
457 // End of file |