sysstatemgmt/systemstateplugins/test/tintgsapolicy/src/tgsa_i_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".
    88 CTestStep* CGsaIntTestServer::CreateTestStep(const TDesC& aStepName )
    88 CTestStep* CGsaIntTestServer::CreateTestStep(const TDesC& aStepName )
    89 	{
    89 	{
    90 	//Following tests can be run only on techview emulator as it requires restarting of the emulator
    90 	//Following tests can be run only on techview emulator as it requires restarting of the emulator
    91 //#ifdef __WINS__
    91 //#ifdef __WINS__
    92 	CTestStep* testStep = NULL;
    92 	CTestStep* testStep = NULL;
    93 	if (aStepName == KTGsaStateTranToShutdownStep)
    93 	if (aStepName == KTGsaStateTranFromNormalStep)
    94 		{
       
    95 		testStep = new CGsaStateTranToDiffStatesTest(KTestProcTranToShutdown);
       
    96 		}
       
    97 	else if (aStepName == KTGsaStateTranFromShutdownStep)
       
    98 		{
       
    99 		testStep = new CGsaStateTranToDiffStatesTest(KTestProcTranFromShutdown);
       
   100 		}
       
   101 	else if (aStepName == KTGsaStateTranFromNormalStep)
       
   102 		{
    94 		{
   103 		testStep = new CGsaStateTranToDiffStatesTest(KTestProcTranFromNormal);
    95 		testStep = new CGsaStateTranToDiffStatesTest(KTestProcTranFromNormal);
   104 		}
    96 		}
   105 	else if (aStepName == KTGsaStateTranFromStartupStep)
    97 	else if (aStepName == KTGsaStateTranFromStartupStep)
   106 		{
    98 		{
   107 		testStep = new CGsaStateTranToDiffStatesTest(KTestProcTranFromStartup);
    99 		testStep = new CGsaStateTranToDiffStatesTest(KTestProcTranFromStartup);
   108 		}
       
   109 	else if (aStepName == KTGsaStateTranFromStartuptoShutdownStep)
       
   110 		{
       
   111 		testStep = new CGsaStateTranToDiffStatesTest(KTGsaStateTranFromStartuptoShutdownStep);
       
   112 		}
   100 		}
   113 	else if (aStepName == KTGsaDuplicateSubstateStep)
   101 	else if (aStepName == KTGsaDuplicateSubstateStep)
   114 		{
   102 		{
   115 		testStep = new CGsaDuplicateSubstateTest();
   103 		testStep = new CGsaDuplicateSubstateTest();
   116 		}
   104 		}