smsprotocols/smsstack/smsprot/Test/TE_SMSEMSPRT/TE_SMSEMSPRTSERVER.cpp
changeset 20 244d7c5f118e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
19:1f776524b15c 20:244d7c5f118e
    28  *  CTestServer derived server.
    28  *  CTestServer derived server.
    29  */
    29  */
    30 	{
    30 	{
    31 	CSmsEmsPrtTestServer* server = new (ELeave) CSmsEmsPrtTestServer();
    31 	CSmsEmsPrtTestServer* server = new (ELeave) CSmsEmsPrtTestServer();
    32 	CleanupStack::PushL(server);
    32 	CleanupStack::PushL(server);
       
    33 	// CSmsStackTestServer intermediate base class call
       
    34 	server->InitializeTsyAndPhonesL();
    33 	// CServer base class call
    35 	// CServer base class call
    34 	server->StartL(KServerName);
    36 	server->StartL(KServerName);
    35 	CleanupStack::Pop(server);
    37 	CleanupStack::Pop(server);
    36 	return server;
    38 	return server;
    37 	}
    39 	}
    84 	// Here the test step is created when it is needed. Note that this
    86 	// Here the test step is created when it is needed. Note that this
    85 	// function is non-leaving so we cannot use new(ELeave). Therefore
    87 	// function is non-leaving so we cannot use new(ELeave). Therefore
    86 	// the new could return NULL, but that is not a problem as it implies
    88 	// the new could return NULL, but that is not a problem as it implies
    87 	// the test step is missing and this will be marked in the log file.
    89 	// the test step is missing and this will be marked in the log file.
    88 	//
    90 	//
    89 	if (aStepName == _L("TestInit"))
    91 	if (aStepName == _L("TestEmsFormatA"))
    90 		{
       
    91 		testStep = new CTestInit;
       
    92 		}
       
    93 	else if (aStepName == _L("TestEmsFormatA"))
       
    94 		{
    92 		{
    95 		testStep = new CTestEmsFormatA ;
    93 		testStep = new CTestEmsFormatA ;
    96 		}
    94 		}
    97 	else if (aStepName == _L("TestEmsFormatB"))
    95 	else if (aStepName == _L("TestEmsFormatB"))
    98 		{
    96 		{