appfw/apparchitecture/tef/apparctestserver.cpp
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
equal deleted inserted replaced
62:924385140d98 63:c2c61fdca848
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2009 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"
    41 #include "T_BackupStep.h"
    43 #include "T_BackupStep.h"
    42 #include "T_MdrStep.h"
    44 #include "T_MdrStep.h"
    43 #include "T_Serv2Step.h"
    45 #include "T_Serv2Step.h"
    44 #include "T_Serv3Step.h"
    46 #include "T_Serv3Step.h"
    45 #include "T_MruStep.h"
    47 #include "T_MruStep.h"
    68 #include "T_SysStartApparcStep.h"
    70 #include "T_SysStartApparcStep.h"
    69 #include "T_ProcStep.h"
    71 #include "T_ProcStep.h"
    70 #include "T_DataMappingPersistenceA.h"
    72 #include "T_DataMappingPersistenceA.h"
    71 #include "T_DataMappingPersistenceB.h"
    73 #include "T_DataMappingPersistenceB.h"
    72 #include "T_DataMappingPersistenceC.h"
    74 #include "T_DataMappingPersistenceC.h"
       
    75 #include "T_NonNativeAppsStep.h"
       
    76 #include "T_IntegritySupportStep.h"
       
    77 #include "T_IntegritySupportRebootStep.h"
    73 #include "T_ApsScan.h"
    78 #include "T_ApsScan.h"
    74 #include "T_EndTaskStep.h"
    79 #include "T_EndTaskStep.h"
    75 #include "T_RecUpgrade.h"
    80 #include "T_RecUpgrade.h"
    76 #include "T_AppListFileBootStep.h"
    81 #include "T_AppListFileBootStep.h"
    77 #include "T_AppListFileUpdateStep.h"
    82 #include "T_AppListFileUpdateStep.h"
    78 #include "t_largestackstep.h"
    83 #include "t_largestackstep.h"
       
    84 #include "t_drivenotification.h"
    79 #include "t_mimecontentpolicystep.h"
    85 #include "t_mimecontentpolicystep.h"
    80 #include "t_servicebasestep.h"
    86 #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
       
    95 
    87 
    96 CApparctestServer* CApparctestServer::NewL()
    88 CApparctestServer* CApparctestServer::NewL()
    97 /**
    89 /**
    98    @return - Instance of the test server
    90    @return - Instance of the test server
    99    Same code for Secure and non-secure variants
    91    Same code for Secure and non-secure variants
   137 		}
   129 		}
   138 	else if(aStepName == KT_OOMStep)
   130 	else if(aStepName == KT_OOMStep)
   139 		{
   131 		{
   140 		testStep = new CT_OOMStep();
   132 		testStep = new CT_OOMStep();
   141 		}
   133 		}
   142 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK	
       
   143 	else if(aStepName == KT_File2Step)
   134 	else if(aStepName == KT_File2Step)
   144 		{
   135 		{
   145 		testStep = new CT_File2Step();
   136 		testStep = new CT_File2Step();
   146 		}
   137 		}
   147 	else if(aStepName == KT_File3Step)
   138 	else if(aStepName == KT_File3Step)
   148 		{
   139 		{
   149 		testStep = new CT_File3Step();
   140 		testStep = new CT_File3Step();
   150 		}
   141 		}
   151 #endif	
       
   152 	else if(aStepName == KT_BackupStep)
   142 	else if(aStepName == KT_BackupStep)
   153 		{
   143 		{
   154 		testStep = new CT_BackupStep();
   144 		testStep = new CT_BackupStep();
   155 		}
   145 		}
   156 	else if(aStepName == KT_MdrStep)
   146 	else if(aStepName == KT_MdrStep)
   286 		}
   276 		}
   287 	else if (aStepName == _L("T_DataMappingPersistenceC"))
   277 	else if (aStepName == _L("T_DataMappingPersistenceC"))
   288 		{
   278 		{
   289 		testStep = new CT_DataMappingPersistenceCTestStep();
   279 		testStep = new CT_DataMappingPersistenceCTestStep();
   290 		}
   280 		}
   291 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK 	
       
   292 	else if (aStepName == _L("T_NonNativeApps"))
   281 	else if (aStepName == _L("T_NonNativeApps"))
   293 		{
   282 		{
   294 		testStep = new CT_NonNativeAppsStep();
   283 		testStep = new CT_NonNativeAppsStep();
   295 		}
   284 		}
   296 	else if (aStepName == KT_IntegritySupportStep)
   285 	else if (aStepName == KT_IntegritySupportStep)
   303 		}
   292 		}
   304 	else if (aStepName == KT_IntegritySupportReboot2Step)
   293 	else if (aStepName == KT_IntegritySupportReboot2Step)
   305 		{
   294 		{
   306 		testStep = new CT_IntegritySupportReboot2TestStep();
   295 		testStep = new CT_IntegritySupportReboot2TestStep();
   307 		}
   296 		}
   308 #endif  	
       
   309 	else if (aStepName == KT_ApsScanStep)
   297 	else if (aStepName == KT_ApsScanStep)
   310 		{
   298 		{
   311 		testStep = new CT_ApsScanStep();
   299 		testStep = new CT_ApsScanStep();
   312 		}
   300 		}
   313 	else if (aStepName == KT_EndTaskStep)
   301 	else if (aStepName == KT_EndTaskStep)
   332 		}
   320 		}
   333 	else if (aStepName == KT_LargeStackStep)
   321 	else if (aStepName == KT_LargeStackStep)
   334 		{
   322 		{
   335 		testStep = new CT_LargeStackStep();
   323 		testStep = new CT_LargeStackStep();
   336 		}
   324 		}
   337 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK	
       
   338 	else if (aStepName == KT_DriveNotificationStep)
   325 	else if (aStepName == KT_DriveNotificationStep)
   339 		{
   326 		{
   340 		testStep = new CT_DriveNotificationStep();
   327 		testStep = new CT_DriveNotificationStep();
   341 		}
   328 		}
   342 #endif	
       
   343 	else if (aStepName == KT_MimeContentPolicyStep)
   329 	else if (aStepName == KT_MimeContentPolicyStep)
   344 		{
   330 		{
   345 		testStep = new CT_MimeContentPolicyStep();
   331 		testStep = new CT_MimeContentPolicyStep();
   346 		}
   332 		}
   347 	else if (aStepName == KT_ServiceBaseStep)
   333 	else if (aStepName == KT_ServiceBaseStep)
   350 		}
   336 		}
   351 	else if (aStepName == KT_RecUpgradeStep)
   337 	else if (aStepName == KT_RecUpgradeStep)
   352 		{
   338 		{
   353 		testStep = new CT_RecUpgradeStep();
   339 		testStep = new CT_RecUpgradeStep();
   354 		}
   340 		}
   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	
       
   373 
   341 
   374 	return testStep;
   342 	return testStep;
   375 	}
   343 	}
   376 
   344 
   377 
   345