systemhealthmanagement/systemhealthmgr/test/tsysmon/src/tsysmon_server.cpp
changeset 63 09d657f1ee00
parent 0 4e1aa6a622a0
child 61 8cb079868133
equal deleted inserted replaced
54:072a9626b290 63:09d657f1ee00
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-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".
    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"
    44 
    45 
    45 CSysMonTestServer* CSysMonTestServer::NewLC()
    46 CSysMonTestServer* CSysMonTestServer::NewLC()
    46 	{
    47 	{
    47 	CSysMonTestServer * server = new (ELeave) CSysMonTestServer();
    48 	CSysMonTestServer * server = new (ELeave) CSysMonTestServer();
    48 	CleanupStack::PushL(server);
    49 	CleanupStack::PushL(server);
   167 		}
   168 		}
   168     else if(aStepName == KCTestCaseCancelAllMonitors)
   169     else if(aStepName == KCTestCaseCancelAllMonitors)
   169         {
   170         {
   170         testStep = new CStepCancelAllMonitors();
   171         testStep = new CStepCancelAllMonitors();
   171         }
   172         }
       
   173     else if(aStepName == KCTestCaseCriticalNoRetriesStep)
       
   174         {
       
   175         testStep = new CStepOSRestart(KCTestCaseCriticalNoRetries);
       
   176         }
       
   177     else if(aStepName == KCTestCaseRestartOSStep)
       
   178         {
       
   179         testStep = new CStepOSRestart(KCTestCaseRestartOS);
       
   180         }
   172 	else 
   181 	else 
   173 		{
   182 		{
   174 		RDebug::Printf("Unknown sysmon teststep %S", &aStepName);	
   183 		RDebug::Printf("Unknown sysmon teststep %S", &aStepName);	
   175 		}
   184 		}
   176 		
   185