1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
36 #include "appfwk_test_appui.h" |
36 #include "appfwk_test_appui.h" |
37 #include "apparctestserver.h" |
37 #include "apparctestserver.h" |
38 #include "t_foreground.h" |
38 #include "t_foreground.h" |
39 #include "T_ProStep.h" |
39 #include "T_ProStep.h" |
40 #include "T_OOMStep.h" |
40 #include "T_OOMStep.h" |
41 #include "T_File2Step.h" |
|
42 #include "T_File3Step.h" |
|
43 #include "T_BackupStep.h" |
41 #include "T_BackupStep.h" |
44 #include "T_MdrStep.h" |
42 #include "T_MdrStep.h" |
45 #include "T_Serv2Step.h" |
43 #include "T_Serv2Step.h" |
46 #include "T_Serv3Step.h" |
44 #include "T_Serv3Step.h" |
47 #include "T_MruStep.h" |
45 #include "T_MruStep.h" |
70 #include "T_SysStartApparcStep.h" |
68 #include "T_SysStartApparcStep.h" |
71 #include "T_ProcStep.h" |
69 #include "T_ProcStep.h" |
72 #include "T_DataMappingPersistenceA.h" |
70 #include "T_DataMappingPersistenceA.h" |
73 #include "T_DataMappingPersistenceB.h" |
71 #include "T_DataMappingPersistenceB.h" |
74 #include "T_DataMappingPersistenceC.h" |
72 #include "T_DataMappingPersistenceC.h" |
75 #include "T_NonNativeAppsStep.h" |
|
76 #include "T_IntegritySupportStep.h" |
|
77 #include "T_IntegritySupportRebootStep.h" |
|
78 #include "T_ApsScan.h" |
73 #include "T_ApsScan.h" |
79 #include "T_EndTaskStep.h" |
74 #include "T_EndTaskStep.h" |
80 #include "T_RecUpgrade.h" |
75 #include "T_RecUpgrade.h" |
81 #include "T_AppListFileBootStep.h" |
76 #include "T_AppListFileBootStep.h" |
82 #include "T_AppListFileUpdateStep.h" |
77 #include "T_AppListFileUpdateStep.h" |
83 #include "t_largestackstep.h" |
78 #include "t_largestackstep.h" |
84 #include "t_drivenotification.h" |
|
85 #include "t_mimecontentpolicystep.h" |
79 #include "t_mimecontentpolicystep.h" |
86 #include "t_servicebasestep.h" |
80 #include "t_servicebasestep.h" |
|
81 |
|
82 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
83 #include "t_updateapplist.h" |
|
84 #include "t_forceregstep.h" |
|
85 #include "t_clientnotifstep.h" |
|
86 #include "t_nonnativetest.h" |
|
87 #else |
|
88 #include "T_File2Step.h" |
|
89 #include "T_File3Step.h" |
|
90 #include "T_NonNativeAppsStep.h" |
|
91 #include "T_IntegritySupportStep.h" |
|
92 #include "T_IntegritySupportRebootStep.h" |
|
93 #include "t_drivenotification.h" |
|
94 #endif |
87 |
95 |
88 CApparctestServer* CApparctestServer::NewL() |
96 CApparctestServer* CApparctestServer::NewL() |
89 /** |
97 /** |
90 @return - Instance of the test server |
98 @return - Instance of the test server |
91 Same code for Secure and non-secure variants |
99 Same code for Secure and non-secure variants |
129 } |
137 } |
130 else if(aStepName == KT_OOMStep) |
138 else if(aStepName == KT_OOMStep) |
131 { |
139 { |
132 testStep = new CT_OOMStep(); |
140 testStep = new CT_OOMStep(); |
133 } |
141 } |
|
142 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
134 else if(aStepName == KT_File2Step) |
143 else if(aStepName == KT_File2Step) |
135 { |
144 { |
136 testStep = new CT_File2Step(); |
145 testStep = new CT_File2Step(); |
137 } |
146 } |
138 else if(aStepName == KT_File3Step) |
147 else if(aStepName == KT_File3Step) |
139 { |
148 { |
140 testStep = new CT_File3Step(); |
149 testStep = new CT_File3Step(); |
141 } |
150 } |
|
151 #endif |
142 else if(aStepName == KT_BackupStep) |
152 else if(aStepName == KT_BackupStep) |
143 { |
153 { |
144 testStep = new CT_BackupStep(); |
154 testStep = new CT_BackupStep(); |
145 } |
155 } |
146 else if(aStepName == KT_MdrStep) |
156 else if(aStepName == KT_MdrStep) |
276 } |
286 } |
277 else if (aStepName == _L("T_DataMappingPersistenceC")) |
287 else if (aStepName == _L("T_DataMappingPersistenceC")) |
278 { |
288 { |
279 testStep = new CT_DataMappingPersistenceCTestStep(); |
289 testStep = new CT_DataMappingPersistenceCTestStep(); |
280 } |
290 } |
|
291 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
281 else if (aStepName == _L("T_NonNativeApps")) |
292 else if (aStepName == _L("T_NonNativeApps")) |
282 { |
293 { |
283 testStep = new CT_NonNativeAppsStep(); |
294 testStep = new CT_NonNativeAppsStep(); |
284 } |
295 } |
285 else if (aStepName == KT_IntegritySupportStep) |
296 else if (aStepName == KT_IntegritySupportStep) |
292 } |
303 } |
293 else if (aStepName == KT_IntegritySupportReboot2Step) |
304 else if (aStepName == KT_IntegritySupportReboot2Step) |
294 { |
305 { |
295 testStep = new CT_IntegritySupportReboot2TestStep(); |
306 testStep = new CT_IntegritySupportReboot2TestStep(); |
296 } |
307 } |
|
308 #endif |
297 else if (aStepName == KT_ApsScanStep) |
309 else if (aStepName == KT_ApsScanStep) |
298 { |
310 { |
299 testStep = new CT_ApsScanStep(); |
311 testStep = new CT_ApsScanStep(); |
300 } |
312 } |
301 else if (aStepName == KT_EndTaskStep) |
313 else if (aStepName == KT_EndTaskStep) |
320 } |
332 } |
321 else if (aStepName == KT_LargeStackStep) |
333 else if (aStepName == KT_LargeStackStep) |
322 { |
334 { |
323 testStep = new CT_LargeStackStep(); |
335 testStep = new CT_LargeStackStep(); |
324 } |
336 } |
|
337 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
325 else if (aStepName == KT_DriveNotificationStep) |
338 else if (aStepName == KT_DriveNotificationStep) |
326 { |
339 { |
327 testStep = new CT_DriveNotificationStep(); |
340 testStep = new CT_DriveNotificationStep(); |
328 } |
341 } |
|
342 #endif |
329 else if (aStepName == KT_MimeContentPolicyStep) |
343 else if (aStepName == KT_MimeContentPolicyStep) |
330 { |
344 { |
331 testStep = new CT_MimeContentPolicyStep(); |
345 testStep = new CT_MimeContentPolicyStep(); |
332 } |
346 } |
333 else if (aStepName == KT_ServiceBaseStep) |
347 else if (aStepName == KT_ServiceBaseStep) |
336 } |
350 } |
337 else if (aStepName == KT_RecUpgradeStep) |
351 else if (aStepName == KT_RecUpgradeStep) |
338 { |
352 { |
339 testStep = new CT_RecUpgradeStep(); |
353 testStep = new CT_RecUpgradeStep(); |
340 } |
354 } |
|
355 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
356 else if (aStepName == KT_TestUpdateAppListStep) |
|
357 { |
|
358 testStep = new CT_TestUpdateAppListStep(); |
|
359 } |
|
360 else if (aStepName == KT_ForceRegStep) |
|
361 { |
|
362 testStep = new CT_ForceRegStep(); |
|
363 } |
|
364 else if (aStepName == KT_ClientNotifStep) |
|
365 { |
|
366 testStep = new CT_ClientNotifStep(); |
|
367 } |
|
368 else if (aStepName == KT_NonNativeTestStep) |
|
369 { |
|
370 testStep = new CT_NonNativeTestStep(); |
|
371 } |
|
372 #endif |
341 |
373 |
342 return testStep; |
374 return testStep; |
343 } |
375 } |
344 |
376 |
345 |
377 |