systemhealthmanagement/systemhealthmgr/test/tsysmon/src/tsysmon_server.cpp
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-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".
    39 #include "tsysmon_step_result_check.h"
    39 #include "tsysmon_step_result_check.h"
    40 #include "tsysmon_step_run_count_check.h"
    40 #include "tsysmon_step_run_count_check.h"
    41 #include "tsysmon_steploadsysmon.h"
    41 #include "tsysmon_steploadsysmon.h"
    42 #include "tsysmon_stepoomsysmon.h"
    42 #include "tsysmon_stepoomsysmon.h"
    43 #include "tsysmon_stepcancelallmonitors.h"
    43 #include "tsysmon_stepcancelallmonitors.h"
    44 #include "tsysmon_steposrestarttest.h"
       
    45 
    44 
    46 CSysMonTestServer* CSysMonTestServer::NewLC()
    45 CSysMonTestServer* CSysMonTestServer::NewLC()
    47 	{
    46 	{
    48 	CSysMonTestServer * server = new (ELeave) CSysMonTestServer();
    47 	CSysMonTestServer * server = new (ELeave) CSysMonTestServer();
    49 	CleanupStack::PushL(server);
    48 	CleanupStack::PushL(server);
   168 		}
   167 		}
   169     else if(aStepName == KCTestCaseCancelAllMonitors)
   168     else if(aStepName == KCTestCaseCancelAllMonitors)
   170         {
   169         {
   171         testStep = new CStepCancelAllMonitors();
   170         testStep = new CStepCancelAllMonitors();
   172         }
   171         }
   173     else if(aStepName == KCTestCaseCriticalNoRetriesStep)
       
   174         {
       
   175         testStep = new CStepOSRestart(KCTestCaseCriticalNoRetries);
       
   176         }
       
   177     else if(aStepName == KCTestCaseRestartOSStep)
       
   178         {
       
   179         testStep = new CStepOSRestart(KCTestCaseRestartOS);
       
   180         }
       
   181 	else 
   172 	else 
   182 		{
   173 		{
   183 		RDebug::Printf("Unknown sysmon teststep %S", &aStepName);	
   174 		RDebug::Printf("Unknown sysmon teststep %S", &aStepName);	
   184 		}
   175 		}
   185 		
   176