예제 #1
0
CTestStep* CR6SMSTestServer::CreateTestStep(const TDesC& aStepName)
/**
 *  @return - A CTestStep derived instance
 *  Secure and non-secure variants
 *  Implementation of CTestServer pure virtual
 */
	{
	CTestStep*  testStep = NULL;
	
	//
	// Here the test step is created when it is needed. Note that this
	// function is non-leaving so we cannot use new(ELeave). Therefore
	// the new could return NULL, but that is not a problem as it implies
	// the test step is missing and this will be marked in the log file.
	//
	if (aStepName == _L("CTestCSmsMessageAdditionalAttributes1"))
	    {
		testStep = new CTestCSmsMessageAdditionalAttributes1;
	    }
	else if (aStepName == _L("CTestCSmsMessageAdditionalAttributes2"))
	    {
		testStep = new CTestCSmsMessageAdditionalAttributes2;
	    }
	else if (aStepName == _L("CTestCSmsMessageAdditionalAttributes3"))
	    {
		testStep = new CTestCSmsMessageAdditionalAttributes3;
	    }
 	else if (aStepName == _L("CTestR6CSmsMessage"))
	    {
		testStep = new CTestR6CSmsMessage;
	    }
	else if (aStepName == _L("CTestAddingIEsViaNewAndExistingInterfaces"))
	    {
		testStep = new CTestAddingIEsViaNewAndExistingInterfaces;
	    }
	else if (aStepName == _L("CTestIECategoryDefinitions"))
	    {
		testStep = new CTestIECategoryDefinitions;
	    }
	else if (aStepName == _L("CTestR6DCS"))
	    {
		testStep = new CTestR6DCS;
	    }

	//
	// Set the test step name here to save code!!!
	//
	if (testStep != NULL)
		{
		testStep->SetTestStepName(aStepName);
		}
	
	return testStep;
	}
예제 #2
0
// __EDIT_ME__ - Use your own server class name
CTestStep* CTgsmuStoreServer::CreateTestStep(const TDesC& aStepName)
/**
 *  @return - A CTestStep derived instance
 *  Secure and non-secure variants
 *  Implementation of CTestServer pure virtual
 */
	{
	CTestStep* testStep = NULL;

	//
	// Here the test step is created when it is needed. Note that this
	// function is non-leaving so we cannot use new(ELeave). Therefore
	// the new could return NULL, but that is not a problem as it implies
	// the test step is missing and this will be marked in the log file.
	//
	if(aStepName == _L("TestGsmuStorFileOpenClose"))
		{
		testStep = new CTestGsmuStorFileOpenClose();
		}
	else if(aStepName == _L("TestGsmuStorFileOpenAfterAccess"))
		{
		testStep = new CTestGsmuStorFileOpenAfterAccess();
		}
	else if(aStepName == _L("TestGsmuStorTSAREntry"))
		{
		testStep = new CTestGsmuStorTSAREntry();
		}

	//
	// Set the test step name here to save code!!!
	//
	if (testStep != NULL)
		{
		testStep->SetTestStepName(aStepName);
		}
	
    return testStep;
	}