|
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: Implementation of MT_CHSPSConfigurationIf class |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <s32mem.h> |
|
19 #include <digia/eunit/eunitmacros.h> |
|
20 #include <digia/eunit/eunitdecorators.h> |
|
21 #include <digia/eunit/eunituids.h> |
|
22 #include <apgtask.h> |
|
23 #include <eikenv.h> |
|
24 #include <centralrepository.h> |
|
25 #include <bautils.h> |
|
26 #include "mt_hspsconfigurationif.h" |
|
27 #include "mt_hspsliwlistprinter.h" |
|
28 #include "mt_hspsinstallationservice.h" |
|
29 |
|
30 #include "liwgenericparam.hrh" |
|
31 |
|
32 // get active app conf |
|
33 #include "mt_hsps_getactiveappconf_1.h" |
|
34 #include "mt_hsps_getactiveappconf_2.h" |
|
35 #include "mt_hsps_getactiveappconf_3.h" |
|
36 // get plugin conf |
|
37 #include "mt_hsps_getpluginconf_1.h" |
|
38 #include "mt_hsps_getpluginconf_2.h" |
|
39 #include "mt_hsps_getpluginconf_3.h" |
|
40 #include "mt_hsps_getpluginconf_4.h" |
|
41 #include "mt_hsps_getpluginconf_5.h" |
|
42 // get plugins |
|
43 #include "mt_hsps_getplugins_1.h" |
|
44 #include "mt_hsps_getplugins_2.h" |
|
45 #include "mt_hsps_getplugins_3.h" |
|
46 #include "mt_hsps_getplugins_4.h" |
|
47 #include "mt_hsps_getplugins_5.h" |
|
48 #include "mt_hsps_getplugins_6.h" |
|
49 #include "mt_hsps_getplugins_7.h" |
|
50 #include "mt_hsps_getplugins_8.h" |
|
51 // get plugin list |
|
52 #include "mt_hsps_getpluginlist_1.h" |
|
53 #include "mt_hsps_getpluginlist_2.h" |
|
54 #include "mt_hsps_getpluginlist_3.h" |
|
55 #include "mt_hsps_getpluginlist_4.h" |
|
56 #include "mt_hsps_getpluginlist_5.h" |
|
57 #include "mt_hsps_getpluginlist_6.h" |
|
58 #include "mt_hsps_getpluginlist_7.h" |
|
59 #include "mt_hsps_getpluginlist_8.h" |
|
60 // add plugin |
|
61 #include "mt_hsps_addplugin_1.h" |
|
62 #include "mt_hsps_addplugin_2.h" |
|
63 #include "mt_hsps_addplugin_3.h" |
|
64 #include "mt_hsps_addplugin_4.h" |
|
65 #include "mt_hsps_addplugin_5.h" |
|
66 #include "mt_hsps_addplugin_6.h" |
|
67 #include "mt_hsps_addplugin_7.h" |
|
68 #include "mt_hsps_addplugin_8.h" |
|
69 #include "mt_hsps_addplugin_9.h" |
|
70 #include "mt_hsps_addplugin_10.h" |
|
71 #include "mt_hsps_addplugin_11.h" |
|
72 // remove plugin |
|
73 #include "mt_hsps_removeplugin_1.h" |
|
74 #include "mt_hsps_removeplugin_2.h" |
|
75 #include "mt_hsps_removeplugin_3.h" |
|
76 #include "mt_hsps_removeplugin_4.h" |
|
77 // set plugin settings |
|
78 #include "mt_hsps_setpluginsettings_1.h" |
|
79 #include "mt_hsps_setpluginsettings_2.h" |
|
80 #include "mt_hsps_setpluginsettings_3.h" |
|
81 #include "mt_hsps_setpluginsettings_4.h" |
|
82 #include "mt_hsps_setpluginsettings_5.h" |
|
83 #include "mt_hsps_setpluginsettings_6.h" |
|
84 // get plugin setting |
|
85 #include "mt_hsps_getpluginsettings_1.h" |
|
86 #include "mt_hsps_getpluginsettings_2.h" |
|
87 #include "mt_hsps_getpluginsettings_3.h" |
|
88 // mvoe plugins |
|
89 #include "mt_hsps_moveplugins_1.h" |
|
90 #include "mt_hsps_moveplugins_2.h" |
|
91 #include "mt_hsps_moveplugins_3.h" |
|
92 #include "mt_hsps_moveplugins_4.h" |
|
93 #include "mt_hsps_moveplugins_5.h" |
|
94 #include "mt_hsps_moveplugins_6.h" |
|
95 // replace plugin |
|
96 #include "mt_hsps_replaceplugin_1.h" |
|
97 // get app confs |
|
98 #include "mt_hsps_getappconfs_1.h" |
|
99 // set app confs |
|
100 #include "mt_hsps_setactiveappconf_1.h" |
|
101 #include "mt_hsps_setactiveappconf_2.h" |
|
102 #include "mt_hsps_setactiveappconf_3.h" |
|
103 #include "mt_hsps_setactiveappconf_4.h" |
|
104 // request notification |
|
105 #include "mt_hsps_requestnotify_1.h" |
|
106 #include "mt_hsps_requestnotify_2.h" |
|
107 #include "mt_hsps_requestnotify_3.h" |
|
108 #include "mt_hsps_requestnotify_4.h" |
|
109 #include "mt_hsps_requestnotify_5.h" |
|
110 #include "mt_hsps_requestnotify_6.h" |
|
111 // set active plugin |
|
112 #include "mt_hsps_setactiveplugin_1.h" |
|
113 #include "mt_hsps_setactiveplugin_2.h" |
|
114 #include "mt_hsps_setactiveplugin_3.h" |
|
115 #include "mt_hsps_setactiveplugin_4.h" |
|
116 #include "mt_hsps_setactiveplugin_5.h" |
|
117 #include "mt_hsps_setactiveplugin_6.h" |
|
118 // restore configurations |
|
119 #include "mt_hsps_restoreconfigurations_1.h" |
|
120 // customizations |
|
121 #include "mt_hsps_customization_1.h" |
|
122 // restoractiveeappconf |
|
123 #include "mt_hsps_restoreactiveappconf_1.h" |
|
124 #include "mt_hsps_restoreactiveappconf_2.h" |
|
125 |
|
126 // ======== LOCAL CONSTANTS ==================================================== |
|
127 |
|
128 // Resource files copied by minimal configuration. |
|
129 _LIT( KMinimalResourceFile1, "c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\main.xml" ); |
|
130 _LIT( KMinimalResourceFile2, "c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\viewnavigationrules.xml" ); |
|
131 _LIT( KMinimalResourceFile3, "c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\resource.file" ); |
|
132 _LIT( KMinimalResourceFile4, "c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\picture.jpeg" ); |
|
133 _LIT( KFinnishMifLogo, "c:\\private\\20000fb1\\2456\\270513751\\536916274\\1.0\\sources\\dummy.mif" ); |
|
134 |
|
135 // ======== LOCAL FUNCTIONS ==================================================== |
|
136 |
|
137 // ======== MEMBER FUNCTIONS =================================================== |
|
138 |
|
139 //------------------------------------------------------------------------------ |
|
140 // Two-phased constructor. |
|
141 //------------------------------------------------------------------------------ |
|
142 MT_CHSPSConfigurationIf* MT_CHSPSConfigurationIf::NewL() |
|
143 { |
|
144 MT_CHSPSConfigurationIf* self = new( ELeave ) MT_CHSPSConfigurationIf(); |
|
145 CleanupStack::PushL( self ); |
|
146 self->ConstructL(); |
|
147 CleanupStack::Pop( self ); |
|
148 |
|
149 return self; |
|
150 } |
|
151 |
|
152 //------------------------------------------------------------------------------ |
|
153 // Destructor. |
|
154 //------------------------------------------------------------------------------ |
|
155 MT_CHSPSConfigurationIf::~MT_CHSPSConfigurationIf() |
|
156 { |
|
157 iFileserver.Close(); |
|
158 } |
|
159 |
|
160 //------------------------------------------------------------------------------ |
|
161 // Constructor |
|
162 //------------------------------------------------------------------------------ |
|
163 MT_CHSPSConfigurationIf::MT_CHSPSConfigurationIf() |
|
164 { |
|
165 } |
|
166 |
|
167 //------------------------------------------------------------------------------ |
|
168 // Symbian Constructor |
|
169 //------------------------------------------------------------------------------ |
|
170 void MT_CHSPSConfigurationIf::ConstructL() |
|
171 { |
|
172 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
|
173 // It generates the test case table. |
|
174 CEUnitTestSuiteClass::ConstructL(); |
|
175 |
|
176 User::LeaveIfError( iFileserver.Connect() ); |
|
177 } |
|
178 |
|
179 //------------------------------------------------------------------------------ |
|
180 // Remove resources from client's private folder |
|
181 //------------------------------------------------------------------------------ |
|
182 void MT_CHSPSConfigurationIf::ResetClientFolderL() |
|
183 { |
|
184 // Remove all resource files from the test client's private folder (files are |
|
185 // copied back when an application configuration is fecthed) |
|
186 _LIT( KClientFolder, "c:\\private\\102750f0\\"); |
|
187 TFileName folderPath; |
|
188 folderPath.Copy( KClientFolder ); |
|
189 if( BaflUtils::FolderExists( iFileserver, folderPath ) ) |
|
190 { |
|
191 CFileMan* fileMan = CFileMan::NewL( iFileserver ); |
|
192 CleanupStack::PushL( fileMan ); |
|
193 |
|
194 folderPath.Append( _L("2456\\") ); |
|
195 if( BaflUtils::FolderExists( iFileserver, folderPath ) ) |
|
196 { |
|
197 User::LeaveIfError( fileMan->RmDir( folderPath ) ); |
|
198 } |
|
199 |
|
200 folderPath.Copy( KClientFolder ); |
|
201 folderPath.Append( _L("271012080\\") ); |
|
202 if( BaflUtils::FolderExists( iFileserver, folderPath ) ) |
|
203 { |
|
204 User::LeaveIfError( fileMan->RmDir( folderPath ) ); |
|
205 } |
|
206 |
|
207 CleanupStack::PopAndDestroy( fileMan ); |
|
208 } |
|
209 } |
|
210 |
|
211 //------------------------------------------------------------------------------ |
|
212 // Initialize test case |
|
213 //------------------------------------------------------------------------------ |
|
214 void MT_CHSPSConfigurationIf::SetupL() |
|
215 { |
|
216 MT_CHspsInstallationService* installationService = MT_CHspsInstallationService::NewL(); |
|
217 CleanupStack::PushL( installationService ); |
|
218 |
|
219 // Uninstall possible test configurations |
|
220 installationService->UninstallConfigurationL( KHSPSMTAppUid, KHSPSActiveConfMinimal ); |
|
221 installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSMinimalViewConf ); |
|
222 installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSMinimalWidgetConf ); |
|
223 installationService->UninstallConfigurationL( KHSPSMTAppUid, KHSPSActiveConfTypical ); |
|
224 installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSTypicalView1Conf ); |
|
225 installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSTypicalView2Conf ); |
|
226 installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSTypicalWidgetConf ); |
|
227 installationService->UninstallConfigurationL( KHSPSMTAppUid, KHSPSActiveConfOperator ); |
|
228 installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSOperatorViewConf ); |
|
229 installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSFinnishWidgetConf ); |
|
230 installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSInstalledWidgetConf ); |
|
231 |
|
232 // Remove test configurations from import & install folder at C drive |
|
233 CFileMan* fileManager = CFileMan::NewL( iFileserver ); |
|
234 CleanupStack::PushL( fileManager ); |
|
235 fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133.dat" ) ); |
|
236 fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ); |
|
237 fileManager->RmDir( _L( "d:\\data\\mt_hsps\\installed_widget\\widgetconfiguration.xml" ) ); |
|
238 CleanupStack::PopAndDestroy( fileManager ); |
|
239 |
|
240 // Install test configurations |
|
241 installationService->InstallConfigurationL( KHSPSInstallMinimalRootConf ); |
|
242 installationService->InstallConfigurationL( KHSPSInstallMinimalViewConf ); |
|
243 installationService->InstallConfigurationL( KHSPSInstallMinimalWidgetConf ); |
|
244 installationService->InstallConfigurationL( KHSPSInstallTypicalRootConf ); |
|
245 installationService->InstallConfigurationL( KHSPSInstallTypicalView1Conf ); |
|
246 installationService->InstallConfigurationL( KHSPSInstallTypicalView2Conf ); |
|
247 installationService->InstallConfigurationL( KHSPSInstallTypicalWidgetConf ); |
|
248 installationService->InstallConfigurationL( KHSPSInstallOperatorRootConf ); |
|
249 installationService->InstallConfigurationL( KHSPSInstallOperatorViewConf ); |
|
250 installationService->InstallConfigurationL( KHSPSInstallFinnishWidgetConf ); |
|
251 |
|
252 CleanupStack::PopAndDestroy( installationService ); |
|
253 ResetResources(); |
|
254 } |
|
255 |
|
256 //------------------------------------------------------------------------------ |
|
257 // Deinitialize test case |
|
258 //------------------------------------------------------------------------------ |
|
259 void MT_CHSPSConfigurationIf::Teardown() |
|
260 { |
|
261 // Detach from HSPS |
|
262 TRAPD( err, DetachServiceL() ); |
|
263 // Remove test configuration resource files |
|
264 TRAP( err, RemoveResourceFilesL( iFileserver ) ); |
|
265 if ( err != KErrNone ) |
|
266 { |
|
267 EUNIT_FAIL_TEST( "Teardown failed." ); |
|
268 } |
|
269 } |
|
270 |
|
271 //------------------------------------------------------------------------------ |
|
272 // Prints liw list to a file. |
|
273 //------------------------------------------------------------------------------ |
|
274 void MT_CHSPSConfigurationIf::PrintReturnValuesL( |
|
275 CLiwGenericParamList& aOutParamList ) |
|
276 { |
|
277 CHspsLiwListPrinter* printer = CHspsLiwListPrinter::NewLC(); |
|
278 printer->PrintLiwListL( aOutParamList ); |
|
279 CleanupStack::PopAndDestroy( printer ); |
|
280 } |
|
281 |
|
282 //------------------------------------------------------------------------------ |
|
283 // Test case: GetActiveAppConf(1) |
|
284 //------------------------------------------------------------------------------ |
|
285 void MT_CHSPSConfigurationIf::GetActiveAppConf_1_L() |
|
286 { |
|
287 // Pre conditions |
|
288 //---------------------------------------------------------------- |
|
289 |
|
290 // Remove old resources |
|
291 ResetClientFolderL(); |
|
292 // Set active configuration to Minimal configuration |
|
293 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
294 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
295 // Attach to HSPS |
|
296 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
297 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
298 |
|
299 // Test step 1 |
|
300 //---------------------------------------------------------------- |
|
301 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
302 RunTestStepSyncL( |
|
303 ( TUint8* )getactiveappconf_1_ts_1_method, |
|
304 ( TUint8* )getactiveappconf_1_ts_1_input, |
|
305 ( TUint8* )getactiveappconf_1_ts_1_output, |
|
306 ETrue ); |
|
307 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
308 |
|
309 // Test step 2 |
|
310 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
311 RunTestStepSyncL( |
|
312 ( TUint8* )getactiveappconf_1_ts_2_method, |
|
313 ( TUint8* )getactiveappconf_1_ts_2_input, |
|
314 ( TUint8* )getactiveappconf_1_ts_2_output, |
|
315 ETrue ); |
|
316 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
317 |
|
318 // Test step 3 |
|
319 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
320 RunTestStepSyncL( |
|
321 ( TUint8* )getactiveappconf_1_ts_3_method, |
|
322 ( TUint8* )getactiveappconf_1_ts_3_input, |
|
323 ( TUint8* )getactiveappconf_1_ts_3_output ); |
|
324 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
325 |
|
326 // Test step 4 |
|
327 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
328 EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
329 DetachServiceL(); |
|
330 EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
331 SetCentralRepositoryKeyL( 100000003, 1 ); |
|
332 EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
333 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
334 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
335 |
|
336 // Test step 5 |
|
337 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
338 RunTestStepSyncL( |
|
339 ( TUint8* )getactiveappconf_1_ts_5_method, |
|
340 ( TUint8* )getactiveappconf_1_ts_5_input, |
|
341 ( TUint8* )getactiveappconf_1_ts_5_output ); |
|
342 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
343 |
|
344 // post condition check. |
|
345 //---------------------------------------------------------------- |
|
346 EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
347 ResetResources(); |
|
348 AddResourceL( KMinimalResourceFile1, 136 ); |
|
349 AddResourceL( KMinimalResourceFile2, 17 ); |
|
350 AddResourceL( KMinimalResourceFile3, 17 ); |
|
351 AddResourceL( KMinimalResourceFile4, 18 ); |
|
352 CheckResourcesL(); |
|
353 EUNIT_PRINT( _L8( "post condition check for resource file copy passed" ) ); |
|
354 |
|
355 } |
|
356 |
|
357 //------------------------------------------------------------------------------ |
|
358 // Test case: GetActiveAppConf(2) |
|
359 //------------------------------------------------------------------------------ |
|
360 void MT_CHSPSConfigurationIf::GetActiveAppConf_2_L() |
|
361 { |
|
362 |
|
363 // Pre conditions |
|
364 // Set active configuration to Minimal configuration |
|
365 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
366 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
367 // Attach to HSPS |
|
368 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
369 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
370 |
|
371 // Test step 1 |
|
372 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
373 RunTestStepSyncL( |
|
374 ( TUint8* )getactiveappconf_2_ts_1_method, |
|
375 ( TUint8* )getactiveappconf_2_ts_1_input, |
|
376 ( TUint8* )getactiveappconf_2_ts_1_output ); |
|
377 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
378 |
|
379 // Test step 2 |
|
380 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
381 RunTestStepSyncL( |
|
382 ( TUint8* )getactiveappconf_2_ts_2_method, |
|
383 ( TUint8* )getactiveappconf_2_ts_2_input, |
|
384 ( TUint8* )getactiveappconf_2_ts_2_output ); |
|
385 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
386 |
|
387 // Test step 3 |
|
388 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
389 EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
390 DetachServiceL(); |
|
391 EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
392 SetCentralRepositoryKeyL( 100000003, 1 ); |
|
393 EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
394 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
395 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
396 |
|
397 // Test step 3 |
|
398 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
399 RunTestStepSyncL( |
|
400 ( TUint8* )getactiveappconf_2_ts_4_method, |
|
401 ( TUint8* )getactiveappconf_2_ts_4_input, |
|
402 ( TUint8* )getactiveappconf_2_ts_4_output ); |
|
403 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
404 |
|
405 } |
|
406 |
|
407 //------------------------------------------------------------------------------ |
|
408 // Test case: GetActiveAppConf(3) |
|
409 //------------------------------------------------------------------------------ |
|
410 void MT_CHSPSConfigurationIf::GetActiveAppConf_3_L() |
|
411 { |
|
412 |
|
413 // Pre conditions |
|
414 // Set active configuration to Typical configuration |
|
415 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
416 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
417 // Attach to HSPS |
|
418 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
419 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
420 |
|
421 // Test step 1 |
|
422 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
423 RunTestStepSyncL( |
|
424 ( TUint8* )getactiveappconf_3_ts_1_method, |
|
425 ( TUint8* )getactiveappconf_3_ts_1_input, |
|
426 ( TUint8* )getactiveappconf_3_ts_1_output ); |
|
427 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
428 |
|
429 // Test step 2 |
|
430 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
431 RunTestStepSyncL( |
|
432 ( TUint8* )getactiveappconf_3_ts_2_method, |
|
433 ( TUint8* )getactiveappconf_3_ts_2_input, |
|
434 ( TUint8* )getactiveappconf_3_ts_2_output ); |
|
435 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
436 |
|
437 // Test step 3 |
|
438 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
439 EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
440 DetachServiceL(); |
|
441 EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
442 SetCentralRepositoryKeyL( 100000003, 1 ); |
|
443 EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
444 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
445 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
446 |
|
447 // Test step 4 |
|
448 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
449 RunTestStepSyncL( |
|
450 ( TUint8* )getactiveappconf_3_ts_4_method, |
|
451 ( TUint8* )getactiveappconf_3_ts_4_input, |
|
452 ( TUint8* )getactiveappconf_3_ts_4_output ); |
|
453 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
454 |
|
455 } |
|
456 |
|
457 //------------------------------------------------------------------------------ |
|
458 // Test case: GetPluginConf(1) |
|
459 //------------------------------------------------------------------------------ |
|
460 void MT_CHSPSConfigurationIf::GetPluginConf_1_L() |
|
461 { |
|
462 // Pre conditions |
|
463 // Set active configuration to Minimal configuration |
|
464 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
465 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
466 // Attach to HSPS |
|
467 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
468 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
469 |
|
470 // Test step 1 |
|
471 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
472 RunTestStepSyncL( |
|
473 ( TUint8* )getpluginconf_1_ts_1_method, |
|
474 ( TUint8* )getpluginconf_1_ts_1_input, |
|
475 ( TUint8* )getpluginconf_1_ts_1_output, |
|
476 ETrue ); |
|
477 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
478 |
|
479 // Test step 2 |
|
480 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
481 RunTestStepSyncL( |
|
482 ( TUint8* )getpluginconf_1_ts_2_method, |
|
483 ( TUint8* )getpluginconf_1_ts_2_input, |
|
484 ( TUint8* )getpluginconf_1_ts_2_output ); |
|
485 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
486 |
|
487 // Test step 3 |
|
488 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
489 RunTestStepSyncL( |
|
490 ( TUint8* )getpluginconf_1_ts_3_method, |
|
491 ( TUint8* )getpluginconf_1_ts_3_input, |
|
492 ( TUint8* )getpluginconf_1_ts_3_output ); |
|
493 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
494 |
|
495 // Test step 4 |
|
496 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
497 EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
498 DetachServiceL(); |
|
499 EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
500 SetCentralRepositoryKeyL( 100000003, 1 ); |
|
501 EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
502 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
503 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
504 |
|
505 // Test step 5 |
|
506 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
507 RunTestStepSyncL( |
|
508 ( TUint8* )getpluginconf_1_ts_5_method, |
|
509 ( TUint8* )getpluginconf_1_ts_5_input, |
|
510 ( TUint8* )getpluginconf_1_ts_5_output ); |
|
511 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
512 |
|
513 } |
|
514 |
|
515 //------------------------------------------------------------------------------ |
|
516 // Test case: GetPluginConf(2) |
|
517 //------------------------------------------------------------------------------ |
|
518 void MT_CHSPSConfigurationIf::GetPluginConf_2_L() |
|
519 { |
|
520 // Pre conditions |
|
521 // Set active configuration to Minimal configuration |
|
522 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
523 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
524 // Attach to HSPS |
|
525 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
526 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
527 |
|
528 // Test step 1 |
|
529 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
530 RunTestStepSyncL( |
|
531 ( TUint8* )getpluginconf_2_ts_1_method, |
|
532 ( TUint8* )getpluginconf_2_ts_1_input, |
|
533 ( TUint8* )getpluginconf_2_ts_1_output ); |
|
534 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
535 |
|
536 } |
|
537 |
|
538 //------------------------------------------------------------------------------ |
|
539 // Test case: GetPluginConf(3) |
|
540 //------------------------------------------------------------------------------ |
|
541 void MT_CHSPSConfigurationIf::GetPluginConf_3_L() |
|
542 { |
|
543 // Pre conditions |
|
544 // Set active configuration to Minimal configuration |
|
545 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
546 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
547 // Attach to HSPS |
|
548 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
549 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
550 |
|
551 // Test step 1 |
|
552 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
553 RunTestStepSyncL( |
|
554 ( TUint8* )getpluginconf_3_ts_1_method, |
|
555 ( TUint8* )getpluginconf_3_ts_1_input, |
|
556 ( TUint8* )getpluginconf_3_ts_1_output ); |
|
557 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
558 |
|
559 } |
|
560 |
|
561 //------------------------------------------------------------------------------ |
|
562 // Test case: GetPluginConf(4) |
|
563 //------------------------------------------------------------------------------ |
|
564 void MT_CHSPSConfigurationIf::GetPluginConf_4_L() |
|
565 { |
|
566 // Pre conditions |
|
567 // Set active configuration to Minimal configuration |
|
568 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
569 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
570 // Attach to HSPS |
|
571 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
572 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
573 |
|
574 // Test step 1 |
|
575 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
576 RunTestStepSyncL( |
|
577 ( TUint8* )getpluginconf_4_ts_1_method, |
|
578 ( TUint8* )getpluginconf_4_ts_1_input, |
|
579 ( TUint8* )getpluginconf_4_ts_1_output ); |
|
580 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
581 |
|
582 // Test step 2 |
|
583 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
584 RunTestStepSyncL( |
|
585 ( TUint8* )getpluginconf_4_ts_2_method, |
|
586 ( TUint8* )getpluginconf_4_ts_2_input, |
|
587 ( TUint8* )getpluginconf_4_ts_2_output ); |
|
588 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
589 |
|
590 // Test step 3 |
|
591 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
592 EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
593 DetachServiceL(); |
|
594 EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
595 SetCentralRepositoryKeyL( 100000003, 1 ); |
|
596 EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
597 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
598 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
599 |
|
600 // Test step 4 |
|
601 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
602 RunTestStepSyncL( |
|
603 ( TUint8* )getpluginconf_4_ts_4_method, |
|
604 ( TUint8* )getpluginconf_4_ts_4_input, |
|
605 ( TUint8* )getpluginconf_4_ts_4_output ); |
|
606 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
607 |
|
608 } |
|
609 |
|
610 //------------------------------------------------------------------------------ |
|
611 // Test case: GetPluginConf(5) |
|
612 //------------------------------------------------------------------------------ |
|
613 void MT_CHSPSConfigurationIf::GetPluginConf_5_L() |
|
614 { |
|
615 // Pre conditions |
|
616 // Set active configuration to Minimal configuration |
|
617 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
618 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
619 // Attach to HSPS |
|
620 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
621 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
622 |
|
623 // Test step 1 |
|
624 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
625 RunTestStepSyncL( |
|
626 ( TUint8* )getpluginconf_5_ts_1_method, |
|
627 ( TUint8* )getpluginconf_5_ts_1_input, |
|
628 ( TUint8* )getpluginconf_5_ts_1_output ); |
|
629 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
630 |
|
631 // Test step 2 |
|
632 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
633 RunTestStepSyncL( |
|
634 ( TUint8* )getpluginconf_5_ts_2_method, |
|
635 ( TUint8* )getpluginconf_5_ts_2_input, |
|
636 ( TUint8* )getpluginconf_5_ts_2_output ); |
|
637 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
638 |
|
639 // Test step 3 |
|
640 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
641 RunTestStepSyncL( |
|
642 ( TUint8* )getpluginconf_5_ts_3_method, |
|
643 ( TUint8* )getpluginconf_5_ts_3_input, |
|
644 ( TUint8* )getpluginconf_5_ts_3_output ); |
|
645 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
646 |
|
647 // Test step 4 |
|
648 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
649 EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
650 DetachServiceL(); |
|
651 EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
652 SetCentralRepositoryKeyL( 100000003, 1 ); |
|
653 EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
654 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
655 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
656 |
|
657 // Test step 5 |
|
658 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
659 RunTestStepSyncL( |
|
660 ( TUint8* )getpluginconf_5_ts_5_method, |
|
661 ( TUint8* )getpluginconf_5_ts_5_input, |
|
662 ( TUint8* )getpluginconf_5_ts_5_output ); |
|
663 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
664 |
|
665 } |
|
666 |
|
667 //------------------------------------------------------------------------------ |
|
668 // Test case: GetPlugins(1) |
|
669 //------------------------------------------------------------------------------ |
|
670 void MT_CHSPSConfigurationIf::GetPlugins_1_L() |
|
671 { |
|
672 |
|
673 // Pre conditions |
|
674 // Set active configuration to Minimal configuration |
|
675 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
676 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
677 // Attach to HSPS |
|
678 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
679 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
680 |
|
681 // Test step 1 |
|
682 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
683 RunTestStepSyncL( |
|
684 ( TUint8* )getplugins_1_ts_1_method, |
|
685 ( TUint8* )getplugins_1_ts_1_input, |
|
686 ( TUint8* )getplugins_1_ts_1_output, |
|
687 ETrue ); |
|
688 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
689 } |
|
690 |
|
691 //------------------------------------------------------------------------------ |
|
692 // Test case: GetPlugins(2) |
|
693 //------------------------------------------------------------------------------ |
|
694 void MT_CHSPSConfigurationIf::GetPlugins_2_L() |
|
695 { |
|
696 // Pre conditions |
|
697 // Set active configuration to Minimal configuration |
|
698 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
699 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
700 // Attach to HSPS |
|
701 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
702 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
703 |
|
704 // Test step 1 |
|
705 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
706 RunTestStepSyncL( |
|
707 ( TUint8* )getplugins_2_ts_1_method, |
|
708 ( TUint8* )getplugins_2_ts_1_input, |
|
709 ( TUint8* )getplugins_2_ts_1_output ); |
|
710 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
711 } |
|
712 |
|
713 //------------------------------------------------------------------------------ |
|
714 // Test case: GetPlugins(3) |
|
715 //------------------------------------------------------------------------------ |
|
716 void MT_CHSPSConfigurationIf::GetPlugins_3_L() |
|
717 { |
|
718 // Pre conditions |
|
719 // Set active configuration to Minimal configuration |
|
720 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
721 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
722 // Attach to HSPS |
|
723 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
724 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
725 |
|
726 // Test step 1 |
|
727 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
728 RunTestStepSyncL( |
|
729 ( TUint8* )getplugins_3_ts_1_method, |
|
730 ( TUint8* )getplugins_3_ts_1_input, |
|
731 ( TUint8* )getplugins_3_ts_1_output ); |
|
732 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
733 } |
|
734 |
|
735 //------------------------------------------------------------------------------ |
|
736 // Test case: GetPlugins(4) |
|
737 //------------------------------------------------------------------------------ |
|
738 void MT_CHSPSConfigurationIf::GetPlugins_4_L() |
|
739 { |
|
740 // Pre conditions |
|
741 // Set active configuration to Minimal configuration |
|
742 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
743 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
744 // Attach to HSPS |
|
745 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
746 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
747 |
|
748 // Test step 1 |
|
749 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
750 RunTestStepSyncL( |
|
751 ( TUint8* )getplugins_4_ts_1_method, |
|
752 ( TUint8* )getplugins_4_ts_1_input, |
|
753 ( TUint8* )getplugins_4_ts_1_output ); |
|
754 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
755 } |
|
756 |
|
757 //------------------------------------------------------------------------------ |
|
758 // Test case: GetPlugins(5) |
|
759 //------------------------------------------------------------------------------ |
|
760 void MT_CHSPSConfigurationIf::GetPlugins_5_L() |
|
761 { |
|
762 // Pre conditions |
|
763 // Set active configuration to Minimal configuration |
|
764 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
765 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
766 // Attach to HSPS |
|
767 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
768 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
769 |
|
770 // Test step 1 |
|
771 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
772 RunTestStepSyncL( |
|
773 ( TUint8* )getplugins_5_ts_1_method, |
|
774 ( TUint8* )getplugins_5_ts_1_input, |
|
775 ( TUint8* )getplugins_5_ts_1_output ); |
|
776 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
777 } |
|
778 |
|
779 //------------------------------------------------------------------------------ |
|
780 // Test case: GetPlugins(6) |
|
781 //------------------------------------------------------------------------------ |
|
782 void MT_CHSPSConfigurationIf::GetPlugins_6_L() |
|
783 { |
|
784 // Pre conditions |
|
785 // Set active configuration to Minimal configuration |
|
786 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
787 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
788 // Attach to HSPS |
|
789 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
790 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
791 |
|
792 // Test step 1 |
|
793 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
794 RunTestStepSyncL( |
|
795 ( TUint8* )getplugins_6_ts_1_method, |
|
796 ( TUint8* )getplugins_6_ts_1_input, |
|
797 ( TUint8* )getplugins_6_ts_1_output ); |
|
798 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
799 } |
|
800 |
|
801 //------------------------------------------------------------------------------ |
|
802 // Test case: GetPlugins(7) |
|
803 //------------------------------------------------------------------------------ |
|
804 void MT_CHSPSConfigurationIf::GetPlugins_7_L() |
|
805 { |
|
806 // Pre conditions |
|
807 // Set active configuration to Minimal configuration |
|
808 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
809 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
810 // Attach to HSPS |
|
811 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
812 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
813 |
|
814 // Test step 1 |
|
815 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
816 RunTestStepSyncL( |
|
817 ( TUint8* )getplugins_7_ts_1_method, |
|
818 ( TUint8* )getplugins_7_ts_1_input, |
|
819 ( TUint8* )getplugins_7_ts_1_output ); |
|
820 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
821 } |
|
822 |
|
823 //------------------------------------------------------------------------------ |
|
824 // Test case: GetPlugins(8) |
|
825 //------------------------------------------------------------------------------ |
|
826 void MT_CHSPSConfigurationIf::GetPlugins_8_L() |
|
827 { |
|
828 // Pre conditions |
|
829 // Set active configuration to Minimal configuration |
|
830 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Operator" ) ); |
|
831 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfOperator ); |
|
832 // Attach to HSPS |
|
833 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
834 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
835 |
|
836 // Test step 1: fetch widget plugins and copy logos files |
|
837 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
838 RunTestStepSyncL( |
|
839 ( TUint8* )getplugins_8_ts_1_method, |
|
840 ( TUint8* )getplugins_8_ts_1_input, |
|
841 ( TUint8* )getplugins_8_ts_1_output ); |
|
842 |
|
843 EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
844 ResetResources(); |
|
845 // Check that the logo file was copied |
|
846 AddResourceL( KFinnishMifLogo, 4608 ); |
|
847 CheckResourcesL(); |
|
848 EUNIT_PRINT( _L8( "post condition check for resource copy passed" ) ); |
|
849 |
|
850 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
851 } |
|
852 |
|
853 //------------------------------------------------------------------------------ |
|
854 // Test case: GetPluginList(1) |
|
855 //------------------------------------------------------------------------------ |
|
856 void MT_CHSPSConfigurationIf::GetPluginList_1_L() |
|
857 { |
|
858 |
|
859 // Pre conditions |
|
860 // Set active configuration to Minimal configuration |
|
861 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
862 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
863 // Attach to HSPS |
|
864 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
865 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
866 |
|
867 // Test step 1 |
|
868 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
869 RunTestStepSyncL( |
|
870 ( TUint8* )getpluginlist_1_ts_1_method, |
|
871 ( TUint8* )getpluginlist_1_ts_1_input, |
|
872 ( TUint8* )getpluginlist_1_ts_1_output, |
|
873 ETrue ); |
|
874 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
875 } |
|
876 |
|
877 //------------------------------------------------------------------------------ |
|
878 // Test case: GetPluginList(2) |
|
879 //------------------------------------------------------------------------------ |
|
880 void MT_CHSPSConfigurationIf::GetPluginList_2_L() |
|
881 { |
|
882 |
|
883 // Pre conditions |
|
884 // Set active configuration to Minimal configuration |
|
885 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
886 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
887 // Attach to HSPS |
|
888 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
889 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
890 |
|
891 // Test step 1 |
|
892 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
893 RunTestStepSyncL( |
|
894 ( TUint8* )getpluginlist_2_ts_1_method, |
|
895 ( TUint8* )getpluginlist_2_ts_1_input, |
|
896 ( TUint8* )getpluginlist_2_ts_1_output ); |
|
897 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
898 } |
|
899 |
|
900 //------------------------------------------------------------------------------ |
|
901 // Test case: GetPluginList(3) |
|
902 //------------------------------------------------------------------------------ |
|
903 void MT_CHSPSConfigurationIf::GetPluginList_3_L() |
|
904 { |
|
905 |
|
906 // Pre conditions |
|
907 // Set active configuration to Minimal configuration |
|
908 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
909 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
910 // Attach to HSPS |
|
911 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
912 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
913 |
|
914 // Test step 1 |
|
915 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
916 RunTestStepSyncL( |
|
917 ( TUint8* )getpluginlist_3_ts_1_method, |
|
918 ( TUint8* )getpluginlist_3_ts_1_input, |
|
919 ( TUint8* )getpluginlist_3_ts_1_output ); |
|
920 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
921 } |
|
922 |
|
923 //------------------------------------------------------------------------------ |
|
924 // Test case: GetPluginList(4) |
|
925 //------------------------------------------------------------------------------ |
|
926 void MT_CHSPSConfigurationIf::GetPluginList_4_L() |
|
927 { |
|
928 |
|
929 // Pre conditions |
|
930 // Set active configuration to Minimal configuration |
|
931 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
932 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
933 // Attach to HSPS |
|
934 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
935 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
936 |
|
937 // Test step 1 |
|
938 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
939 RunTestStepSyncL( |
|
940 ( TUint8* )getpluginlist_4_ts_1_method, |
|
941 ( TUint8* )getpluginlist_4_ts_1_input, |
|
942 ( TUint8* )getpluginlist_4_ts_1_output ); |
|
943 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
944 } |
|
945 |
|
946 //------------------------------------------------------------------------------ |
|
947 // Test case: GetPluginList(5) |
|
948 //------------------------------------------------------------------------------ |
|
949 void MT_CHSPSConfigurationIf::GetPluginList_5_L() |
|
950 { |
|
951 |
|
952 // Pre conditions |
|
953 // Set active configuration to Minimal configuration |
|
954 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
955 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
956 // Attach to HSPS |
|
957 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
958 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
959 |
|
960 // Test step 1 |
|
961 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
962 RunTestStepSyncL( |
|
963 ( TUint8* )getpluginlist_5_ts_1_method, |
|
964 ( TUint8* )getpluginlist_5_ts_1_input, |
|
965 ( TUint8* )getpluginlist_5_ts_1_output ); |
|
966 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
967 } |
|
968 |
|
969 //------------------------------------------------------------------------------ |
|
970 // Test case: GetPluginList(6) |
|
971 //------------------------------------------------------------------------------ |
|
972 void MT_CHSPSConfigurationIf::GetPluginList_6_L() |
|
973 { |
|
974 |
|
975 // Pre conditions |
|
976 // Set active configuration to Minimal configuration |
|
977 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
978 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
979 // Attach to HSPS |
|
980 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
981 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
982 |
|
983 // Test step 1 |
|
984 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
985 RunTestStepSyncL( |
|
986 ( TUint8* )getpluginlist_6_ts_1_method, |
|
987 ( TUint8* )getpluginlist_6_ts_1_input, |
|
988 ( TUint8* )getpluginlist_6_ts_1_output ); |
|
989 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
990 } |
|
991 |
|
992 //------------------------------------------------------------------------------ |
|
993 // Test case: GetPluginList(7) |
|
994 //------------------------------------------------------------------------------ |
|
995 void MT_CHSPSConfigurationIf::GetPluginList_7_L() |
|
996 { |
|
997 |
|
998 // Pre conditions |
|
999 // Set active configuration to Minimal configuration |
|
1000 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Operator" ) ); |
|
1001 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfOperator ); |
|
1002 // Attach to HSPS |
|
1003 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1004 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1005 |
|
1006 // Test step 1 |
|
1007 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1008 RunTestStepSyncL( |
|
1009 ( TUint8* )getpluginlist_7_ts_1_method, |
|
1010 ( TUint8* )getpluginlist_7_ts_1_input, |
|
1011 ( TUint8* )getpluginlist_7_ts_1_output ); |
|
1012 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1013 } |
|
1014 |
|
1015 //------------------------------------------------------------------------------ |
|
1016 // Test case: GetPluginList(8) |
|
1017 //------------------------------------------------------------------------------ |
|
1018 void MT_CHSPSConfigurationIf::GetPluginList_8_L() |
|
1019 { |
|
1020 |
|
1021 // Pre conditions |
|
1022 // Set active configuration to Minimal configuration |
|
1023 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Operator" ) ); |
|
1024 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfOperator ); |
|
1025 // Attach to HSPS |
|
1026 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1027 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1028 |
|
1029 // Test step 1 |
|
1030 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1031 RunTestStepSyncL( |
|
1032 ( TUint8* )getpluginlist_8_ts_1_method, |
|
1033 ( TUint8* )getpluginlist_8_ts_1_input, |
|
1034 ( TUint8* )getpluginlist_8_ts_1_output ); |
|
1035 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1036 } |
|
1037 |
|
1038 //------------------------------------------------------------------------------ |
|
1039 // Test case: AddPlugin(1) |
|
1040 //------------------------------------------------------------------------------ |
|
1041 void MT_CHSPSConfigurationIf::AddPlugin_1_L() |
|
1042 { |
|
1043 // Pre conditions |
|
1044 // Set active configuration to Typical configuration |
|
1045 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1046 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1047 // Attach to HSPS |
|
1048 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1049 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1050 |
|
1051 // Test step 1 |
|
1052 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1053 RunTestStepSyncL( |
|
1054 ( TUint8* )addplugin_1_ts_1_method, |
|
1055 ( TUint8* )addplugin_1_ts_1_input, |
|
1056 ( TUint8* )addplugin_1_ts_1_output, |
|
1057 ETrue ); |
|
1058 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1059 |
|
1060 // Test step 2 |
|
1061 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1062 RunTestStepSyncL( |
|
1063 ( TUint8* )addplugin_1_ts_2_method, |
|
1064 ( TUint8* )addplugin_1_ts_2_input, |
|
1065 ( TUint8* )addplugin_1_ts_2_output ); |
|
1066 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1067 |
|
1068 // Test step 3 |
|
1069 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1070 RunTestStepSyncL( |
|
1071 ( TUint8* )addplugin_1_ts_3_method, |
|
1072 ( TUint8* )addplugin_1_ts_3_input, |
|
1073 ( TUint8* )addplugin_1_ts_3_output ); |
|
1074 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1075 |
|
1076 // Test step 4 |
|
1077 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1078 RunTestStepSyncL( |
|
1079 ( TUint8* )addplugin_1_ts_4_method, |
|
1080 ( TUint8* )addplugin_1_ts_4_input, |
|
1081 ( TUint8* )addplugin_1_ts_4_output, |
|
1082 ETrue ); |
|
1083 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1084 |
|
1085 // Test step 5 |
|
1086 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
1087 RunTestStepSyncL( |
|
1088 ( TUint8* )addplugin_1_ts_5_method, |
|
1089 ( TUint8* )addplugin_1_ts_5_input, |
|
1090 ( TUint8* )addplugin_1_ts_5_output ); |
|
1091 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1092 } |
|
1093 |
|
1094 //------------------------------------------------------------------------------ |
|
1095 // Test case: AddPlugin(2) |
|
1096 //------------------------------------------------------------------------------ |
|
1097 void MT_CHSPSConfigurationIf::AddPlugin_2_L() |
|
1098 { |
|
1099 // Pre conditions |
|
1100 //---------------------------------------------------------------- |
|
1101 ResetClientFolderL(); // affects performance testing |
|
1102 |
|
1103 // Set active configuration to Typical configuration |
|
1104 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1105 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1106 // Attach to HSPS |
|
1107 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1108 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1109 |
|
1110 // Test step 1 |
|
1111 //---------------------------------------------------------------- |
|
1112 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1113 RunTestStepSyncL( |
|
1114 ( TUint8* )addplugin_2_ts_1_method, |
|
1115 ( TUint8* )addplugin_2_ts_1_input, |
|
1116 ( TUint8* )addplugin_2_ts_1_output ); |
|
1117 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1118 |
|
1119 // post condition check: verify that resources of the application configuration have been copied |
|
1120 EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
1121 ResetResources(); |
|
1122 // Typical - Root |
|
1123 AddResourceL( _L("c:\\private\\20000fb1\\536874929\\270513751\\536916240\\1.0\\sources\\root.bmp"), 165450 ); |
|
1124 // Typical - View1 |
|
1125 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\view1.bmp"), 9354 ); |
|
1126 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\hs_logoz.jpg"), 19519 ); |
|
1127 // Typical - View2 |
|
1128 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916242\\1.0\\sources\\view2.bmp"), 183654 ); |
|
1129 // Typical - Widget |
|
1130 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg"), 18179 ); |
|
1131 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp"), 6446 ); |
|
1132 CheckResourcesL( ); |
|
1133 // Minimal - Widget |
|
1134 EUNIT_PRINT( _L8( "post condition check for resource copy passed" ) ); |
|
1135 |
|
1136 // Test step 2 |
|
1137 //---------------------------------------------------------------- |
|
1138 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1139 RunTestStepSyncL( |
|
1140 ( TUint8* )addplugin_2_ts_2_method, |
|
1141 ( TUint8* )addplugin_2_ts_2_input, |
|
1142 ( TUint8* )addplugin_2_ts_2_output ); |
|
1143 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1144 |
|
1145 // Test step 3 |
|
1146 //---------------------------------------------------------------- |
|
1147 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1148 RunTestStepSyncL( |
|
1149 ( TUint8* )addplugin_2_ts_3_method, |
|
1150 ( TUint8* )addplugin_2_ts_3_input, |
|
1151 ( TUint8* )addplugin_2_ts_3_output ); |
|
1152 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1153 |
|
1154 // Test step 4 |
|
1155 //---------------------------------------------------------------- |
|
1156 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1157 RunTestStepSyncL( |
|
1158 ( TUint8* )addplugin_2_ts_4_method, |
|
1159 ( TUint8* )addplugin_2_ts_4_input, |
|
1160 ( TUint8* )addplugin_2_ts_4_output ); |
|
1161 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1162 |
|
1163 // Test step 5 |
|
1164 //---------------------------------------------------------------- |
|
1165 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
1166 RunTestStepSyncL( |
|
1167 ( TUint8* )addplugin_2_ts_5_method, |
|
1168 ( TUint8* )addplugin_2_ts_5_input, |
|
1169 ( TUint8* )addplugin_2_ts_5_output ); |
|
1170 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1171 } |
|
1172 |
|
1173 //------------------------------------------------------------------------------ |
|
1174 // Test case: AddPlugin(3) |
|
1175 //------------------------------------------------------------------------------ |
|
1176 void MT_CHSPSConfigurationIf::AddPlugin_3_L() |
|
1177 { |
|
1178 // Pre conditions |
|
1179 // Set active configuration to Minimal configuration |
|
1180 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
1181 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
1182 // Attach to HSPS |
|
1183 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1184 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1185 |
|
1186 // Test step 1 |
|
1187 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1188 RunTestStepSyncL( |
|
1189 ( TUint8* )addplugin_3_ts_1_method, |
|
1190 ( TUint8* )addplugin_3_ts_1_input, |
|
1191 ( TUint8* )addplugin_3_ts_1_output ); |
|
1192 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1193 |
|
1194 // Test step 2 |
|
1195 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1196 RunTestStepSyncL( |
|
1197 ( TUint8* )addplugin_3_ts_2_method, |
|
1198 ( TUint8* )addplugin_3_ts_2_input, |
|
1199 ( TUint8* )addplugin_3_ts_2_output ); |
|
1200 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1201 } |
|
1202 |
|
1203 //------------------------------------------------------------------------------ |
|
1204 // Test case: AddPlugin(4) |
|
1205 //------------------------------------------------------------------------------ |
|
1206 void MT_CHSPSConfigurationIf::AddPlugin_4_L() |
|
1207 { |
|
1208 // Pre conditions |
|
1209 // Set active configuration to Minimal configuration |
|
1210 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
1211 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
1212 // Attach to HSPS |
|
1213 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1214 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1215 |
|
1216 // Test step 1 |
|
1217 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1218 RunTestStepSyncL( |
|
1219 ( TUint8* )addplugin_4_ts_1_method, |
|
1220 ( TUint8* )addplugin_4_ts_1_input, |
|
1221 ( TUint8* )addplugin_4_ts_1_output ); |
|
1222 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1223 } |
|
1224 |
|
1225 //------------------------------------------------------------------------------ |
|
1226 // Test case: AddPlugin(5) |
|
1227 //------------------------------------------------------------------------------ |
|
1228 void MT_CHSPSConfigurationIf::AddPlugin_5_L() |
|
1229 { |
|
1230 // Pre conditions |
|
1231 // Set active configuration to Minimal configuration |
|
1232 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
1233 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
1234 // Attach to HSPS |
|
1235 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1236 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1237 |
|
1238 // Test step 1 |
|
1239 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1240 RunTestStepSyncL( |
|
1241 ( TUint8* )addplugin_5_ts_1_method, |
|
1242 ( TUint8* )addplugin_5_ts_1_input, |
|
1243 ( TUint8* )addplugin_5_ts_1_output ); |
|
1244 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1245 } |
|
1246 |
|
1247 //------------------------------------------------------------------------------ |
|
1248 // Test case: AddPlugin(6) |
|
1249 //------------------------------------------------------------------------------ |
|
1250 void MT_CHSPSConfigurationIf::AddPlugin_6_L() |
|
1251 { |
|
1252 // Pre conditions |
|
1253 // Set active configuration to Operator configuration |
|
1254 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Operator" ) ); |
|
1255 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfOperator ); |
|
1256 // Attach to HSPS |
|
1257 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1258 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1259 |
|
1260 // Test step 1 |
|
1261 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1262 RunTestStepSyncL( |
|
1263 ( TUint8* )addplugin_6_ts_1_method, |
|
1264 ( TUint8* )addplugin_6_ts_1_input, |
|
1265 ( TUint8* )addplugin_6_ts_1_output ); |
|
1266 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1267 |
|
1268 // Test step 2 |
|
1269 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1270 RunTestStepSyncL( |
|
1271 ( TUint8* )addplugin_6_ts_2_method, |
|
1272 ( TUint8* )addplugin_6_ts_2_input, |
|
1273 ( TUint8* )addplugin_6_ts_2_output ); |
|
1274 ResetResources(); |
|
1275 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916273\\1.0\\sources\\dummy.mif"), 4608 ); |
|
1276 CheckResourcesL( ); |
|
1277 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1278 |
|
1279 // Test step 3 |
|
1280 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1281 RunTestStepSyncL( |
|
1282 ( TUint8* )addplugin_6_ts_3_method, |
|
1283 ( TUint8* )addplugin_6_ts_3_input, |
|
1284 ( TUint8* )addplugin_6_ts_3_output ); |
|
1285 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1286 |
|
1287 // Test step 4 |
|
1288 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1289 RunTestStepSyncL( |
|
1290 ( TUint8* )addplugin_6_ts_4_method, |
|
1291 ( TUint8* )addplugin_6_ts_4_input, |
|
1292 ( TUint8* )addplugin_6_ts_4_output ); |
|
1293 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1294 |
|
1295 // Test step 5 |
|
1296 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
1297 RunTestStepSyncL( |
|
1298 ( TUint8* )addplugin_6_ts_5_method, |
|
1299 ( TUint8* )addplugin_6_ts_5_input, |
|
1300 ( TUint8* )addplugin_6_ts_5_output ); |
|
1301 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1302 } |
|
1303 |
|
1304 //------------------------------------------------------------------------------ |
|
1305 // Test case: AddPlugin(7) |
|
1306 //------------------------------------------------------------------------------ |
|
1307 void MT_CHSPSConfigurationIf::AddPlugin_7_L() |
|
1308 { |
|
1309 // Pre conditions |
|
1310 // Set active configuration to Operator configuration |
|
1311 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1312 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1313 // Attach to HSPS |
|
1314 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1315 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1316 |
|
1317 // Test step 1 |
|
1318 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1319 RunTestStepSyncL( |
|
1320 ( TUint8* )addplugin_7_ts_1_method, |
|
1321 ( TUint8* )addplugin_7_ts_1_input, |
|
1322 ( TUint8* )addplugin_7_ts_1_output ); |
|
1323 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1324 |
|
1325 // Test step 2 |
|
1326 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1327 RunTestStepSyncL( |
|
1328 ( TUint8* )addplugin_7_ts_2_method, |
|
1329 ( TUint8* )addplugin_7_ts_2_input, |
|
1330 ( TUint8* )addplugin_7_ts_2_output ); |
|
1331 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1332 |
|
1333 // Test step 3 |
|
1334 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1335 RunTestStepSyncL( |
|
1336 ( TUint8* )addplugin_7_ts_3_method, |
|
1337 ( TUint8* )addplugin_7_ts_3_input, |
|
1338 ( TUint8* )addplugin_7_ts_3_output ); |
|
1339 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1340 |
|
1341 // Test step 4 |
|
1342 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1343 RunTestStepSyncL( |
|
1344 ( TUint8* )addplugin_7_ts_4_method, |
|
1345 ( TUint8* )addplugin_7_ts_4_input, |
|
1346 ( TUint8* )addplugin_7_ts_4_output ); |
|
1347 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1348 } |
|
1349 |
|
1350 //------------------------------------------------------------------------------ |
|
1351 // Test case: AddPlugin(8) |
|
1352 //------------------------------------------------------------------------------ |
|
1353 void MT_CHSPSConfigurationIf::AddPlugin_8_L() |
|
1354 { |
|
1355 // Pre conditions |
|
1356 //---------------------------------------------------------------- |
|
1357 ResetClientFolderL(); // affects performance testing |
|
1358 |
|
1359 // Active device language is ELangEnglish(=1) |
|
1360 // in \epoc32\RELEASE\WINSCW\udeb\Z\resource\BootData\Languages.txt |
|
1361 |
|
1362 // Set active configuration to Minimal configuration |
|
1363 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
1364 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
1365 |
|
1366 // Attach to HSPS |
|
1367 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1368 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1369 |
|
1370 // Test step 1: add widget with english locale to unlocalized configuration |
|
1371 //---------------------------------------------------------------- |
|
1372 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1373 RunTestStepSyncL( |
|
1374 ( TUint8* )addplugin_8_ts_1_method, |
|
1375 ( TUint8* )addplugin_8_ts_1_input, |
|
1376 ( TUint8* )addplugin_8_ts_1_output ); |
|
1377 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1378 |
|
1379 // Test step 2: get added plugin configuration |
|
1380 //---------------------------------------------------------------- |
|
1381 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1382 RunTestStepSyncL( |
|
1383 ( TUint8* )addplugin_8_ts_2_method, |
|
1384 ( TUint8* )addplugin_8_ts_2_input, |
|
1385 ( TUint8* )addplugin_8_ts_2_output ); |
|
1386 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1387 |
|
1388 // post condition check: verify that resources of the application configuration have been copied |
|
1389 //---------------------------------------------------------------- |
|
1390 EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
1391 // Minimal - Root |
|
1392 // Minimal - View |
|
1393 ResetResources(); |
|
1394 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\main.xml"), 136 ); |
|
1395 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\picture.jpeg"), 18 ); |
|
1396 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\resource.file"), 17 ); |
|
1397 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\viewnavigationrules.xml"), 17 ); |
|
1398 // Minimal - Widget |
|
1399 // Typical - View1 |
|
1400 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\view1.bmp"), 9354 ); |
|
1401 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\hs_logoz.jpg"), 19519 ); |
|
1402 // Typical - Widget |
|
1403 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg"), 18179 ); |
|
1404 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp"), 6446 ); |
|
1405 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp"), 6446 ); |
|
1406 CheckResourcesL(); |
|
1407 EUNIT_PRINT( _L8( "post condition check for resource copy passed" ) ); |
|
1408 |
|
1409 // Test step 3: restore configuration by removing the plugin |
|
1410 //---------------------------------------------------------------- |
|
1411 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1412 RunTestStepSyncL( |
|
1413 ( TUint8* )addplugin_8_ts_3_method, |
|
1414 ( TUint8* )addplugin_8_ts_3_input, |
|
1415 ( TUint8* )addplugin_8_ts_3_output ); |
|
1416 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1417 } |
|
1418 |
|
1419 //------------------------------------------------------------------------------ |
|
1420 // Test case: AddPlugin(9) |
|
1421 //------------------------------------------------------------------------------ |
|
1422 void MT_CHSPSConfigurationIf::AddPlugin_9_L() |
|
1423 { |
|
1424 // Pre conditions |
|
1425 //---------------------------------------------------------------- |
|
1426 ResetClientFolderL(); // affects performance testing |
|
1427 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1428 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1429 |
|
1430 // Attach to HSPS |
|
1431 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1432 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1433 |
|
1434 // Test step 1: add widget with a finnish locale only |
|
1435 //---------------------------------------------------------------- |
|
1436 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1437 RunTestStepSyncL( |
|
1438 ( TUint8* )addplugin_9_ts_1_method, |
|
1439 ( TUint8* )addplugin_9_ts_1_input, |
|
1440 ( TUint8* )addplugin_9_ts_1_output ); |
|
1441 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1442 |
|
1443 // Test step 2: get added plugin configuration |
|
1444 //---------------------------------------------------------------- |
|
1445 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1446 RunTestStepSyncL( |
|
1447 ( TUint8* )addplugin_9_ts_2_method, |
|
1448 ( TUint8* )addplugin_9_ts_2_input, |
|
1449 ( TUint8* )addplugin_9_ts_2_output ); |
|
1450 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1451 |
|
1452 // post condition check: verify that resources of the application configuration have been copied |
|
1453 //---------------------------------------------------------------- |
|
1454 EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
1455 ResetResources(); |
|
1456 // Typical - Root |
|
1457 // Typical - View1 |
|
1458 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\view1.bmp"), 9354 ); |
|
1459 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\hs_logoz.jpg"), 19519 ); |
|
1460 // Typical - View2 |
|
1461 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916242\\1.0\\sources\\view2.bmp"), 183654 ); |
|
1462 // Typical - Widget |
|
1463 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg"), 18179 ); |
|
1464 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp"), 6446 ); |
|
1465 // Typical - Widget |
|
1466 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg"), 18179 ); |
|
1467 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp"), 6446 ); |
|
1468 // Typical - FinnishWidget |
|
1469 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916274\\1.0\\sources\\common.jpg"), 19465 ); |
|
1470 AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916274\\1.0\\sources\\localizedbg.jpg"), 1214 ); |
|
1471 CheckResourcesL(); |
|
1472 EUNIT_PRINT( _L8( "post condition check for resource copy passed" ) ); |
|
1473 |
|
1474 // Test step 3: restore configuration by removing the plugin |
|
1475 //---------------------------------------------------------------- |
|
1476 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1477 RunTestStepSyncL( |
|
1478 ( TUint8* )addplugin_9_ts_3_method, |
|
1479 ( TUint8* )addplugin_9_ts_3_input, |
|
1480 ( TUint8* )addplugin_9_ts_3_output ); |
|
1481 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1482 } |
|
1483 |
|
1484 //------------------------------------------------------------------------------ |
|
1485 // Test case: AddPlugin(10) |
|
1486 //------------------------------------------------------------------------------ |
|
1487 void MT_CHSPSConfigurationIf::AddPlugin_10_L() |
|
1488 { |
|
1489 // Pre conditions |
|
1490 |
|
1491 // Attach to HSPS |
|
1492 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1493 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1494 |
|
1495 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1496 RunTestStepSyncL( |
|
1497 ( TUint8* )addplugin_10_ts_1_method, |
|
1498 ( TUint8* )addplugin_10_ts_1_input, |
|
1499 ( TUint8* )addplugin_10_ts_1_output ); |
|
1500 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1501 |
|
1502 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1503 RunTestStepSyncL( |
|
1504 ( TUint8* )addplugin_10_ts_2_method, |
|
1505 ( TUint8* )addplugin_10_ts_2_input, |
|
1506 ( TUint8* )addplugin_10_ts_2_output ); |
|
1507 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1508 |
|
1509 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1510 RunTestStepSyncL( |
|
1511 ( TUint8* )addplugin_10_ts_3_method, |
|
1512 ( TUint8* )addplugin_10_ts_3_input, |
|
1513 ( TUint8* )addplugin_10_ts_3_output ); |
|
1514 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1515 |
|
1516 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1517 RunTestStepSyncL( |
|
1518 ( TUint8* )addplugin_10_ts_4_method, |
|
1519 ( TUint8* )addplugin_10_ts_4_input, |
|
1520 ( TUint8* )addplugin_10_ts_4_output ); |
|
1521 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1522 |
|
1523 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
1524 RunTestStepSyncL( |
|
1525 ( TUint8* )addplugin_10_ts_5_method, |
|
1526 ( TUint8* )addplugin_10_ts_5_input, |
|
1527 ( TUint8* )addplugin_10_ts_5_output ); |
|
1528 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1529 |
|
1530 EUNIT_PRINT( _L8( "Test step 6" ) ); |
|
1531 RunTestStepSyncL( |
|
1532 ( TUint8* )addplugin_10_ts_6_method, |
|
1533 ( TUint8* )addplugin_10_ts_6_input, |
|
1534 ( TUint8* )addplugin_10_ts_6_output ); |
|
1535 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1536 |
|
1537 EUNIT_PRINT( _L8( "Test step 7" ) ); |
|
1538 RunTestStepSyncL( |
|
1539 ( TUint8* )addplugin_10_ts_7_method, |
|
1540 ( TUint8* )addplugin_10_ts_7_input, |
|
1541 ( TUint8* )addplugin_10_ts_7_output ); |
|
1542 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1543 |
|
1544 EUNIT_PRINT( _L8( "Test step 8" ) ); |
|
1545 RunTestStepSyncL( |
|
1546 ( TUint8* )addplugin_10_ts_8_method, |
|
1547 ( TUint8* )addplugin_10_ts_8_input, |
|
1548 ( TUint8* )addplugin_10_ts_8_output ); |
|
1549 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1550 } |
|
1551 |
|
1552 //------------------------------------------------------------------------------ |
|
1553 // Test case: AddPlugin(11) |
|
1554 //------------------------------------------------------------------------------ |
|
1555 void MT_CHSPSConfigurationIf::AddPlugin_11_L() |
|
1556 { |
|
1557 // Pre conditions |
|
1558 // Set active configuration to Typical configuration |
|
1559 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1560 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1561 |
|
1562 // Uninstall Widget Conf #1 |
|
1563 MT_CHspsInstallationService* installationService = MT_CHspsInstallationService::NewL(); |
|
1564 CleanupStack::PushL( installationService ); |
|
1565 installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSMinimalWidgetConf ); |
|
1566 CleanupStack::PopAndDestroy( installationService ); |
|
1567 |
|
1568 // Attach to HSPS |
|
1569 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1570 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1571 |
|
1572 // Test step 1 |
|
1573 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1574 RunTestStepSyncL( |
|
1575 ( TUint8* )addplugin_11_ts_1_method, |
|
1576 ( TUint8* )addplugin_11_ts_1_input, |
|
1577 ( TUint8* )addplugin_11_ts_1_output, |
|
1578 ETrue ); |
|
1579 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1580 |
|
1581 // Test step 2 |
|
1582 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1583 RunTestStepSyncL( |
|
1584 ( TUint8* )addplugin_11_ts_2_method, |
|
1585 ( TUint8* )addplugin_11_ts_2_input, |
|
1586 ( TUint8* )addplugin_11_ts_2_output ); |
|
1587 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1588 } |
|
1589 |
|
1590 //------------------------------------------------------------------------------ |
|
1591 // Test case: RemovePlugin(1) |
|
1592 //------------------------------------------------------------------------------ |
|
1593 void MT_CHSPSConfigurationIf::RemovePlugin_1_L() |
|
1594 { |
|
1595 // Pre conditions |
|
1596 // Set active configuration to Typical configuration |
|
1597 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1598 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1599 // Attach to HSPS |
|
1600 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1601 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1602 |
|
1603 // Test step 1 |
|
1604 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1605 RunTestStepSyncL( |
|
1606 ( TUint8* )removeplugin_1_ts_1_method, |
|
1607 ( TUint8* )removeplugin_1_ts_1_input, |
|
1608 ( TUint8* )removeplugin_1_ts_1_output ); |
|
1609 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1610 |
|
1611 // Test step 2 |
|
1612 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1613 RunTestStepSyncL( |
|
1614 ( TUint8* )removeplugin_1_ts_2_method, |
|
1615 ( TUint8* )removeplugin_1_ts_2_input, |
|
1616 ( TUint8* )removeplugin_1_ts_2_output ); |
|
1617 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1618 } |
|
1619 |
|
1620 //------------------------------------------------------------------------------ |
|
1621 // Test case: RemovePlugin(2) |
|
1622 //------------------------------------------------------------------------------ |
|
1623 void MT_CHSPSConfigurationIf::RemovePlugin_2_L() |
|
1624 { |
|
1625 // Pre conditions |
|
1626 |
|
1627 // Attach to HSPS |
|
1628 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1629 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1630 |
|
1631 // Test step 1 |
|
1632 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1633 RunTestStepSyncL( |
|
1634 ( TUint8* )removeplugin_2_ts_1_method, |
|
1635 ( TUint8* )removeplugin_2_ts_1_input, |
|
1636 ( TUint8* )removeplugin_2_ts_1_output ); |
|
1637 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1638 |
|
1639 // Test step 2 |
|
1640 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1641 RunTestStepSyncL( |
|
1642 ( TUint8* )removeplugin_2_ts_2_method, |
|
1643 ( TUint8* )removeplugin_2_ts_2_input, |
|
1644 ( TUint8* )removeplugin_2_ts_2_output ); |
|
1645 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1646 |
|
1647 // Test step 3 |
|
1648 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1649 RunTestStepSyncL( |
|
1650 ( TUint8* )removeplugin_2_ts_3_method, |
|
1651 ( TUint8* )removeplugin_2_ts_3_input, |
|
1652 ( TUint8* )removeplugin_2_ts_3_output ); |
|
1653 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1654 |
|
1655 // Test step 4 |
|
1656 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1657 RunTestStepSyncL( |
|
1658 ( TUint8* )removeplugin_2_ts_4_method, |
|
1659 ( TUint8* )removeplugin_2_ts_4_input, |
|
1660 ( TUint8* )removeplugin_2_ts_4_output ); |
|
1661 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1662 |
|
1663 // Test step 5 |
|
1664 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
1665 RunTestStepSyncL( |
|
1666 ( TUint8* )removeplugin_2_ts_5_method, |
|
1667 ( TUint8* )removeplugin_2_ts_5_input, |
|
1668 ( TUint8* )removeplugin_2_ts_5_output ); |
|
1669 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1670 } |
|
1671 |
|
1672 //------------------------------------------------------------------------------ |
|
1673 // Test case: RemovePlugin(3) |
|
1674 //------------------------------------------------------------------------------ |
|
1675 void MT_CHSPSConfigurationIf::RemovePlugin_3_L() |
|
1676 { |
|
1677 // Pre conditions |
|
1678 // Set active configuration to Typical configuration |
|
1679 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1680 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1681 // Attach to HSPS |
|
1682 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1683 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1684 |
|
1685 // Test step 1 |
|
1686 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1687 RunTestStepSyncL( |
|
1688 ( TUint8* )removeplugin_3_ts_1_method, |
|
1689 ( TUint8* )removeplugin_3_ts_1_input, |
|
1690 ( TUint8* )removeplugin_3_ts_1_output ); |
|
1691 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1692 |
|
1693 // Test step 2 |
|
1694 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1695 RunTestStepSyncL( |
|
1696 ( TUint8* )removeplugin_3_ts_2_method, |
|
1697 ( TUint8* )removeplugin_3_ts_2_input, |
|
1698 ( TUint8* )removeplugin_3_ts_2_output ); |
|
1699 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1700 } |
|
1701 |
|
1702 //------------------------------------------------------------------------------ |
|
1703 // Test case: RemovePlugin(4) |
|
1704 //------------------------------------------------------------------------------ |
|
1705 void MT_CHSPSConfigurationIf::RemovePlugin_4_L() |
|
1706 { |
|
1707 // Pre conditions |
|
1708 // Set active configuration to Typical configuration |
|
1709 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1710 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1711 // Attach to HSPS |
|
1712 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1713 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1714 |
|
1715 // Test step 1 |
|
1716 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1717 RunTestStepSyncL( |
|
1718 ( TUint8* )removeplugin_4_ts_1_method, |
|
1719 ( TUint8* )removeplugin_4_ts_1_input, |
|
1720 ( TUint8* )removeplugin_4_ts_1_output ); |
|
1721 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1722 |
|
1723 // Test step 2 |
|
1724 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1725 RunTestStepSyncL( |
|
1726 ( TUint8* )removeplugin_4_ts_2_method, |
|
1727 ( TUint8* )removeplugin_4_ts_2_input, |
|
1728 ( TUint8* )removeplugin_4_ts_2_output ); |
|
1729 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1730 } |
|
1731 |
|
1732 //------------------------------------------------------------------------------ |
|
1733 // Test case: SetPluginSettings(1) |
|
1734 //------------------------------------------------------------------------------ |
|
1735 void MT_CHSPSConfigurationIf::SetPluginSettings_1_L() |
|
1736 { |
|
1737 // Pre conditions |
|
1738 // Set active configuration to Typical configuration |
|
1739 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
1740 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
1741 // Attach to HSPS |
|
1742 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1743 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1744 |
|
1745 // Test step 1 |
|
1746 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1747 RunTestStepSyncL( |
|
1748 ( TUint8* )setpluginsettings_1_ts_1_method, |
|
1749 ( TUint8* )setpluginsettings_1_ts_1_input, |
|
1750 ( TUint8* )setpluginsettings_1_ts_1_output, |
|
1751 ETrue ); |
|
1752 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1753 |
|
1754 // Test step 2 |
|
1755 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1756 RunTestStepSyncL( |
|
1757 ( TUint8* )setpluginsettings_1_ts_2_method, |
|
1758 ( TUint8* )setpluginsettings_1_ts_2_input, |
|
1759 ( TUint8* )setpluginsettings_1_ts_2_output ); |
|
1760 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1761 |
|
1762 // Test step 3 |
|
1763 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1764 RunTestStepSyncL( |
|
1765 ( TUint8* )setpluginsettings_1_ts_3_method, |
|
1766 ( TUint8* )setpluginsettings_1_ts_3_input, |
|
1767 ( TUint8* )setpluginsettings_1_ts_3_output ); |
|
1768 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1769 } |
|
1770 |
|
1771 //------------------------------------------------------------------------------ |
|
1772 // Test case: SetPluginSettings(2) |
|
1773 //------------------------------------------------------------------------------ |
|
1774 void MT_CHSPSConfigurationIf::SetPluginSettings_2_L() |
|
1775 { |
|
1776 // Pre conditions |
|
1777 // Set active configuration to Typical configuration |
|
1778 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1779 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1780 // Attach to HSPS |
|
1781 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1782 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1783 |
|
1784 // Test step 1 |
|
1785 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1786 RunTestStepSyncL( |
|
1787 ( TUint8* )setpluginsettings_2_ts_1_method, |
|
1788 ( TUint8* )setpluginsettings_2_ts_1_input, |
|
1789 ( TUint8* )setpluginsettings_2_ts_1_output ); |
|
1790 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1791 |
|
1792 // Test step 2 |
|
1793 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1794 RunTestStepSyncL( |
|
1795 ( TUint8* )setpluginsettings_2_ts_2_method, |
|
1796 ( TUint8* )setpluginsettings_2_ts_2_input, |
|
1797 ( TUint8* )setpluginsettings_2_ts_2_output ); |
|
1798 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1799 |
|
1800 // Test step 2 |
|
1801 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1802 RunTestStepSyncL( |
|
1803 ( TUint8* )setpluginsettings_2_ts_3_method, |
|
1804 ( TUint8* )setpluginsettings_2_ts_3_input, |
|
1805 ( TUint8* )setpluginsettings_2_ts_3_output ); |
|
1806 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1807 } |
|
1808 |
|
1809 //------------------------------------------------------------------------------ |
|
1810 // Test case: SetPluginSettings(3) |
|
1811 //------------------------------------------------------------------------------ |
|
1812 void MT_CHSPSConfigurationIf::SetPluginSettings_3_L() |
|
1813 { |
|
1814 // Pre conditions |
|
1815 // Set active configuration to Typical configuration |
|
1816 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1817 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1818 // Attach to HSPS |
|
1819 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1820 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1821 |
|
1822 // Test step 1 |
|
1823 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1824 RunTestStepSyncL( |
|
1825 ( TUint8* )setpluginsettings_3_ts_1_method, |
|
1826 ( TUint8* )setpluginsettings_3_ts_1_input, |
|
1827 ( TUint8* )setpluginsettings_3_ts_1_output ); |
|
1828 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1829 } |
|
1830 |
|
1831 //------------------------------------------------------------------------------ |
|
1832 // Test case: SetPluginSettings(4) |
|
1833 //------------------------------------------------------------------------------ |
|
1834 void MT_CHSPSConfigurationIf::SetPluginSettings_4_L() |
|
1835 { |
|
1836 // Pre conditions |
|
1837 // Set active configuration to Typical configuration |
|
1838 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1839 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1840 // Attach to HSPS |
|
1841 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1842 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1843 |
|
1844 // Test step 1 |
|
1845 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1846 RunTestStepSyncL( |
|
1847 ( TUint8* )setpluginsettings_4_ts_1_method, |
|
1848 ( TUint8* )setpluginsettings_4_ts_1_input, |
|
1849 ( TUint8* )setpluginsettings_4_ts_1_output ); |
|
1850 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1851 } |
|
1852 |
|
1853 //------------------------------------------------------------------------------ |
|
1854 // Test case: SetPluginSettings(5) |
|
1855 //------------------------------------------------------------------------------ |
|
1856 void MT_CHSPSConfigurationIf::SetPluginSettings_5_L() |
|
1857 { |
|
1858 // Pre conditions |
|
1859 // Set active configuration to Typical configuration |
|
1860 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1861 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1862 // Attach to HSPS |
|
1863 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1864 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1865 |
|
1866 // Test step 1 |
|
1867 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1868 RunTestStepSyncL( |
|
1869 ( TUint8* )setpluginsettings_5_ts_1_method, |
|
1870 ( TUint8* )setpluginsettings_5_ts_1_input, |
|
1871 ( TUint8* )setpluginsettings_5_ts_1_output ); |
|
1872 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1873 } |
|
1874 |
|
1875 //------------------------------------------------------------------------------ |
|
1876 // Test case: SetPluginSettings(6) |
|
1877 //------------------------------------------------------------------------------ |
|
1878 void MT_CHSPSConfigurationIf::SetPluginSettings_6_L() |
|
1879 { |
|
1880 // Pre conditions |
|
1881 // Set active configuration to Typical configuration |
|
1882 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1883 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1884 // Attach to HSPS |
|
1885 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1886 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1887 |
|
1888 // Test step 1 |
|
1889 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1890 RunTestStepSyncL( |
|
1891 ( TUint8* )setpluginsettings_6_ts_1_method, |
|
1892 ( TUint8* )setpluginsettings_6_ts_1_input, |
|
1893 ( TUint8* )setpluginsettings_6_ts_1_output ); |
|
1894 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1895 } |
|
1896 |
|
1897 //------------------------------------------------------------------------------ |
|
1898 // Test case: GetPluginSettings(1) |
|
1899 //------------------------------------------------------------------------------ |
|
1900 void MT_CHSPSConfigurationIf::GetPluginSettings_1_L() |
|
1901 { |
|
1902 // Pre conditions |
|
1903 // Set active configuration to Typical configuration |
|
1904 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1905 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1906 // Attach to HSPS |
|
1907 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1908 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1909 |
|
1910 // Test step 1 |
|
1911 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1912 RunTestStepSyncL( |
|
1913 ( TUint8* )getpluginsettings_1_ts_1_method, |
|
1914 ( TUint8* )getpluginsettings_1_ts_1_input, |
|
1915 ( TUint8* )getpluginsettings_1_ts_1_output, |
|
1916 ETrue ); |
|
1917 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1918 } |
|
1919 |
|
1920 //------------------------------------------------------------------------------ |
|
1921 // Test case: GetPluginSettings(2) |
|
1922 //------------------------------------------------------------------------------ |
|
1923 void MT_CHSPSConfigurationIf::GetPluginSettings_2_L() |
|
1924 { |
|
1925 // Pre conditions |
|
1926 // Set active configuration to Typical configuration |
|
1927 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1928 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1929 // Attach to HSPS |
|
1930 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1931 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1932 |
|
1933 // Test step 1 |
|
1934 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1935 RunTestStepSyncL( |
|
1936 ( TUint8* )getpluginsettings_2_ts_1_method, |
|
1937 ( TUint8* )getpluginsettings_2_ts_1_input, |
|
1938 ( TUint8* )getpluginsettings_2_ts_1_output ); |
|
1939 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1940 } |
|
1941 |
|
1942 //------------------------------------------------------------------------------ |
|
1943 // Test case: GetPluginSettings(3) |
|
1944 //------------------------------------------------------------------------------ |
|
1945 void MT_CHSPSConfigurationIf::GetPluginSettings_3_L() |
|
1946 { |
|
1947 // Pre conditions |
|
1948 // Set active configuration to Typical configuration |
|
1949 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1950 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1951 // Attach to HSPS |
|
1952 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1953 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1954 |
|
1955 // Test step 1 |
|
1956 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1957 RunTestStepSyncL( |
|
1958 ( TUint8* )getpluginsettings_3_ts_1_method, |
|
1959 ( TUint8* )getpluginsettings_3_ts_1_input, |
|
1960 ( TUint8* )getpluginsettings_3_ts_1_output ); |
|
1961 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1962 } |
|
1963 |
|
1964 //------------------------------------------------------------------------------ |
|
1965 // Test case: MovePlugins(1) |
|
1966 //------------------------------------------------------------------------------ |
|
1967 void MT_CHSPSConfigurationIf::MovePlugins_1_L() |
|
1968 { |
|
1969 // Pre conditions |
|
1970 // Set active configuration to Typical configuration |
|
1971 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1972 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1973 |
|
1974 // Attach to HSPS |
|
1975 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1976 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1977 |
|
1978 // Test step 1 |
|
1979 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1980 RunTestStepSyncL( |
|
1981 ( TUint8* )moveplugins_1_ts_1_method, |
|
1982 ( TUint8* )moveplugins_1_ts_1_input, |
|
1983 ( TUint8* )moveplugins_1_ts_1_output, |
|
1984 ETrue ); |
|
1985 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1986 |
|
1987 // Test step 2 |
|
1988 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1989 RunTestStepSyncL( |
|
1990 ( TUint8* )moveplugins_1_ts_2_method, |
|
1991 ( TUint8* )moveplugins_1_ts_2_input, |
|
1992 ( TUint8* )moveplugins_1_ts_2_output ); |
|
1993 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1994 |
|
1995 // Test step 3 |
|
1996 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1997 RunTestStepSyncL( |
|
1998 ( TUint8* )moveplugins_1_ts_3_method, |
|
1999 ( TUint8* )moveplugins_1_ts_3_input, |
|
2000 ( TUint8* )moveplugins_1_ts_3_output ); |
|
2001 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2002 |
|
2003 // Test step 4 |
|
2004 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
2005 RunTestStepSyncL( |
|
2006 ( TUint8* )moveplugins_1_ts_4_method, |
|
2007 ( TUint8* )moveplugins_1_ts_4_input, |
|
2008 ( TUint8* )moveplugins_1_ts_4_output ); |
|
2009 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2010 } |
|
2011 |
|
2012 //------------------------------------------------------------------------------ |
|
2013 // Test case: MovePlugins(2) |
|
2014 //------------------------------------------------------------------------------ |
|
2015 void MT_CHSPSConfigurationIf::MovePlugins_2_L() |
|
2016 { |
|
2017 // Pre conditions |
|
2018 // Set active configuration to Typical configuration |
|
2019 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2020 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2021 |
|
2022 // Attach to HSPS |
|
2023 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2024 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2025 |
|
2026 // Test step 1 |
|
2027 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2028 RunTestStepSyncL( |
|
2029 ( TUint8* )moveplugins_2_ts_1_method, |
|
2030 ( TUint8* )moveplugins_2_ts_1_input, |
|
2031 ( TUint8* )moveplugins_2_ts_1_output ); |
|
2032 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2033 } |
|
2034 |
|
2035 //------------------------------------------------------------------------------ |
|
2036 // Test case: MovePlugins(3) |
|
2037 //------------------------------------------------------------------------------ |
|
2038 void MT_CHSPSConfigurationIf::MovePlugins_3_L() |
|
2039 { |
|
2040 // Pre conditions |
|
2041 // Set active configuration to Typical configuration |
|
2042 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2043 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2044 |
|
2045 // Attach to HSPS |
|
2046 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2047 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2048 |
|
2049 // Test step 1 |
|
2050 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2051 RunTestStepSyncL( |
|
2052 ( TUint8* )moveplugins_3_ts_1_method, |
|
2053 ( TUint8* )moveplugins_3_ts_1_input, |
|
2054 ( TUint8* )moveplugins_3_ts_1_output ); |
|
2055 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2056 } |
|
2057 |
|
2058 //------------------------------------------------------------------------------ |
|
2059 // Test case: MovePlugins(4) |
|
2060 //------------------------------------------------------------------------------ |
|
2061 void MT_CHSPSConfigurationIf::MovePlugins_4_L() |
|
2062 { |
|
2063 // Pre conditions |
|
2064 // Set active configuration to Typical configuration |
|
2065 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2066 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2067 |
|
2068 // Attach to HSPS |
|
2069 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2070 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2071 |
|
2072 // Test step 1 |
|
2073 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2074 RunTestStepSyncL( |
|
2075 ( TUint8* )moveplugins_4_ts_1_method, |
|
2076 ( TUint8* )moveplugins_4_ts_1_input, |
|
2077 ( TUint8* )moveplugins_4_ts_1_output ); |
|
2078 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2079 } |
|
2080 |
|
2081 //------------------------------------------------------------------------------ |
|
2082 // Test case: MovePlugins(5) |
|
2083 //------------------------------------------------------------------------------ |
|
2084 void MT_CHSPSConfigurationIf::MovePlugins_5_L() |
|
2085 { |
|
2086 // Pre conditions |
|
2087 // Set active configuration to Typical configuration |
|
2088 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2089 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2090 |
|
2091 // Attach to HSPS |
|
2092 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2093 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2094 |
|
2095 // Test step 1 |
|
2096 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2097 RunTestStepSyncL( |
|
2098 ( TUint8* )moveplugins_5_ts_1_method, |
|
2099 ( TUint8* )moveplugins_5_ts_1_input, |
|
2100 ( TUint8* )moveplugins_5_ts_1_output ); |
|
2101 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2102 } |
|
2103 |
|
2104 //------------------------------------------------------------------------------ |
|
2105 // Test case: MovePlugins(6) |
|
2106 //------------------------------------------------------------------------------ |
|
2107 void MT_CHSPSConfigurationIf::MovePlugins_6_L() |
|
2108 { |
|
2109 // Pre conditions |
|
2110 |
|
2111 // Attach to HSPS |
|
2112 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2113 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2114 |
|
2115 // Test step 1 |
|
2116 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2117 RunTestStepSyncL( |
|
2118 ( TUint8* )moveplugins_6_ts_1_method, |
|
2119 ( TUint8* )moveplugins_6_ts_1_input, |
|
2120 ( TUint8* )moveplugins_6_ts_1_output ); |
|
2121 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2122 |
|
2123 // Test step 2 |
|
2124 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2125 RunTestStepSyncL( |
|
2126 ( TUint8* )moveplugins_6_ts_2_method, |
|
2127 ( TUint8* )moveplugins_6_ts_2_input, |
|
2128 ( TUint8* )moveplugins_6_ts_2_output ); |
|
2129 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2130 |
|
2131 // Test step 3 |
|
2132 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
2133 RunTestStepSyncL( |
|
2134 ( TUint8* )moveplugins_6_ts_3_method, |
|
2135 ( TUint8* )moveplugins_6_ts_3_input, |
|
2136 ( TUint8* )moveplugins_6_ts_3_output ); |
|
2137 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2138 |
|
2139 // Test step 4 |
|
2140 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
2141 RunTestStepSyncL( |
|
2142 ( TUint8* )moveplugins_6_ts_4_method, |
|
2143 ( TUint8* )moveplugins_6_ts_4_input, |
|
2144 ( TUint8* )moveplugins_6_ts_4_output ); |
|
2145 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2146 |
|
2147 // Test step 5 |
|
2148 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
2149 RunTestStepSyncL( |
|
2150 ( TUint8* )moveplugins_6_ts_5_method, |
|
2151 ( TUint8* )moveplugins_6_ts_5_input, |
|
2152 ( TUint8* )moveplugins_6_ts_5_output ); |
|
2153 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2154 } |
|
2155 |
|
2156 //------------------------------------------------------------------------------ |
|
2157 // Test case: ReplacePlugin_1_L(1) |
|
2158 //------------------------------------------------------------------------------ |
|
2159 void MT_CHSPSConfigurationIf::ReplacePlugin_1_L() |
|
2160 { |
|
2161 // Pre conditions |
|
2162 |
|
2163 // Set active configuration to Typical configuration |
|
2164 EUNIT_PRINT( _L8( "Pre conditions: active configuration is Typical" ) ); |
|
2165 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2166 |
|
2167 // Attach to HSPS |
|
2168 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2169 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2170 |
|
2171 // Test step 1 |
|
2172 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2173 RunTestStepSyncL( |
|
2174 ( TUint8* )replaceplugin_1_ts_1_method, |
|
2175 ( TUint8* )replaceplugin_1_ts_1_input, |
|
2176 ( TUint8* )replaceplugin_1_ts_1_output ); |
|
2177 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2178 |
|
2179 // Test step 2 |
|
2180 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2181 RunTestStepSyncL( |
|
2182 ( TUint8* )replaceplugin_1_ts_2_method, |
|
2183 ( TUint8* )replaceplugin_1_ts_2_input, |
|
2184 ( TUint8* )replaceplugin_1_ts_2_output ); |
|
2185 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2186 |
|
2187 // Test step 3 |
|
2188 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
2189 RunTestStepSyncL( |
|
2190 ( TUint8* )replaceplugin_1_ts_3_method, |
|
2191 ( TUint8* )replaceplugin_1_ts_3_input, |
|
2192 ( TUint8* )replaceplugin_1_ts_3_output ); |
|
2193 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2194 |
|
2195 // Test step 4 |
|
2196 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
2197 RunTestStepSyncL( |
|
2198 ( TUint8* )replaceplugin_1_ts_4_method, |
|
2199 ( TUint8* )replaceplugin_1_ts_4_input, |
|
2200 ( TUint8* )replaceplugin_1_ts_4_output ); |
|
2201 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2202 |
|
2203 // Test step 5 |
|
2204 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
2205 RunTestStepSyncL( |
|
2206 ( TUint8* )replaceplugin_1_ts_5_method, |
|
2207 ( TUint8* )replaceplugin_1_ts_5_input, |
|
2208 ( TUint8* )replaceplugin_1_ts_5_output ); |
|
2209 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2210 |
|
2211 // Test step 6 |
|
2212 EUNIT_PRINT( _L8( "Test step 6" ) ); |
|
2213 RunTestStepSyncL( |
|
2214 ( TUint8* )replaceplugin_1_ts_6_method, |
|
2215 ( TUint8* )replaceplugin_1_ts_6_input, |
|
2216 ( TUint8* )replaceplugin_1_ts_6_output ); |
|
2217 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2218 |
|
2219 // Test step 7 |
|
2220 EUNIT_PRINT( _L8( "Test step 7" ) ); |
|
2221 RunTestStepSyncL( |
|
2222 ( TUint8* )replaceplugin_1_ts_7_method, |
|
2223 ( TUint8* )replaceplugin_1_ts_7_input, |
|
2224 ( TUint8* )replaceplugin_1_ts_7_output ); |
|
2225 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2226 |
|
2227 // Test step 8 |
|
2228 EUNIT_PRINT( _L8( "Test step 8" ) ); |
|
2229 RunTestStepSyncL( |
|
2230 ( TUint8* )replaceplugin_1_ts_8_method, |
|
2231 ( TUint8* )replaceplugin_1_ts_8_input, |
|
2232 ( TUint8* )replaceplugin_1_ts_8_output ); |
|
2233 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2234 |
|
2235 // Test step 9 |
|
2236 EUNIT_PRINT( _L8( "Test step 9" ) ); |
|
2237 RunTestStepSyncL( |
|
2238 ( TUint8* )replaceplugin_1_ts_9_method, |
|
2239 ( TUint8* )replaceplugin_1_ts_9_input, |
|
2240 ( TUint8* )replaceplugin_1_ts_9_output ); |
|
2241 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2242 |
|
2243 // Make sure resources of the typical-widget are removed |
|
2244 // from client's private folder, should be restored in next step |
|
2245 if ( BaflUtils::FileExists( iFileserver, _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg" ) ) |
|
2246 || BaflUtils::FileExists( iFileserver, _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp" ) ) ) |
|
2247 { |
|
2248 CFileMan* fileManager = CFileMan::NewL( iFileserver ); |
|
2249 CleanupStack::PushL( fileManager ); |
|
2250 User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg" ) ) ); |
|
2251 User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp" ) ) ); |
|
2252 CleanupStack::PopAndDestroy( fileManager ); |
|
2253 if ( BaflUtils::FileExists( iFileserver, _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg" )) |
|
2254 || BaflUtils::FileExists( iFileserver, _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp" ) ) ) |
|
2255 { |
|
2256 User::Leave( KErrGeneral ); |
|
2257 } |
|
2258 } |
|
2259 |
|
2260 // Test step 10 |
|
2261 EUNIT_PRINT( _L8( "Test step 10" ) ); |
|
2262 RunTestStepSyncL( |
|
2263 ( TUint8* )replaceplugin_1_ts_10_method, |
|
2264 ( TUint8* )replaceplugin_1_ts_10_input, |
|
2265 ( TUint8* )replaceplugin_1_ts_10_output ); |
|
2266 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2267 |
|
2268 // Test step 11 |
|
2269 EUNIT_PRINT( _L8( "Test step 11" ) ); |
|
2270 RunTestStepSyncL( |
|
2271 ( TUint8* )replaceplugin_1_ts_11_method, |
|
2272 ( TUint8* )replaceplugin_1_ts_11_input, |
|
2273 ( TUint8* )replaceplugin_1_ts_11_output ); |
|
2274 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2275 |
|
2276 EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
2277 ResetResources(); |
|
2278 AddResourceL( _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg" ), 18179 ); |
|
2279 AddResourceL( _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp" ), 6446 ); |
|
2280 CheckResourcesL(); |
|
2281 EUNIT_PRINT( _L8( "post condition check for resource file copy passed" ) ); |
|
2282 } |
|
2283 |
|
2284 //------------------------------------------------------------------------------ |
|
2285 // Test case: GetAppConfs(1) |
|
2286 //------------------------------------------------------------------------------ |
|
2287 void MT_CHSPSConfigurationIf::GetAppConfs_1_L() |
|
2288 { |
|
2289 // Pre conditions |
|
2290 // Set active configuration to Typical configuration |
|
2291 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2292 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2293 |
|
2294 // Attach to HSPS |
|
2295 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2296 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2297 |
|
2298 // Test step 1 |
|
2299 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2300 RunTestStepSyncL( |
|
2301 ( TUint8* )getappconfs_1_ts_1_method, |
|
2302 ( TUint8* )getappconfs_1_ts_1_input, |
|
2303 ( TUint8* )getappconfs_1_ts_1_output, |
|
2304 ETrue ); |
|
2305 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2306 } |
|
2307 |
|
2308 //------------------------------------------------------------------------------ |
|
2309 // Test case: SetActiveAppConf(1) |
|
2310 //------------------------------------------------------------------------------ |
|
2311 void MT_CHSPSConfigurationIf::SetActiveAppConf_1_L() |
|
2312 { |
|
2313 // Pre conditions |
|
2314 // Set active configuration to Typical configuration |
|
2315 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2316 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2317 |
|
2318 // Attach to HSPS |
|
2319 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2320 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2321 |
|
2322 // Test step 1 |
|
2323 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2324 RunTestStepSyncL( |
|
2325 ( TUint8* )setactiveappconf_1_ts_1_method, |
|
2326 ( TUint8* )setactiveappconf_1_ts_1_input, |
|
2327 ( TUint8* )setactiveappconf_1_ts_1_output, |
|
2328 ETrue ); |
|
2329 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2330 |
|
2331 // Test step 2 |
|
2332 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2333 RunTestStepSyncL( |
|
2334 ( TUint8* )setactiveappconf_1_ts_2_method, |
|
2335 ( TUint8* )setactiveappconf_1_ts_2_input, |
|
2336 ( TUint8* )setactiveappconf_1_ts_2_output ); |
|
2337 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2338 } |
|
2339 |
|
2340 //------------------------------------------------------------------------------ |
|
2341 // Test case: SetActiveAppConf(2) |
|
2342 //------------------------------------------------------------------------------ |
|
2343 void MT_CHSPSConfigurationIf::SetActiveAppConf_2_L() |
|
2344 { |
|
2345 // Pre conditions |
|
2346 // Set active configuration to Typical configuration |
|
2347 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2348 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2349 |
|
2350 // Attach to HSPS |
|
2351 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2352 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2353 |
|
2354 // Test step 1 |
|
2355 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2356 RunTestStepSyncL( |
|
2357 ( TUint8* )setactiveappconf_2_ts_1_method, |
|
2358 ( TUint8* )setactiveappconf_2_ts_1_input, |
|
2359 ( TUint8* )setactiveappconf_2_ts_1_output ); |
|
2360 |
|
2361 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2362 |
|
2363 // Test step 2 |
|
2364 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2365 |
|
2366 RunTestStepSyncL( |
|
2367 ( TUint8* )setactiveappconf_2_ts_2_method, |
|
2368 ( TUint8* )setactiveappconf_2_ts_2_input, |
|
2369 ( TUint8* )setactiveappconf_2_ts_2_output ); |
|
2370 |
|
2371 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2372 } |
|
2373 |
|
2374 //------------------------------------------------------------------------------ |
|
2375 // Test case: SetActiveAppConf(3) |
|
2376 //------------------------------------------------------------------------------ |
|
2377 void MT_CHSPSConfigurationIf::SetActiveAppConf_3_L() |
|
2378 { |
|
2379 // Pre conditions |
|
2380 // Set active configuration to Typical configuration |
|
2381 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2382 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2383 |
|
2384 // Attach to HSPS |
|
2385 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2386 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2387 |
|
2388 // Test step 1 |
|
2389 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2390 RunTestStepSyncL( |
|
2391 ( TUint8* )setactiveappconf_3_ts_1_method, |
|
2392 ( TUint8* )setactiveappconf_3_ts_1_input, |
|
2393 ( TUint8* )setactiveappconf_3_ts_1_output ); |
|
2394 |
|
2395 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2396 |
|
2397 // Test step 2 |
|
2398 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2399 |
|
2400 RunTestStepSyncL( |
|
2401 ( TUint8* )setactiveappconf_3_ts_2_method, |
|
2402 ( TUint8* )setactiveappconf_3_ts_2_input, |
|
2403 ( TUint8* )setactiveappconf_3_ts_2_output ); |
|
2404 |
|
2405 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2406 } |
|
2407 |
|
2408 //------------------------------------------------------------------------------ |
|
2409 // Test case: SetActiveAppConf(4) |
|
2410 //------------------------------------------------------------------------------ |
|
2411 void MT_CHSPSConfigurationIf::SetActiveAppConf_4_L() |
|
2412 { |
|
2413 // Pre conditions |
|
2414 // Set active configuration to Typical configuration |
|
2415 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2416 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2417 |
|
2418 // Attach to HSPS |
|
2419 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2420 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2421 |
|
2422 // Test step 1 |
|
2423 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2424 RunTestStepSyncL( |
|
2425 ( TUint8* )setactiveappconf_4_ts_1_method, |
|
2426 ( TUint8* )setactiveappconf_4_ts_1_input, |
|
2427 ( TUint8* )setactiveappconf_4_ts_1_output ); |
|
2428 |
|
2429 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2430 |
|
2431 // Test step 2 |
|
2432 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2433 |
|
2434 RunTestStepSyncL( |
|
2435 ( TUint8* )setactiveappconf_4_ts_2_method, |
|
2436 ( TUint8* )setactiveappconf_4_ts_2_input, |
|
2437 ( TUint8* )setactiveappconf_4_ts_2_output ); |
|
2438 |
|
2439 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2440 } |
|
2441 |
|
2442 //------------------------------------------------------------------------------ |
|
2443 // Test case: RequestNotify(1) |
|
2444 //------------------------------------------------------------------------------ |
|
2445 void MT_CHSPSConfigurationIf::RequestNotify_1_L() |
|
2446 { |
|
2447 // Pre conditions |
|
2448 // Set active configuration to Typical configuration |
|
2449 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2450 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2451 |
|
2452 // Test step 1 |
|
2453 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2454 RunTestStepAsyncL( |
|
2455 ( TUint8* )requestnotify_1_ts_1_method, |
|
2456 ( TUint8* )requestnotify_1_ts_1_input, |
|
2457 ( TUint8* )requestnotify_1_ts_1_output, |
|
2458 ( TInt ) requestnotify_1_ts_1_trigger ); |
|
2459 |
|
2460 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2461 } |
|
2462 |
|
2463 //------------------------------------------------------------------------------ |
|
2464 // Test case: RequestNotify(2) |
|
2465 //------------------------------------------------------------------------------ |
|
2466 void MT_CHSPSConfigurationIf::RequestNotify_2_L() |
|
2467 { |
|
2468 // Pre conditions |
|
2469 // Set active configuration to Typical configuration |
|
2470 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2471 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2472 |
|
2473 // Test step 1 |
|
2474 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2475 RunTestStepAsyncL( |
|
2476 ( TUint8* )requestnotify_2_ts_1_method, |
|
2477 ( TUint8* )requestnotify_2_ts_1_input, |
|
2478 ( TUint8* )requestnotify_2_ts_1_output, |
|
2479 ( TInt ) requestnotify_2_ts_1_trigger ); |
|
2480 |
|
2481 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2482 } |
|
2483 |
|
2484 //------------------------------------------------------------------------------ |
|
2485 // Test case: RequestNotify(3) |
|
2486 //------------------------------------------------------------------------------ |
|
2487 void MT_CHSPSConfigurationIf::RequestNotify_3_L() |
|
2488 { |
|
2489 // Pre conditions |
|
2490 // Set active configuration to Typical configuration |
|
2491 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2492 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2493 |
|
2494 // Test step 1 |
|
2495 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2496 RunTestStepAsyncL( |
|
2497 ( TUint8* )requestnotify_3_ts_1_method, |
|
2498 ( TUint8* )requestnotify_3_ts_1_input, |
|
2499 ( TUint8* )requestnotify_3_ts_1_output, |
|
2500 ( TInt ) requestnotify_3_ts_1_trigger ); |
|
2501 |
|
2502 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2503 } |
|
2504 |
|
2505 //------------------------------------------------------------------------------ |
|
2506 // Test case: RequestNotify(4) |
|
2507 //------------------------------------------------------------------------------ |
|
2508 void MT_CHSPSConfigurationIf::RequestNotify_4_L() |
|
2509 { |
|
2510 // Pre conditions |
|
2511 // Set active configuration to Typical configuration |
|
2512 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2513 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2514 |
|
2515 // Test step 1 |
|
2516 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2517 RunTestStepAsyncL( |
|
2518 ( TUint8* )requestnotify_4_ts_1_method, |
|
2519 ( TUint8* )requestnotify_4_ts_1_input, |
|
2520 ( TUint8* )requestnotify_4_ts_1_output, |
|
2521 ( TInt ) requestnotify_4_ts_1_trigger ); |
|
2522 |
|
2523 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2524 |
|
2525 // Test step 2 |
|
2526 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2527 RunTestStepAsyncL( |
|
2528 ( TUint8* )requestnotify_4_ts_2_method, |
|
2529 ( TUint8* )requestnotify_4_ts_2_input, |
|
2530 ( TUint8* )requestnotify_4_ts_2_output, |
|
2531 ( TInt ) requestnotify_4_ts_2_trigger ); |
|
2532 |
|
2533 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2534 } |
|
2535 |
|
2536 //------------------------------------------------------------------------------ |
|
2537 // Test case: RequestNotify(5) |
|
2538 //------------------------------------------------------------------------------ |
|
2539 void MT_CHSPSConfigurationIf::RequestNotify_5_L() |
|
2540 { |
|
2541 // Pre conditions |
|
2542 // Set active configuration to Typical configuration |
|
2543 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2544 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2545 |
|
2546 // Test step 1 |
|
2547 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2548 RunTestStepAsyncL( |
|
2549 ( TUint8* )requestnotify_5_ts_1_method, |
|
2550 ( TUint8* )requestnotify_5_ts_1_input, |
|
2551 ( TUint8* )requestnotify_5_ts_1_output, |
|
2552 ( TInt ) requestnotify_5_ts_1_trigger ); |
|
2553 |
|
2554 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2555 } |
|
2556 |
|
2557 //------------------------------------------------------------------------------ |
|
2558 // Test case: RequestNotify(6) |
|
2559 //------------------------------------------------------------------------------ |
|
2560 void MT_CHSPSConfigurationIf::RequestNotify_6_L() |
|
2561 { |
|
2562 // Pre conditions |
|
2563 // Set active configuration to Minimal configuration |
|
2564 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2565 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2566 |
|
2567 // Test step 1: install a SISX package and check output from received notifiction |
|
2568 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2569 RunTestStepAsyncL( |
|
2570 ( TUint8* )requestnotify_6_ts_1_method, |
|
2571 ( TUint8* )requestnotify_6_ts_1_input, |
|
2572 ( TUint8* )requestnotify_6_ts_1_output, |
|
2573 ( TInt ) requestnotify_6_ts_1_trigger ); |
|
2574 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2575 |
|
2576 // Test step 2: update the SISX package and check output from received notifiction |
|
2577 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2578 RunTestStepAsyncL( |
|
2579 ( TUint8* )requestnotify_6_ts_2_method, |
|
2580 ( TUint8* )requestnotify_6_ts_2_input, |
|
2581 ( TUint8* )requestnotify_6_ts_2_output, |
|
2582 ( TInt ) requestnotify_6_ts_2_trigger ); |
|
2583 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2584 |
|
2585 // Attach to HSPS, get active app configuration which generates full application configuration with IDs |
|
2586 EUNIT_PRINT( _L8( "Attach to HSPS service IConfiguration interface" ) ); |
|
2587 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2588 |
|
2589 // Test step 3: add the installed v2 plugin to 1st view in the Minimal root configuration |
|
2590 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
2591 RunTestStepSyncL( |
|
2592 ( TUint8* )requestnotify_6_ts_3_method, |
|
2593 ( TUint8* )requestnotify_6_ts_3_input, |
|
2594 ( TUint8* )requestnotify_6_ts_3_output ); |
|
2595 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2596 |
|
2597 // Detach so that the next Typical app configuration gets read |
|
2598 TRAP_IGNORE( DetachServiceL() ); |
|
2599 |
|
2600 // Set active configuration to Typical configuration |
|
2601 EUNIT_PRINT( _L8( "Set Active configuration Typical" ) ); |
|
2602 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2603 |
|
2604 // Attach to HSPS, get active app configuration which generates full application configuration with IDs |
|
2605 EUNIT_PRINT( _L8( "Attach to HSPS service IConfiguration interface" ) ); |
|
2606 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2607 |
|
2608 // Test step 4: add the installed v2 plugin to 1st view in the Typical root configuration |
|
2609 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
2610 RunTestStepSyncL( |
|
2611 ( TUint8* )requestnotify_6_ts_4_method, |
|
2612 ( TUint8* )requestnotify_6_ts_4_input, |
|
2613 ( TUint8* )requestnotify_6_ts_4_output ); |
|
2614 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2615 |
|
2616 TRAP_IGNORE( DetachServiceL() ); |
|
2617 |
|
2618 // Test step 5: uninstall the SISX package and check output from received notification |
|
2619 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
2620 RunTestStepAsyncL( |
|
2621 ( TUint8* )requestnotify_6_ts_5_method, |
|
2622 ( TUint8* )requestnotify_6_ts_5_input, |
|
2623 ( TUint8* )requestnotify_6_ts_5_output, |
|
2624 ( TInt ) requestnotify_6_ts_5_trigger ); |
|
2625 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2626 |
|
2627 EUNIT_PRINT( _L8( "Set Active configuration Minimal" ) ); |
|
2628 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2629 |
|
2630 // Attach to HSPS, get active app configuration which generates full application configuration with IDs |
|
2631 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2632 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2633 |
|
2634 // Test step 6: get plugin conf from the plugin instance in the Minimal root configuration |
|
2635 EUNIT_PRINT( _L8( "Test step 6" ) ); |
|
2636 RunTestStepSyncL( |
|
2637 ( TUint8* )requestnotify_6_ts_6_method, |
|
2638 ( TUint8* )requestnotify_6_ts_6_input, |
|
2639 ( TUint8* )requestnotify_6_ts_6_output ); |
|
2640 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2641 } |
|
2642 |
|
2643 |
|
2644 //------------------------------------------------------------------------------ |
|
2645 // Test case: SisxUpgrade(1) |
|
2646 //------------------------------------------------------------------------------ |
|
2647 void MT_CHSPSConfigurationIf::SisxUpgrade_1_L() |
|
2648 { |
|
2649 // Pre conditions |
|
2650 |
|
2651 // Attach to HSPS |
|
2652 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2653 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2654 |
|
2655 // Test step 1: |
|
2656 EUNIT_PRINT( _L8( "Test step 1: simulate installation of a SISX package" ) ); |
|
2657 |
|
2658 CFileMan* fileManager = CFileMan::NewL( iFileserver ); |
|
2659 CleanupStack::PushL( fileManager ); |
|
2660 |
|
2661 // Copy installation files to c\private\200159c0\import |
|
2662 User::LeaveIfError( fileManager->Copy( |
|
2663 _L( "c:\\data\\mt_hsps\\installed_widget\\0\\" ), |
|
2664 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\0\\" ), |
|
2665 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2666 User::LeaveIfError( fileManager->Copy( |
|
2667 _L( "c:\\data\\mt_hsps\\installed_widget\\1\\" ), |
|
2668 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\1\\" ), |
|
2669 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2670 User::LeaveIfError( fileManager->Copy( |
|
2671 _L( "c:\\data\\mt_hsps\\installed_widget\\9\\" ), |
|
2672 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\9\\" ), |
|
2673 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2674 User::LeaveIfError( fileManager->Copy( |
|
2675 _L( "c:\\data\\mt_hsps\\installed_widget\\widgetconfiguration.xml" ), |
|
2676 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2677 CFileMan::EOverWrite ) ); |
|
2678 User::LeaveIfError( fileManager->Copy( |
|
2679 _L( "c:\\data\\mt_hsps\\installed_widget\\manifest.dat" ), |
|
2680 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2681 CFileMan::EOverWrite ) ); |
|
2682 User::LeaveIfError( fileManager->Copy( |
|
2683 _L( "c:\\data\\mt_hsps\\installed_widget\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2684 _L( "c:\\private\\200159c0\\import\\" ), |
|
2685 CFileMan::EOverWrite ) ); |
|
2686 |
|
2687 // Wait until configuration is installed |
|
2688 User::After( 4000000 ); |
|
2689 |
|
2690 // Make sure "InstalledWidget" is installed |
|
2691 if ( !BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2692 { |
|
2693 // Installation failed - remove imports to be able to re-run the test again |
|
2694 // The ChspsThemeServer::HandleConfigurationImportsL does handle newly |
|
2695 // added files only |
|
2696 User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2697 fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133.dat" ), |
|
2698 0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2699 User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2700 |
|
2701 // Leave - the test was not successfull |
|
2702 User::Leave( KErrGeneral ); |
|
2703 } |
|
2704 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2705 |
|
2706 // Test step 1: |
|
2707 EUNIT_PRINT( _L8( "Test step 2: simulate upgrade to v2 of a SISX package" ) ); |
|
2708 // Copy installation files to c\private\200159c0\import |
|
2709 User::LeaveIfError( fileManager->Copy( |
|
2710 _L( "c:\\data\\mt_hsps\\installed_widget_v2\\0\\" ), |
|
2711 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\2.0\\0\\" ), |
|
2712 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2713 User::LeaveIfError( fileManager->Copy( |
|
2714 _L( "c:\\data\\mt_hsps\\installed_widget_v2\\1\\" ), |
|
2715 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\2.0\\1\\" ), |
|
2716 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2717 User::LeaveIfError( fileManager->Copy( |
|
2718 _L( "c:\\data\\mt_hsps\\installed_widget_v2\\9\\" ), |
|
2719 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\2.0\\9\\" ), |
|
2720 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2721 User::LeaveIfError( fileManager->Copy( |
|
2722 _L( "c:\\data\\mt_hsps\\installed_widget_v2\\widgetconfiguration.xml" ), |
|
2723 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\2.0\\" ), |
|
2724 CFileMan::EOverWrite ) ); |
|
2725 User::LeaveIfError( fileManager->Copy( |
|
2726 _L( "c:\\data\\mt_hsps\\installed_widget_v2\\manifest.dat" ), |
|
2727 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\2.0\\" ), |
|
2728 CFileMan::EOverWrite ) ); |
|
2729 User::LeaveIfError( fileManager->Copy( |
|
2730 _L( "c:\\data\\mt_hsps\\installed_widget_v2\\plugin_0998_101FB657_2000B133_2.0.dat" ), |
|
2731 _L( "c:\\private\\200159c0\\import\\" ), |
|
2732 CFileMan::EOverWrite ) ); |
|
2733 |
|
2734 // Wait until configuration is installed |
|
2735 User::After( 4000000 ); |
|
2736 |
|
2737 // Make sure "InstalledWidget v1" is removed |
|
2738 if ( BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2739 { |
|
2740 // Installation failed - remove imports to be able to re-run the test again |
|
2741 // The ChspsThemeServer::HandleConfigurationImportsL does handle newly |
|
2742 // added files only |
|
2743 User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2744 fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2745 0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2746 fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_2.0.dat" ), |
|
2747 0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2748 |
|
2749 User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2750 User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_2.0.dat" ) ) ); |
|
2751 // Leave - the test was not successfull |
|
2752 User::Leave( KErrGeneral ); |
|
2753 } |
|
2754 |
|
2755 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2756 |
|
2757 |
|
2758 // Test step 3: |
|
2759 EUNIT_PRINT( _L8( "Test step 3: simulate uninstalation of a SISX package" ) ); |
|
2760 // Remove installation files to c\private\200159c0\import |
|
2761 User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2762 fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2763 0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2764 fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_2.0.dat" ), |
|
2765 0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2766 User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2767 User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_2.0.dat" ) ) ); |
|
2768 |
|
2769 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2770 User::After( 4000000 ); |
|
2771 |
|
2772 // check |
|
2773 // Copy installation files to c\private\200159c0\import |
|
2774 EUNIT_PRINT( _L8( "Test step 4: simulate installation of a SISX package" ) ); |
|
2775 User::LeaveIfError( fileManager->Copy( |
|
2776 _L( "c:\\data\\mt_hsps\\installed_widget\\0\\" ), |
|
2777 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\0\\" ), |
|
2778 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2779 User::LeaveIfError( fileManager->Copy( |
|
2780 _L( "c:\\data\\mt_hsps\\installed_widget\\1\\" ), |
|
2781 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\1\\" ), |
|
2782 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2783 User::LeaveIfError( fileManager->Copy( |
|
2784 _L( "c:\\data\\mt_hsps\\installed_widget\\9\\" ), |
|
2785 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\9\\" ), |
|
2786 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2787 User::LeaveIfError( fileManager->Copy( |
|
2788 _L( "c:\\data\\mt_hsps\\installed_widget\\widgetconfiguration.xml" ), |
|
2789 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2790 CFileMan::EOverWrite ) ); |
|
2791 User::LeaveIfError( fileManager->Copy( |
|
2792 _L( "c:\\data\\mt_hsps\\installed_widget\\manifest.dat" ), |
|
2793 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2794 CFileMan::EOverWrite ) ); |
|
2795 User::LeaveIfError( fileManager->Copy( |
|
2796 _L( "c:\\data\\mt_hsps\\installed_widget\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2797 _L( "c:\\private\\200159c0\\import\\" ), |
|
2798 CFileMan::EOverWrite ) ); |
|
2799 |
|
2800 // Wait until configuration is installed |
|
2801 User::After( 4000000 ); |
|
2802 |
|
2803 // Make sure "InstalledWidget" is installed |
|
2804 if ( !BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2805 { |
|
2806 // Installation failed - remove imports to be able to re-run the test again |
|
2807 // The ChspsThemeServer::HandleConfigurationImportsL does handle newly |
|
2808 // added files only |
|
2809 User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2810 fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2811 0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2812 User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2813 |
|
2814 // Leave - the test was not successfull |
|
2815 User::Leave( KErrGeneral ); |
|
2816 } |
|
2817 |
|
2818 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2819 |
|
2820 // Test step 2: |
|
2821 EUNIT_PRINT( _L8( "Test step 5: simulate un-installation of the SISX package" ) ); |
|
2822 |
|
2823 // Remove installation files from c\private\200159c0\import |
|
2824 User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2825 fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133.dat" ), |
|
2826 0, |
|
2827 KEntryAttReadOnly, |
|
2828 TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2829 User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2830 // Removing of *.dat file causes configuration uninstallation |
|
2831 // Wait until configuration is uninstalled |
|
2832 User::After( 4000000 ); |
|
2833 |
|
2834 // Make sure "InstalledWidget" is uninstalled |
|
2835 if ( BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2836 { |
|
2837 User::Leave( KErrGeneral ); |
|
2838 } |
|
2839 |
|
2840 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2841 |
|
2842 CleanupStack::PopAndDestroy( fileManager ); |
|
2843 }; |
|
2844 |
|
2845 |
|
2846 |
|
2847 |
|
2848 //------------------------------------------------------------------------------ |
|
2849 // Test case: SisxInstallation(1) |
|
2850 //------------------------------------------------------------------------------ |
|
2851 void MT_CHSPSConfigurationIf::SisxInstallation_1_L() |
|
2852 { |
|
2853 // Pre conditions |
|
2854 // Attach to HSPS |
|
2855 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2856 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2857 |
|
2858 // Test step 1: |
|
2859 EUNIT_PRINT( _L8( "Test step 1: simulate installation of a SISX package" ) ); |
|
2860 |
|
2861 CFileMan* fileManager = CFileMan::NewL( iFileserver ); |
|
2862 CleanupStack::PushL( fileManager ); |
|
2863 |
|
2864 // Copy installation files to c\private\200159c0\import |
|
2865 User::LeaveIfError( fileManager->Copy( |
|
2866 _L( "c:\\data\\mt_hsps\\installed_widget\\0\\" ), |
|
2867 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\0\\" ), |
|
2868 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2869 User::LeaveIfError( fileManager->Copy( |
|
2870 _L( "c:\\data\\mt_hsps\\installed_widget\\1\\" ), |
|
2871 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\1\\" ), |
|
2872 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2873 User::LeaveIfError( fileManager->Copy( |
|
2874 _L( "c:\\data\\mt_hsps\\installed_widget\\9\\" ), |
|
2875 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\9\\" ), |
|
2876 CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2877 User::LeaveIfError( fileManager->Copy( |
|
2878 _L( "c:\\data\\mt_hsps\\installed_widget\\widgetconfiguration.xml" ), |
|
2879 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2880 CFileMan::EOverWrite ) ); |
|
2881 User::LeaveIfError( fileManager->Copy( |
|
2882 _L( "c:\\data\\mt_hsps\\installed_widget\\manifest.dat" ), |
|
2883 _L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2884 CFileMan::EOverWrite ) ); |
|
2885 User::LeaveIfError( fileManager->Copy( |
|
2886 _L( "c:\\data\\mt_hsps\\installed_widget\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2887 _L( "c:\\private\\200159c0\\import\\" ), |
|
2888 CFileMan::EOverWrite ) ); |
|
2889 |
|
2890 // Wait until configuration is installed |
|
2891 User::After( 8000000 ); |
|
2892 |
|
2893 // Make sure "InstalledWidget" is installed |
|
2894 if ( !BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2895 { |
|
2896 // Installation failed - remove imports to be able to re-run the test again |
|
2897 // The ChspsThemeServer::HandleConfigurationImportsL does handle newly |
|
2898 // added files only |
|
2899 User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2900 fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133.dat" ), |
|
2901 0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2902 User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2903 |
|
2904 // Leave - the test was not successfull |
|
2905 User::Leave( KErrGeneral ); |
|
2906 } |
|
2907 |
|
2908 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2909 |
|
2910 // Test step 2: |
|
2911 EUNIT_PRINT( _L8( "Test step 2: simulate un-installation of the SISX package" ) ); |
|
2912 |
|
2913 // Remove installation files from c\private\200159c0\import |
|
2914 User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2915 fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133.dat" ), |
|
2916 0, |
|
2917 KEntryAttReadOnly, |
|
2918 TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2919 User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2920 // Removing of *.dat file causes configuration uninstallation |
|
2921 // Wait until configuration is uninstalled |
|
2922 User::After( 8000000 ); |
|
2923 |
|
2924 // Make sure "InstalledWidget" is uninstalled |
|
2925 if ( BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2926 { |
|
2927 User::Leave( KErrGeneral ); |
|
2928 } |
|
2929 |
|
2930 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2931 |
|
2932 |
|
2933 CleanupStack::PopAndDestroy( fileManager ); |
|
2934 } |
|
2935 |
|
2936 //------------------------------------------------------------------------------ |
|
2937 // Test case: NativeInstallation(1) |
|
2938 //------------------------------------------------------------------------------ |
|
2939 void MT_CHSPSConfigurationIf::NativeInstallation_1_L() |
|
2940 { |
|
2941 // Pre conditions |
|
2942 _LIT(KFileThemes, "c:\\private\\200159C0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000"); |
|
2943 |
|
2944 // Attach to HSPS |
|
2945 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2946 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2947 |
|
2948 MT_CHspsInstallationService* installationService = MT_CHspsInstallationService::NewL(); |
|
2949 CleanupStack::PushL( installationService ); |
|
2950 |
|
2951 // Test step 1: |
|
2952 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2953 installationService->InstallConfigurationL( KHSPSInstallInstalledWidgetConf ); |
|
2954 if ( !BaflUtils::FileExists( iFileserver, KFileThemes) ) |
|
2955 { |
|
2956 User::Leave( KErrGeneral ); |
|
2957 } |
|
2958 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2959 |
|
2960 // Test step 2: |
|
2961 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2962 installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSInstalledWidgetConf ); |
|
2963 if ( BaflUtils::FileExists( iFileserver, KFileThemes) ) |
|
2964 { |
|
2965 User::Leave( KErrGeneral ); |
|
2966 } |
|
2967 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2968 |
|
2969 CleanupStack::PopAndDestroy( installationService ); |
|
2970 } |
|
2971 |
|
2972 //------------------------------------------------------------------------------ |
|
2973 // Test case: SetActivePlugin(1) |
|
2974 //------------------------------------------------------------------------------ |
|
2975 void MT_CHSPSConfigurationIf::SetActivePlugin_1_L() |
|
2976 { |
|
2977 // Pre conditions |
|
2978 // Set active configuration to Typical configuration |
|
2979 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2980 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2981 // Attach to HSPS |
|
2982 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2983 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2984 |
|
2985 // Test step 1 |
|
2986 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2987 RunTestStepSyncL( |
|
2988 ( TUint8* )setactiveplugin_1_ts_1_method, |
|
2989 ( TUint8* )setactiveplugin_1_ts_1_input, |
|
2990 ( TUint8* )setactiveplugin_1_ts_1_output ); |
|
2991 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2992 |
|
2993 // Test step 2 |
|
2994 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2995 RunTestStepSyncL( |
|
2996 ( TUint8* )setactiveplugin_1_ts_2_method, |
|
2997 ( TUint8* )setactiveplugin_1_ts_2_input, |
|
2998 ( TUint8* )setactiveplugin_1_ts_2_output ); |
|
2999 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3000 } |
|
3001 |
|
3002 //------------------------------------------------------------------------------ |
|
3003 // Test case: SetActivePlugin(2) |
|
3004 //------------------------------------------------------------------------------ |
|
3005 void MT_CHSPSConfigurationIf::SetActivePlugin_2_L() |
|
3006 { |
|
3007 // Pre conditions |
|
3008 // Set active configuration to Typical configuration |
|
3009 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3010 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3011 // Attach to HSPS |
|
3012 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3013 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3014 |
|
3015 // Test step 1 |
|
3016 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3017 RunTestStepSyncL( |
|
3018 ( TUint8* )setactiveplugin_2_ts_1_method, |
|
3019 ( TUint8* )setactiveplugin_2_ts_1_input, |
|
3020 ( TUint8* )setactiveplugin_2_ts_1_output ); |
|
3021 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3022 |
|
3023 // Test step 2 |
|
3024 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3025 RunTestStepSyncL( |
|
3026 ( TUint8* )setactiveplugin_2_ts_2_method, |
|
3027 ( TUint8* )setactiveplugin_2_ts_2_input, |
|
3028 ( TUint8* )setactiveplugin_2_ts_2_output ); |
|
3029 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3030 } |
|
3031 |
|
3032 //------------------------------------------------------------------------------ |
|
3033 // Test case: SetActivePlugin(3) |
|
3034 //------------------------------------------------------------------------------ |
|
3035 void MT_CHSPSConfigurationIf::SetActivePlugin_3_L() |
|
3036 { |
|
3037 // Pre conditions |
|
3038 // Set active configuration to Typical configuration |
|
3039 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3040 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3041 // Attach to HSPS |
|
3042 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3043 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3044 |
|
3045 // Test step 1 |
|
3046 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3047 RunTestStepSyncL( |
|
3048 ( TUint8* )setactiveplugin_3_ts_1_method, |
|
3049 ( TUint8* )setactiveplugin_3_ts_1_input, |
|
3050 ( TUint8* )setactiveplugin_3_ts_1_output ); |
|
3051 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3052 |
|
3053 // Test step 2 |
|
3054 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3055 RunTestStepSyncL( |
|
3056 ( TUint8* )setactiveplugin_3_ts_2_method, |
|
3057 ( TUint8* )setactiveplugin_3_ts_2_input, |
|
3058 ( TUint8* )setactiveplugin_3_ts_2_output ); |
|
3059 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3060 } |
|
3061 |
|
3062 //------------------------------------------------------------------------------ |
|
3063 // Test case: SetActivePlugin(4) |
|
3064 //------------------------------------------------------------------------------ |
|
3065 void MT_CHSPSConfigurationIf::SetActivePlugin_4_L() |
|
3066 { |
|
3067 // Pre conditions |
|
3068 // Set active configuration to Typical configuration |
|
3069 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3070 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3071 // Attach to HSPS |
|
3072 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3073 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3074 |
|
3075 // Test step 1 |
|
3076 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3077 RunTestStepSyncL( |
|
3078 ( TUint8* )setactiveplugin_4_ts_1_method, |
|
3079 ( TUint8* )setactiveplugin_4_ts_1_input, |
|
3080 ( TUint8* )setactiveplugin_4_ts_1_output ); |
|
3081 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3082 |
|
3083 // Test step 2 |
|
3084 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3085 RunTestStepSyncL( |
|
3086 ( TUint8* )setactiveplugin_4_ts_2_method, |
|
3087 ( TUint8* )setactiveplugin_4_ts_2_input, |
|
3088 ( TUint8* )setactiveplugin_4_ts_2_output ); |
|
3089 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3090 } |
|
3091 |
|
3092 //------------------------------------------------------------------------------ |
|
3093 // Test case: SetActivePlugin(5) |
|
3094 //------------------------------------------------------------------------------ |
|
3095 void MT_CHSPSConfigurationIf::SetActivePlugin_5_L() |
|
3096 { |
|
3097 // Pre conditions |
|
3098 // Set active configuration to Typical configuration |
|
3099 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3100 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3101 // Attach to HSPS |
|
3102 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3103 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3104 |
|
3105 // Test step 1 |
|
3106 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3107 RunTestStepSyncL( |
|
3108 ( TUint8* )setactiveplugin_5_ts_1_method, |
|
3109 ( TUint8* )setactiveplugin_5_ts_1_input, |
|
3110 ( TUint8* )setactiveplugin_5_ts_1_output ); |
|
3111 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3112 } |
|
3113 |
|
3114 //------------------------------------------------------------------------------ |
|
3115 // Test case: SetActivePlugin(6) |
|
3116 //------------------------------------------------------------------------------ |
|
3117 void MT_CHSPSConfigurationIf::SetActivePlugin_6_L() |
|
3118 { |
|
3119 // Pre conditions |
|
3120 // Set active configuration to Typical configuration |
|
3121 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3122 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3123 // Attach to HSPS |
|
3124 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3125 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3126 |
|
3127 // Test step 1 |
|
3128 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3129 RunTestStepSyncL( |
|
3130 ( TUint8* )setactiveplugin_6_ts_1_method, |
|
3131 ( TUint8* )setactiveplugin_6_ts_1_input, |
|
3132 ( TUint8* )setactiveplugin_6_ts_1_output ); |
|
3133 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3134 } |
|
3135 |
|
3136 //------------------------------------------------------------------------------ |
|
3137 // Test case table |
|
3138 //------------------------------------------------------------------------------ |
|
3139 void MT_CHSPSConfigurationIf::RestoreConfigurations_1_L() |
|
3140 { |
|
3141 // Pre conditions |
|
3142 // Set active configuration to Typical configuration |
|
3143 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3144 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3145 // Attach to HSPS |
|
3146 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3147 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3148 |
|
3149 // Test step 1 |
|
3150 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3151 RunTestStepSyncL( |
|
3152 ( TUint8* )restoreconfigurations_1_ts_1_method, |
|
3153 ( TUint8* )restoreconfigurations_1_ts_1_input, |
|
3154 ( TUint8* )restoreconfigurations_1_ts_1_output ); |
|
3155 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3156 |
|
3157 // Test step 2 |
|
3158 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3159 RunTestStepSyncL( |
|
3160 ( TUint8* )restoreconfigurations_1_ts_2_method, |
|
3161 ( TUint8* )restoreconfigurations_1_ts_2_input, |
|
3162 ( TUint8* )restoreconfigurations_1_ts_2_output ); |
|
3163 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3164 |
|
3165 // Test step 3 |
|
3166 EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
3167 RunTestStepSyncL( |
|
3168 ( TUint8* )restoreconfigurations_1_ts_3_method, |
|
3169 ( TUint8* )restoreconfigurations_1_ts_3_input, |
|
3170 ( TUint8* )restoreconfigurations_1_ts_3_output ); |
|
3171 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3172 |
|
3173 // Test step 4 |
|
3174 EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
3175 RunTestStepSyncL( |
|
3176 ( TUint8* )restoreconfigurations_1_ts_4_method, |
|
3177 ( TUint8* )restoreconfigurations_1_ts_4_input, |
|
3178 ( TUint8* )restoreconfigurations_1_ts_4_output ); |
|
3179 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3180 |
|
3181 // Test step 5 |
|
3182 EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
3183 RunTestStepSyncL( |
|
3184 ( TUint8* )restoreconfigurations_1_ts_5_method, |
|
3185 ( TUint8* )restoreconfigurations_1_ts_5_input, |
|
3186 ( TUint8* )restoreconfigurations_1_ts_5_output ); |
|
3187 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3188 |
|
3189 // Test step 6 |
|
3190 EUNIT_PRINT( _L8( "Test step 6" ) ); |
|
3191 RunTestStepSyncL( |
|
3192 ( TUint8* )restoreconfigurations_1_ts_6_method, |
|
3193 ( TUint8* )restoreconfigurations_1_ts_6_input, |
|
3194 ( TUint8* )restoreconfigurations_1_ts_6_output ); |
|
3195 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3196 |
|
3197 // Test step 7 |
|
3198 EUNIT_PRINT( _L8( "Test step 7" ) ); |
|
3199 RunTestStepSyncL( |
|
3200 ( TUint8* )restoreconfigurations_1_ts_6_method, |
|
3201 ( TUint8* )restoreconfigurations_1_ts_6_input, |
|
3202 ( TUint8* )restoreconfigurations_1_ts_6_output ); |
|
3203 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3204 } |
|
3205 |
|
3206 //------------------------------------------------------------------------------ |
|
3207 // Test case: Customization(1) |
|
3208 //------------------------------------------------------------------------------ |
|
3209 void MT_CHSPSConfigurationIf::Customization_1_L() |
|
3210 { |
|
3211 // Pre conditions |
|
3212 |
|
3213 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
3214 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
3215 |
|
3216 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3217 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3218 |
|
3219 // Simulate customization by copying configuration files to D drive ("ROM" stuff is on C) |
|
3220 CFileMan* fileManager = CFileMan::NewL( iFileserver ); |
|
3221 CleanupStack::PushL( fileManager ); |
|
3222 User::LeaveIfError( |
|
3223 fileManager->Copy( |
|
3224 _L( "c:\\data\\mt_hsps\\installed_widget\\widgetconfiguration_customized.xml" ), |
|
3225 _L( "d:\\data\\mt_hsps\\installed_widget\\widgetconfiguration.xml" ), |
|
3226 CFileMan::ERecurse|CFileMan::EOverWrite |
|
3227 ) |
|
3228 ); |
|
3229 CleanupStack::PopAndDestroy( fileManager ); |
|
3230 |
|
3231 MT_CHspsInstallationService* installationService = MT_CHspsInstallationService::NewL(); |
|
3232 CleanupStack::PushL( installationService ); |
|
3233 |
|
3234 // Test step 1: install installed_widget which has customized content in D drive |
|
3235 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3236 installationService->InstallConfigurationL( KHSPSInstallInstalledWidgetConf ); |
|
3237 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3238 |
|
3239 // Test step 2: check settings from the installed_widget, it should hold |
|
3240 // settings from the widgetconfiguration_customized.xml file |
|
3241 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3242 RunTestStepSyncL( |
|
3243 ( TUint8* )customization_1_ts_2_method, |
|
3244 ( TUint8* )customization_1_ts_2_input, |
|
3245 ( TUint8* )customization_1_ts_2_output ); |
|
3246 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3247 |
|
3248 CleanupStack::PopAndDestroy( installationService ); |
|
3249 } |
|
3250 |
|
3251 //------------------------------------------------------------------------------ |
|
3252 // Test case: RestoreActiveAppConf(1) |
|
3253 //------------------------------------------------------------------------------ |
|
3254 void MT_CHSPSConfigurationIf::RestoreActiveAppConf_1_L() |
|
3255 { |
|
3256 // Pre conditions: activate configuration which hasn't got statuslicenceerestorable status |
|
3257 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
3258 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
3259 |
|
3260 // Get ODT and fill in the plugin DOMs |
|
3261 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3262 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3263 |
|
3264 // Test step 1: invalidate state of the active application configuration |
|
3265 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3266 RunTestStepSyncL( |
|
3267 ( TUint8* )restoreactiveappconf_1_ts_1_method, |
|
3268 ( TUint8* )restoreactiveappconf_1_ts_1_input, |
|
3269 ( TUint8* )restoreactiveappconf_1_ts_1_output ); |
|
3270 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3271 |
|
3272 // Test step 2: retrieve the app conf, Operator configuration should be now active |
|
3273 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3274 RunTestStepSyncL( |
|
3275 ( TUint8* )restoreactiveappconf_1_ts_2_method, |
|
3276 ( TUint8* )restoreactiveappconf_1_ts_2_input, |
|
3277 ( TUint8* )restoreactiveappconf_1_ts_2_output ); |
|
3278 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3279 } |
|
3280 |
|
3281 |
|
3282 //------------------------------------------------------------------------------ |
|
3283 // Test case: RestoreActiveAppConfL(2) |
|
3284 //------------------------------------------------------------------------------ |
|
3285 void MT_CHSPSConfigurationIf::RestoreActiveAppConf_2_L() |
|
3286 { |
|
3287 // Pre conditions: activate configuration with a statuslicenceerestorable status |
|
3288 EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Operator" ) ); |
|
3289 SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfOperator ); |
|
3290 |
|
3291 // Get ODT and fill in the plugin DOMs |
|
3292 EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3293 AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3294 |
|
3295 // Test step 1: invalidate state of the active application configuration |
|
3296 EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3297 RunTestStepSyncL( |
|
3298 ( TUint8* )restoreactiveappconf_2_ts_1_method, |
|
3299 ( TUint8* )restoreactiveappconf_2_ts_1_input, |
|
3300 ( TUint8* )restoreactiveappconf_2_ts_1_output ); |
|
3301 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3302 |
|
3303 // Test step 2: retrieve the app conf, we should fail installing the Operator |
|
3304 // configuration as it is not in ROM |
|
3305 EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3306 RunTestStepSyncL( |
|
3307 ( TUint8* )restoreactiveappconf_2_ts_2_method, |
|
3308 ( TUint8* )restoreactiveappconf_2_ts_2_input, |
|
3309 ( TUint8* )restoreactiveappconf_2_ts_2_output ); |
|
3310 EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3311 } |
|
3312 |
|
3313 //------------------------------------------------------------------------------ |
|
3314 // Test case table |
|
3315 //------------------------------------------------------------------------------ |
|
3316 EUNIT_BEGIN_TEST_TABLE( |
|
3317 MT_CHSPSConfigurationIf, |
|
3318 "This is a test suite for HSPS configuration interface.", |
|
3319 "UNIT" ) |
|
3320 |
|
3321 // Get configuration test group |
|
3322 EUNIT_TEST( |
|
3323 "GetActiveAppConf(1)", |
|
3324 "IConfiguration", |
|
3325 "GetActiveAppConf", |
|
3326 "FUNCTIONALITY", |
|
3327 SetupL, GetActiveAppConf_1_L, Teardown ) |
|
3328 |
|
3329 EUNIT_TEST( |
|
3330 "GetActiveAppConf(2)", |
|
3331 "IConfiguration", |
|
3332 "GetActiveAppConf", |
|
3333 "FUNCTIONALITY", |
|
3334 SetupL, GetActiveAppConf_2_L, Teardown ) |
|
3335 |
|
3336 EUNIT_TEST( |
|
3337 "GetActiveAppConf(3)", |
|
3338 "IConfiguration", |
|
3339 "GetActiveAppConf", |
|
3340 "FUNCTIONALITY", |
|
3341 SetupL, GetActiveAppConf_3_L, Teardown ) |
|
3342 |
|
3343 EUNIT_TEST( |
|
3344 "GetPluginConf(1)", |
|
3345 "IConfiguration", |
|
3346 "GetPluginConf", |
|
3347 "FUNCTIONALITY", |
|
3348 SetupL, GetPluginConf_1_L, Teardown ) |
|
3349 |
|
3350 EUNIT_TEST( |
|
3351 "GetPluginConf(2)", |
|
3352 "IConfiguration", |
|
3353 "GetPluginConf", |
|
3354 "FUNCTIONALITY", |
|
3355 SetupL, GetPluginConf_2_L, Teardown ) |
|
3356 |
|
3357 EUNIT_TEST( |
|
3358 "GetPluginConf(3)", |
|
3359 "IConfiguration", |
|
3360 "GetPluginConf", |
|
3361 "FUNCTIONALITY", |
|
3362 SetupL, GetPluginConf_3_L, Teardown ) |
|
3363 |
|
3364 EUNIT_TEST( |
|
3365 "GetPluginConf(4)", |
|
3366 "IConfiguration", |
|
3367 "GetPluginConf", |
|
3368 "FUNCTIONALITY", |
|
3369 SetupL, GetPluginConf_4_L, Teardown ) |
|
3370 |
|
3371 EUNIT_TEST( |
|
3372 "GetPluginConf(5)", |
|
3373 "IConfiguration", |
|
3374 "GetPluginConf", |
|
3375 "FUNCTIONALITY", |
|
3376 SetupL, GetPluginConf_5_L, Teardown ) |
|
3377 |
|
3378 // Modify Configuration test group |
|
3379 EUNIT_TEST( |
|
3380 "GetPlugins(1)", |
|
3381 "IConfiguration", |
|
3382 "GetPlugins", |
|
3383 "FUNCTIONALITY", |
|
3384 SetupL, GetPlugins_1_L, Teardown ) |
|
3385 |
|
3386 EUNIT_TEST( |
|
3387 "GetPlugins(2)", |
|
3388 "IConfiguration", |
|
3389 "GetPlugins", |
|
3390 "FUNCTIONALITY", |
|
3391 SetupL, GetPlugins_2_L, Teardown ) |
|
3392 |
|
3393 EUNIT_TEST( |
|
3394 "GetPlugins(3)", |
|
3395 "IConfiguration", |
|
3396 "GetPlugins", |
|
3397 "FUNCTIONALITY", |
|
3398 SetupL, GetPlugins_3_L, Teardown ) |
|
3399 |
|
3400 EUNIT_TEST( |
|
3401 "GetPlugins(4)", |
|
3402 "IConfiguration", |
|
3403 "GetPlugins", |
|
3404 "FUNCTIONALITY", |
|
3405 SetupL, GetPlugins_4_L, Teardown ) |
|
3406 |
|
3407 EUNIT_TEST( |
|
3408 "GetPlugins(5)", |
|
3409 "IConfiguration", |
|
3410 "GetPlugins", |
|
3411 "FUNCTIONALITY", |
|
3412 SetupL, GetPlugins_5_L, Teardown ) |
|
3413 |
|
3414 EUNIT_TEST( |
|
3415 "GetPlugins(6)", |
|
3416 "IConfiguration", |
|
3417 "GetPlugins", |
|
3418 "FUNCTIONALITY", |
|
3419 SetupL, GetPlugins_6_L, Teardown ) |
|
3420 |
|
3421 EUNIT_TEST( |
|
3422 "GetPlugins(7)", |
|
3423 "IConfiguration", |
|
3424 "GetPlugins", |
|
3425 "FUNCTIONALITY", |
|
3426 SetupL, GetPlugins_7_L, Teardown ) |
|
3427 |
|
3428 EUNIT_TEST( |
|
3429 "GetPlugins(8)", |
|
3430 "IConfiguration", |
|
3431 "GetPlugins", |
|
3432 "FUNCTIONALITY", |
|
3433 SetupL, GetPlugins_8_L, Teardown ) |
|
3434 |
|
3435 EUNIT_TEST( |
|
3436 "GetPluginList(1)", |
|
3437 "IConfiguration", |
|
3438 "GetPluginList", |
|
3439 "FUNCTIONALITY", |
|
3440 SetupL, GetPluginList_1_L, Teardown ) |
|
3441 |
|
3442 EUNIT_TEST( |
|
3443 "GetPluginList(2)", |
|
3444 "IConfiguration", |
|
3445 "GetPluginList", |
|
3446 "FUNCTIONALITY", |
|
3447 SetupL, GetPluginList_2_L, Teardown ) |
|
3448 |
|
3449 EUNIT_TEST( |
|
3450 "GetPluginList(3)", |
|
3451 "IConfiguration", |
|
3452 "GetPluginList", |
|
3453 "FUNCTIONALITY", |
|
3454 SetupL, GetPluginList_3_L, Teardown ) |
|
3455 |
|
3456 EUNIT_TEST( |
|
3457 "GetPluginList(4)", |
|
3458 "IConfiguration", |
|
3459 "GetPluginList", |
|
3460 "FUNCTIONALITY", |
|
3461 SetupL, GetPluginList_4_L, Teardown ) |
|
3462 |
|
3463 EUNIT_TEST( |
|
3464 "GetPluginList(5)", |
|
3465 "IConfiguration", |
|
3466 "GetPluginList", |
|
3467 "FUNCTIONALITY", |
|
3468 SetupL, GetPluginList_5_L, Teardown ) |
|
3469 |
|
3470 EUNIT_TEST( |
|
3471 "GetPluginList(6)", |
|
3472 "IConfiguration", |
|
3473 "GetPluginList", |
|
3474 "FUNCTIONALITY", |
|
3475 SetupL, GetPluginList_6_L, Teardown ) |
|
3476 |
|
3477 EUNIT_TEST( |
|
3478 "GetPluginList(7)", |
|
3479 "IConfiguration", |
|
3480 "GetPluginList", |
|
3481 "FUNCTIONALITY", |
|
3482 SetupL, GetPluginList_7_L, Teardown ) |
|
3483 |
|
3484 EUNIT_TEST( |
|
3485 "GetPluginList(8)", |
|
3486 "IConfiguration", |
|
3487 "GetPluginList", |
|
3488 "FUNCTIONALITY", |
|
3489 SetupL, GetPluginList_8_L, Teardown ) |
|
3490 |
|
3491 EUNIT_TEST( |
|
3492 "AddPlugin(1)", |
|
3493 "IConfiguration", |
|
3494 "AddPlugin", |
|
3495 "FUNCTIONALITY", |
|
3496 SetupL, AddPlugin_1_L, Teardown ) |
|
3497 |
|
3498 EUNIT_TEST( |
|
3499 "AddPlugin(2)", |
|
3500 "IConfiguration", |
|
3501 "AddPlugin", |
|
3502 "FUNCTIONALITY", |
|
3503 SetupL, AddPlugin_2_L, Teardown ) |
|
3504 |
|
3505 EUNIT_TEST( |
|
3506 "AddPlugin(3)", |
|
3507 "IConfiguration", |
|
3508 "AddPlugin", |
|
3509 "FUNCTIONALITY", |
|
3510 SetupL, AddPlugin_3_L, Teardown ) |
|
3511 |
|
3512 EUNIT_TEST( |
|
3513 "AddPlugin(4)", |
|
3514 "IConfiguration", |
|
3515 "AddPlugin", |
|
3516 "FUNCTIONALITY", |
|
3517 SetupL, AddPlugin_4_L, Teardown ) |
|
3518 |
|
3519 EUNIT_TEST( |
|
3520 "AddPlugin(5)", |
|
3521 "IConfiguration", |
|
3522 "AddPlugin", |
|
3523 "FUNCTIONALITY", |
|
3524 SetupL, AddPlugin_5_L, Teardown ) |
|
3525 |
|
3526 EUNIT_TEST( |
|
3527 "AddPlugin(6)", |
|
3528 "IConfiguration", |
|
3529 "AddPlugin", |
|
3530 "FUNCTIONALITY", |
|
3531 SetupL, AddPlugin_6_L, Teardown ) |
|
3532 |
|
3533 EUNIT_TEST( |
|
3534 "AddPlugin(7)", |
|
3535 "IConfiguration", |
|
3536 "AddPlugin", |
|
3537 "FUNCTIONALITY", |
|
3538 SetupL, AddPlugin_7_L, Teardown ) |
|
3539 |
|
3540 EUNIT_TEST( |
|
3541 "AddPlugin(8)", |
|
3542 "IConfiguration", |
|
3543 "AddPlugin", |
|
3544 "FUNCTIONALITY", |
|
3545 SetupL, AddPlugin_8_L, Teardown ) |
|
3546 |
|
3547 EUNIT_TEST( |
|
3548 "AddPlugin(9)", |
|
3549 "IConfiguration", |
|
3550 "AddPlugin", |
|
3551 "FUNCTIONALITY", |
|
3552 SetupL, AddPlugin_9_L, Teardown ) |
|
3553 |
|
3554 EUNIT_TEST( |
|
3555 "AddPlugin(10)", |
|
3556 "IConfiguration", |
|
3557 "AddPlugin", |
|
3558 "FUNCTIONALITY", |
|
3559 SetupL, AddPlugin_10_L, Teardown ) |
|
3560 |
|
3561 EUNIT_TEST( |
|
3562 "AddPlugin(11)", |
|
3563 "IConfiguration", |
|
3564 "AddPlugin", |
|
3565 "FUNCTIONALITY", |
|
3566 SetupL, AddPlugin_11_L, Teardown ) |
|
3567 |
|
3568 EUNIT_TEST( |
|
3569 "RemovePlugin(1)", |
|
3570 "IConfiguration", |
|
3571 "RemovePlugin", |
|
3572 "FUNCTIONALITY", |
|
3573 SetupL, RemovePlugin_1_L, Teardown ) |
|
3574 |
|
3575 EUNIT_TEST( |
|
3576 "RemovePlugin(2)", |
|
3577 "IConfiguration", |
|
3578 "RemovePlugin", |
|
3579 "FUNCTIONALITY", |
|
3580 SetupL, RemovePlugin_2_L, Teardown ) |
|
3581 |
|
3582 EUNIT_TEST( |
|
3583 "RemovePlugin(3)", |
|
3584 "IConfiguration", |
|
3585 "RemovePlugin", |
|
3586 "FUNCTIONALITY", |
|
3587 SetupL, RemovePlugin_3_L, Teardown ) |
|
3588 |
|
3589 EUNIT_TEST( |
|
3590 "RemovePlugin(4)", |
|
3591 "IConfiguration", |
|
3592 "RemovePlugin", |
|
3593 "FUNCTIONALITY", |
|
3594 SetupL, RemovePlugin_4_L, Teardown ) |
|
3595 |
|
3596 EUNIT_TEST( |
|
3597 "SetPluginSettings(1)", |
|
3598 "IConfiguration", |
|
3599 "SetPluginSettings", |
|
3600 "FUNCTIONALITY", |
|
3601 SetupL, SetPluginSettings_1_L, Teardown ) |
|
3602 |
|
3603 EUNIT_TEST( |
|
3604 "SetPluginSettings(2)", |
|
3605 "IConfiguration", |
|
3606 "SetPluginSettings", |
|
3607 "FUNCTIONALITY", |
|
3608 SetupL, SetPluginSettings_2_L, Teardown ) |
|
3609 |
|
3610 EUNIT_TEST( |
|
3611 "SetPluginSettings(3)", |
|
3612 "IConfiguration", |
|
3613 "SetPluginSettings", |
|
3614 "FUNCTIONALITY", |
|
3615 SetupL, SetPluginSettings_3_L, Teardown ) |
|
3616 |
|
3617 EUNIT_TEST( |
|
3618 "SetPluginSettings(4)", |
|
3619 "IConfiguration", |
|
3620 "SetPluginSettings", |
|
3621 "FUNCTIONALITY", |
|
3622 SetupL, SetPluginSettings_4_L, Teardown ) |
|
3623 |
|
3624 EUNIT_TEST( |
|
3625 "SetPluginSettings(5)", |
|
3626 "IConfiguration", |
|
3627 "SetPluginSettings", |
|
3628 "FUNCTIONALITY", |
|
3629 SetupL, SetPluginSettings_5_L, Teardown ) |
|
3630 |
|
3631 EUNIT_TEST( |
|
3632 "SetPluginSettings(6)", |
|
3633 "IConfiguration", |
|
3634 "SetPluginSettings", |
|
3635 "FUNCTIONALITY", |
|
3636 SetupL, SetPluginSettings_6_L, Teardown ) |
|
3637 |
|
3638 EUNIT_TEST( |
|
3639 "GetPluginSettings(1)", |
|
3640 "IConfiguration", |
|
3641 "GetPluginSettings", |
|
3642 "FUNCTIONALITY", |
|
3643 SetupL, GetPluginSettings_1_L, Teardown ) |
|
3644 |
|
3645 EUNIT_TEST( |
|
3646 "GetPluginSettings(2)", |
|
3647 "IConfiguration", |
|
3648 "GetPluginSettings", |
|
3649 "FUNCTIONALITY", |
|
3650 SetupL, GetPluginSettings_2_L, Teardown ) |
|
3651 |
|
3652 EUNIT_TEST( |
|
3653 "GetPluginSettings(3)", |
|
3654 "IConfiguration", |
|
3655 "GetPluginSettings", |
|
3656 "FUNCTIONALITY", |
|
3657 SetupL, GetPluginSettings_3_L, Teardown ) |
|
3658 |
|
3659 EUNIT_TEST( |
|
3660 "MovePlugins(1)", |
|
3661 "IConfiguration", |
|
3662 "MovePlugins", |
|
3663 "FUNCTIONALITY", |
|
3664 SetupL, MovePlugins_1_L, Teardown ) |
|
3665 |
|
3666 EUNIT_TEST( |
|
3667 "MovePlugins(2)", |
|
3668 "IConfiguration", |
|
3669 "MovePlugins", |
|
3670 "FUNCTIONALITY", |
|
3671 SetupL, MovePlugins_2_L, Teardown ) |
|
3672 |
|
3673 EUNIT_TEST( |
|
3674 "MovePlugins(3)", |
|
3675 "IConfiguration", |
|
3676 "MovePlugins", |
|
3677 "FUNCTIONALITY", |
|
3678 SetupL, MovePlugins_3_L, Teardown ) |
|
3679 |
|
3680 EUNIT_TEST( |
|
3681 "MovePlugins(4)", |
|
3682 "IConfiguration", |
|
3683 "MovePlugins", |
|
3684 "FUNCTIONALITY", |
|
3685 SetupL, MovePlugins_4_L, Teardown ) |
|
3686 |
|
3687 EUNIT_TEST( |
|
3688 "MovePlugins(5)", |
|
3689 "IConfiguration", |
|
3690 "MovePlugins", |
|
3691 "FUNCTIONALITY", |
|
3692 SetupL, MovePlugins_5_L, Teardown ) |
|
3693 |
|
3694 EUNIT_TEST( |
|
3695 "MovePlugins(6)", |
|
3696 "IConfiguration", |
|
3697 "MovePlugins", |
|
3698 "FUNCTIONALITY", |
|
3699 SetupL, MovePlugins_6_L, Teardown ) |
|
3700 |
|
3701 EUNIT_TEST( |
|
3702 "ReplacePlugin(1)", |
|
3703 "IConfiguration", |
|
3704 "ReplacePlugin", |
|
3705 "FUNCTIONALITY", |
|
3706 SetupL, ReplacePlugin_1_L, Teardown ) |
|
3707 |
|
3708 EUNIT_TEST( |
|
3709 "GetAppConfs(1)", |
|
3710 "IConfiguration", |
|
3711 "GetAppConfs", |
|
3712 "FUNCTIONALITY", |
|
3713 SetupL, GetAppConfs_1_L, Teardown ) |
|
3714 |
|
3715 EUNIT_TEST( |
|
3716 "SetActiveAppConf(1)", |
|
3717 "IConfiguration", |
|
3718 "SetActiveAppConf", |
|
3719 "FUNCTIONALITY", |
|
3720 SetupL, SetActiveAppConf_1_L, Teardown ) |
|
3721 |
|
3722 EUNIT_TEST( |
|
3723 "SetActiveAppConf(2)", |
|
3724 "IConfiguration", |
|
3725 "SetActiveAppConf", |
|
3726 "FUNCTIONALITY", |
|
3727 SetupL, SetActiveAppConf_2_L, Teardown ) |
|
3728 |
|
3729 EUNIT_TEST( |
|
3730 "SetActiveAppConf(3)", |
|
3731 "IConfiguration", |
|
3732 "SetActiveAppConf", |
|
3733 "FUNCTIONALITY", |
|
3734 SetupL, SetActiveAppConf_3_L, Teardown ) |
|
3735 |
|
3736 EUNIT_TEST( |
|
3737 "SetActiveAppConf(4)", |
|
3738 "IConfiguration", |
|
3739 "SetActiveAppConf", |
|
3740 "FUNCTIONALITY", |
|
3741 SetupL, SetActiveAppConf_4_L, Teardown ) |
|
3742 |
|
3743 // EUNIT_TEST( |
|
3744 // "RequestNotify(1)", |
|
3745 // "IConfiguration", |
|
3746 // "RequestNotify", |
|
3747 // "FUNCTIONALITY", |
|
3748 // SetupL, RequestNotify_1_L, Teardown ) |
|
3749 |
|
3750 // EUNIT_TEST( |
|
3751 // "RequestNotify(2)", |
|
3752 // "IConfiguration", |
|
3753 // "RequestNotify", |
|
3754 // "FUNCTIONALITY", |
|
3755 // SetupL, RequestNotify_2_L, Teardown ) |
|
3756 |
|
3757 EUNIT_TEST( |
|
3758 "RequestNotify(3)", |
|
3759 "IConfiguration", |
|
3760 "RequestNotify", |
|
3761 "FUNCTIONALITY", |
|
3762 SetupL, RequestNotify_3_L, Teardown ) |
|
3763 |
|
3764 EUNIT_TEST( |
|
3765 "RequestNotify(4)", |
|
3766 "IConfiguration", |
|
3767 "RequestNotify", |
|
3768 "FUNCTIONALITY", |
|
3769 SetupL, RequestNotify_4_L, Teardown ) |
|
3770 |
|
3771 // EUNIT_TEST( |
|
3772 // "RequestNotify(5)", |
|
3773 // "IConfiguration", |
|
3774 // "RequestNotify", |
|
3775 // "FUNCTIONALITY", |
|
3776 // SetupL, RequestNotify_5_L, Teardown ) |
|
3777 |
|
3778 EUNIT_TEST( |
|
3779 "RequestNotify(6)", |
|
3780 "IConfiguration", |
|
3781 "RequestNotify", |
|
3782 "FUNCTIONALITY", |
|
3783 SetupL, RequestNotify_6_L, Teardown ) |
|
3784 |
|
3785 EUNIT_TEST( |
|
3786 "SisxUpgrade(1)", |
|
3787 "IConfiguration", |
|
3788 "SisxUpgrade", |
|
3789 "FUNCTIONALITY", |
|
3790 SetupL, SisxUpgrade_1_L, Teardown ) |
|
3791 |
|
3792 EUNIT_TEST( |
|
3793 "SisxInstallation(1)", |
|
3794 "IConfiguration", |
|
3795 "SisxInstallation", |
|
3796 "FUNCTIONALITY", |
|
3797 SetupL, SisxInstallation_1_L, Teardown ) |
|
3798 |
|
3799 EUNIT_TEST( |
|
3800 "NativeInstallation(1)", |
|
3801 "IConfiguration", |
|
3802 "NativeInstallation", |
|
3803 "FUNCTIONALITY", |
|
3804 SetupL, NativeInstallation_1_L, Teardown ) |
|
3805 |
|
3806 EUNIT_TEST( |
|
3807 "SetActivePlugin(1)", |
|
3808 "IConfiguration", |
|
3809 "SetActivePlugin", |
|
3810 "FUNCTIONALITY", |
|
3811 SetupL, SetActivePlugin_1_L, Teardown ) |
|
3812 |
|
3813 EUNIT_TEST( |
|
3814 "SetActivePlugin(2)", |
|
3815 "IConfiguration", |
|
3816 "SetActivePlugin", |
|
3817 "FUNCTIONALITY", |
|
3818 SetupL, SetActivePlugin_2_L, Teardown ) |
|
3819 |
|
3820 EUNIT_TEST( |
|
3821 "SetActivePlugin(3)", |
|
3822 "IConfiguration", |
|
3823 "SetActivePlugin", |
|
3824 "FUNCTIONALITY", |
|
3825 SetupL, SetActivePlugin_3_L, Teardown ) |
|
3826 |
|
3827 EUNIT_TEST( |
|
3828 "SetActivePlugin(4)", |
|
3829 "IConfiguration", |
|
3830 "SetActivePlugin", |
|
3831 "FUNCTIONALITY", |
|
3832 SetupL, SetActivePlugin_4_L, Teardown ) |
|
3833 |
|
3834 EUNIT_TEST( |
|
3835 "SetActivePlugin(5)", |
|
3836 "IConfiguration", |
|
3837 "SetActivePlugin", |
|
3838 "FUNCTIONALITY", |
|
3839 SetupL, SetActivePlugin_5_L, Teardown ) |
|
3840 |
|
3841 EUNIT_TEST( |
|
3842 "SetActivePlugin(6)", |
|
3843 "IConfiguration", |
|
3844 "SetActivePlugin", |
|
3845 "FUNCTIONALITY", |
|
3846 SetupL, SetActivePlugin_6_L, Teardown ) |
|
3847 |
|
3848 EUNIT_TEST( |
|
3849 "RestoreConfigurations(1)", |
|
3850 "IConfiguration", |
|
3851 "SetActivePlugin", |
|
3852 "FUNCTIONALITY", |
|
3853 SetupL, RestoreConfigurations_1_L, Teardown ) |
|
3854 |
|
3855 EUNIT_TEST( |
|
3856 "Customization(1)", |
|
3857 "IConfiguration", |
|
3858 "SetActivePlugin", |
|
3859 "FUNCTIONALITY", |
|
3860 SetupL, Customization_1_L, Teardown ) |
|
3861 |
|
3862 EUNIT_TEST( |
|
3863 "RestoreActiveAppConfL(1)", |
|
3864 "IConfiguration", |
|
3865 "SetActivePlugin", |
|
3866 "FUNCTIONALITY", |
|
3867 SetupL, RestoreActiveAppConf_1_L, Teardown ) |
|
3868 |
|
3869 EUNIT_TEST( |
|
3870 "RestoreActiveAppConfL(2)", |
|
3871 "IConfiguration", |
|
3872 "SetActivePlugin", |
|
3873 "FUNCTIONALITY", |
|
3874 SetupL, RestoreActiveAppConf_2_L, Teardown ) |
|
3875 |
|
3876 EUNIT_END_TEST_TABLE |
|
3877 |
|
3878 // END OF FILE |