equal
deleted
inserted
replaced
16 /** |
16 /** |
17 @file |
17 @file |
18 */ |
18 */ |
19 |
19 |
20 #include "TE_smsprtstressserver.h" |
20 #include "TE_smsprtstressserver.h" |
|
21 |
21 #include "TE_smsprtstress.h" |
22 #include "TE_smsprtstress.h" |
22 |
23 |
23 |
|
24 _LIT(KServerName,"TE_SMSPRTSTRESS"); |
24 _LIT(KServerName,"TE_SMSPRTSTRESS"); |
25 |
|
26 |
25 |
27 CSmsPrtStressTestServer* CSmsPrtStressTestServer::NewL() |
26 CSmsPrtStressTestServer* CSmsPrtStressTestServer::NewL() |
28 /** |
27 /** |
29 * @return - Instance of the test server |
28 * @return - Instance of the test server |
30 * Called inside the MainL() function to create and start the |
29 * Called inside the MainL() function to create and start the |
31 * CTestServer derived server. |
30 * CTestServer derived server. |
32 */ |
31 */ |
33 { |
32 { |
34 CSmsPrtStressTestServer * server = new (ELeave) CSmsPrtStressTestServer(); |
33 CSmsPrtStressTestServer * server = new (ELeave) CSmsPrtStressTestServer(); |
35 CleanupStack::PushL(server); |
34 CleanupStack::PushL(server); |
|
35 // CSmsStackTestServer intermediate base class call |
|
36 // server->InitializeTsyAndPhonesL(); |
36 // CServer base class call |
37 // CServer base class call |
37 server->StartL(KServerName); |
38 server->StartL(KServerName); |
38 CleanupStack::Pop(server); |
39 CleanupStack::Pop(server); |
39 return server; |
40 return server; |
40 } |
41 } |
87 // Here the test step is created when it is needed. Note that this |
88 // Here the test step is created when it is needed. Note that this |
88 // function is non-leaving so we cannot use new(ELeave). Therefore |
89 // function is non-leaving so we cannot use new(ELeave). Therefore |
89 // the new could return NULL, but that is not a problem as it implies |
90 // the new could return NULL, but that is not a problem as it implies |
90 // the test step is missing and this will be marked in the log file. |
91 // the test step is missing and this will be marked in the log file. |
91 // |
92 // |
92 if (aStepName == _L("TestInit")) |
93 if (aStepName == _L("TestRxAndRead")) |
93 { |
|
94 testStep = new CTestInit ; |
|
95 } |
|
96 else if (aStepName == _L("TestRxAndRead")) |
|
97 { |
94 { |
98 testStep = new CTestRxAndRead ; |
95 testStep = new CTestRxAndRead ; |
99 } |
96 } |
100 else if (aStepName == _L("TestMultipleSimultaneousRequests")) |
97 else if (aStepName == _L("TestMultipleSimultaneousRequests")) |
101 { |
98 { |