datacommsserver/esockserver/test/TE_EsockTestSteps/src/Te_esockteststepsSuiteServer.cpp
changeset 0 dfb7c4ff071f
child 1 21d2ab05f085
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // for (WINS && !EKA2) versions will be xxxServer.Dll and require a thread to be started
       
    15 // in the process of the client. The client initialises the server by calling the
       
    16 // one and only ordinal.
       
    17 // 
       
    18 //
       
    19 
       
    20 /**
       
    21  @file Te_esockteststepsSuiteServer.cpp
       
    22 */
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <c32comm.h>
       
    26 #include <c32root.h>
       
    27 #include <ecom/ecom.h>
       
    28 
       
    29 #include "SocketServer.TestSteps.h"
       
    30 #include "Connections.TestSteps.h"
       
    31 #include "SubConnections.TestSteps.h"
       
    32 #include "Sockets.TestSteps.h"
       
    33 
       
    34 #include "BearerMobility.TestSteps.h"
       
    35 
       
    36 #include "DataMonitoring.TestSteps.h"
       
    37 #include "ESockDebug.TestSteps.h"
       
    38 #include "ConnectionServer.TestSteps.h"
       
    39 #include "Commsdat.TestSteps.h"
       
    40 
       
    41 #include "Qos.TestSteps.h"
       
    42 #include "cancelconnectrsocketStep.h"
       
    43 #include "Te_esockteststepsSuiteServer.h"
       
    44 
       
    45 CTe_esockteststepsSuite* CTe_esockteststepsSuite::NewL()
       
    46 /**
       
    47  * @return - Instance of the test server
       
    48  * Same code for Secure and non-secure variants
       
    49  * Called inside the MainL() function to create and start the
       
    50  * CTestServer derived server.
       
    51  */
       
    52 	{
       
    53 	CTe_esockteststepsSuite * server = new (ELeave) CTe_esockteststepsSuite();
       
    54 	CleanupStack::PushL(server);
       
    55 	// CServer base class call which can be either StartL or ConstructL,
       
    56 	// the later will permit Server Logging.
       
    57 
       
    58 	server->StartL(server->ServerName());
       
    59 
       
    60 
       
    61 	CleanupStack::Pop(server);
       
    62 	return server;
       
    63 	}
       
    64 
       
    65 
       
    66 // Secure variants much simpler
       
    67 // For EKA2, just an E32Main and a MainL()
       
    68 LOCAL_C void MainL()
       
    69 /**
       
    70  * Secure variant
       
    71  * Much simpler, uses the new Rendezvous() call to sync with the client
       
    72  */
       
    73 	{
       
    74 	// Leave the hooks in for platform security
       
    75 #if (defined __DATA_CAGING__)
       
    76 	RProcess().DataCaging(RProcess::EDataCagingOn);
       
    77 	RProcess().DataCaging(RProcess::ESecureApiOn);
       
    78 #endif
       
    79 	CActiveScheduler* sched=NULL;
       
    80 	sched=new(ELeave) CActiveScheduler;
       
    81 	CActiveScheduler::Install(sched);
       
    82 	CTe_esockteststepsSuite* server = NULL;
       
    83 	// Create the CTestServer derived server
       
    84 	TRAPD(err,server = CTe_esockteststepsSuite::NewL());
       
    85 	if(!err)
       
    86 		{
       
    87 		// Sync with the client and enter the active scheduler
       
    88 		RProcess::Rendezvous(KErrNone);
       
    89 		sched->Start();
       
    90 		}
       
    91 	delete server;
       
    92 	delete sched;
       
    93 	}
       
    94 
       
    95 
       
    96 
       
    97 GLDEF_C TInt E32Main()
       
    98 /**
       
    99  * @return - Standard Epoc error code on process exit
       
   100  * Secure variant only
       
   101  * Process entry point. Called by client using RProcess API
       
   102  */
       
   103 	{
       
   104 	__UHEAP_MARK;
       
   105 	CTrapCleanup* cleanup = CTrapCleanup::New();
       
   106 	if(cleanup == NULL)
       
   107 		{
       
   108 		return KErrNoMemory;
       
   109 		}
       
   110 	TRAPD(err,MainL());
       
   111 	delete cleanup;
       
   112 	REComSession::FinalClose();
       
   113 	__UHEAP_MARKEND;
       
   114 	return err;
       
   115     }
       
   116 
       
   117 
       
   118 
       
   119 
       
   120 CTe_esockteststepsSuite::CTe_esockteststepsSuite()
       
   121 	: CTestServer()
       
   122 	, iEsockTest(NULL)
       
   123 	{
       
   124 	}
       
   125 
       
   126 CTe_esockteststepsSuite::~CTe_esockteststepsSuite()
       
   127 	{
       
   128 	if( iEsockTest != NULL )
       
   129 		{
       
   130 		delete iEsockTest;
       
   131 		iEsockTest = NULL;
       
   132 		}
       
   133 	}
       
   134 
       
   135 #define NEW_ESOCK_TESTSTEP(TEST_STEP_NAME) \
       
   136 	else if(aStepName.CompareF (K##TEST_STEP_NAME) == 0)\
       
   137 		testStep = new C##TEST_STEP_NAME(iEsockTest);
       
   138 
       
   139 #define FIRST_NEW_ESOCK_TESTSTEP(TEST_STEP_NAME) \
       
   140 	if(aStepName.CompareF (K##TEST_STEP_NAME) == 0) \
       
   141 				testStep = new C##TEST_STEP_NAME(iEsockTest);
       
   142 
       
   143 
       
   144 
       
   145 CTestStep* CTe_esockteststepsSuite::CreateTestStep(const TDesC& aStepName)
       
   146 /**
       
   147  * @return - A CTestStep derived instance
       
   148  * Secure and non-secure variants
       
   149  * Implementation of CTestServer pure virtual
       
   150  */
       
   151 	{
       
   152 	CTestStep* testStep = NULL;
       
   153 
       
   154 	// They are created "just in time" when the worker thread is created
       
   155 	// More test steps can be added below
       
   156 	if(aStepName.CompareF (KAddRSocketToRSubConnectionStep) == 0)
       
   157 				testStep = new CAddRSocketToRSubConnectionStep(iEsockTest);
       
   158 	else if(aStepName.CompareF (KAcceptIncomingConnectionStep) == 0)
       
   159 				testStep = new CAcceptIncomingConnectionStep(iEsockTest);
       
   160 	else if(aStepName.CompareF (KAsyncAcceptIncomingConnectionStep) == 0)
       
   161                 testStep = new CAsyncAcceptIncomingConnectionStep(iEsockTest);
       
   162 	else if(aStepName.CompareF (KAddRSocketToRSubConnectionOOMStep) == 0)
       
   163 				testStep = new CAddRSocketToRSubConnectionOOMStep(iEsockTest);
       
   164 	else if(aStepName.CompareF (KBackupRestoreStep) == 0)
       
   165 				testStep = new CBackupRestoreStep(iEsockTest);
       
   166 	else if(aStepName.CompareF (KCheckMobilityNotificationStep) == 0)
       
   167 				testStep = new CCheckMobilityNotificationStep(iEsockTest);
       
   168 	else if(aStepName.CompareF (KCheckRSubConnectionEventsStep) == 0)
       
   169 				testStep = new CCheckRSubConnectionEventsStep(iEsockTest);
       
   170 	else if(aStepName.CompareF (KCloseRCommsMobilityAPIExtStep) == 0)
       
   171 				testStep = new CCloseRCommsMobilityAPIExtStep(iEsockTest);
       
   172 
       
   173 	else if(aStepName.CompareF (KCloseRConnectionStep) == 0)
       
   174 				testStep = new CCloseRConnectionStep(iEsockTest);
       
   175 	else if(aStepName.CompareF (KCloseRSocketServStep) == 0)
       
   176 				testStep = new CCloseRSocketServStep(iEsockTest);
       
   177 	else if(aStepName.CompareF (KCloseRSocketStep) == 0)
       
   178 				testStep = new CCloseRSocketStep(iEsockTest);
       
   179 	else if(aStepName.CompareF (KCloseRSubConnectionStep) == 0)
       
   180 				testStep = new CCloseRSubConnectionStep(iEsockTest);
       
   181 
       
   182 	else if(aStepName.CompareF (KCloseRSubConParameterBundleStep) == 0)
       
   183 				testStep = new CCloseRSubConParameterBundleStep(iEsockTest);
       
   184 	else if(aStepName.CompareF (KCompareExtIPLink99ParameterSetStep) == 0)
       
   185 				testStep = new CCompareExtIPLink99ParameterSetStep(iEsockTest);
       
   186 	else if(aStepName.CompareF (KCompareExtSBLPParameterSetStep) == 0)
       
   187 				testStep = new CCompareExtSBLPParameterSetStep(iEsockTest);
       
   188 	else if(aStepName.CompareF (KCompareGenQosParameterSetStep) == 0)
       
   189 				testStep = new CCompareGenQosParameterSetStep(iEsockTest);
       
   190 	else if(aStepName.CompareF (KCompareGenSBLPParameterSetStep) == 0)
       
   191 				testStep = new CCompareGenSBLPParameterSetStep(iEsockTest);
       
   192 	else if(aStepName.CompareF (KinitialiseExtMbmsParameterSetStep) == 0)
       
   193 				testStep = new CinitialiseExtMbmsParameterSetStep(iEsockTest);
       
   194 	else if(aStepName.CompareF (KinitialiseGenMbmsParameterSetStep) == 0)
       
   195 				testStep = new CinitialiseGenMbmsParameterStep(iEsockTest);
       
   196 
       
   197 	else if(aStepName.CompareF (KConnectRSocketServStep) == 0)
       
   198 				testStep = new CConnectRSocketServStep(iEsockTest);
       
   199 	else if(aStepName.CompareF (KConnectRSocketStep) == 0)
       
   200 				testStep = new CConnectRSocketStep(iEsockTest);
       
   201 	else if(aStepName.CompareF (KControlRSubConnectionStep) == 0)
       
   202 				testStep = new CControlRSubConnectionStep(iEsockTest);
       
   203 	else if(aStepName.CompareF (KCreateRConnectionStep) == 0)
       
   204 				testStep = new CCreateRConnectionStep(iEsockTest);
       
   205 	else if(aStepName.CompareF (KCreateRSocketServStep) == 0)
       
   206 				testStep = new CCreateRSocketServStep(iEsockTest);
       
   207 	else if(aStepName.CompareF (KCreateRSocketStep) == 0)
       
   208 				testStep = new CCreateRSocketStep(iEsockTest);
       
   209 
       
   210 	else if(aStepName.CompareF (KCreateSBLPFlowIdStep) == 0)
       
   211 				testStep = new CCreateSBLPFlowIdStep(iEsockTest);
       
   212 	else if(aStepName.CompareF (KSetSBLPFlowIdStep) == 0)
       
   213 				testStep = new CSetSBLPFlowIdStep(iEsockTest);
       
   214 
       
   215 	else if(aStepName.CompareF (KCreateRSubConnectionStep) == 0)
       
   216 				testStep = new CCreateRSubConnectionStep(iEsockTest);
       
   217 
       
   218 	else if(aStepName.CompareF (KCreateRSubConParameterBundleStep) == 0)
       
   219 				testStep = new CCreateRSubConParameterBundleStep(iEsockTest);
       
   220 	else if(aStepName.CompareF (KCreateRSubConParameterFamilyStep) == 0)
       
   221 				testStep = new CCreateRSubConParameterFamilyStep(iEsockTest);
       
   222 	else if(aStepName.CompareF (KGetRSubConParametersStep) == 0)
       
   223 				testStep = new CGetRSubConParametersStep(iEsockTest);
       
   224 	else if(aStepName.CompareF (KinitialiseExtIPLink99ParameterSetStep) == 0)
       
   225 				testStep = new CinitialiseExtIPLink99ParameterSetStep(iEsockTest);
       
   226               else if(aStepName.CompareF (KinitialiseExtIPLinkR5ParameterSetStep) == 0)
       
   227                             testStep = new CinitialiseExtIPLinkR5ParameterSetStep(iEsockTest);
       
   228               else if (aStepName.CompareF(KCompareExtIPLinkR5ParameterSetStep) == 0)
       
   229             	  testStep = new CCompareExtIPLinkR5ParameterSetStep(iEsockTest);
       
   230               else if(aStepName.CompareF (KinitialiseIMSExtParameterSetStep) == 0)
       
   231                             testStep = new CinitialiseIMSExtParameterSetStep(iEsockTest);
       
   232 // SYMBIAN_NETWORKING_UMTSR5
       
   233 	else if(aStepName.CompareF (KinitialiseExtSblpParameterSetStep) == 0)
       
   234 				testStep = new CinitialiseExtSblpParameterSetStep(iEsockTest);
       
   235 	else if(aStepName.CompareF (KinitialiseGenQosParameterSetStep) == 0)
       
   236 				testStep = new CinitialiseGenQosParameterSetStep(iEsockTest);
       
   237 	else if(aStepName.CompareF (KinitialiseGenSblpParameterSetStep) == 0)
       
   238 				testStep = new CinitialiseGenSblpParameterSetStep(iEsockTest);
       
   239 	else if(aStepName.CompareF (KMultipleOpenRSubConnectionStep) == 0)
       
   240 				testStep = new CMultipleOpenRSubConnectionStep(iEsockTest);
       
   241 	else if(aStepName.CompareF (KMultipleAddRSubConnectionStep) == 0)
       
   242 				testStep = new CMultipleAddRSubConnectionStep(iEsockTest);
       
   243 	else if(aStepName.CompareF (KAddRSocketToRSubConNoWaitStep) == 0)
       
   244 	                testStep = new CAddRSocketToRSubConNoWaitStep(iEsockTest);
       
   245 	else if(aStepName.CompareF (KMultipleRemoveRSubConnectionStep) == 0)
       
   246 				testStep = new CMultipleRemoveRSubConnectionStep(iEsockTest);
       
   247 	else if(aStepName.CompareF (KOpenRCommsMobilityAPIExtStep) == 0)
       
   248 				testStep = new COpenRCommsMobilityAPIExtStep(iEsockTest);
       
   249 
       
   250 	else if(aStepName.CompareF (KOpenRConnectionStep) == 0)
       
   251 				testStep = new COpenRConnectionStep(iEsockTest);
       
   252 	else if(aStepName.CompareF (KOpenRSocketStep) == 0)
       
   253 				testStep = new COpenRSocketStep(iEsockTest);
       
   254 	else if(aStepName.CompareF (KOpenRSubConnectionOOMStep) == 0)
       
   255 				testStep = new COpenRSubConnectionOOMStep(iEsockTest);
       
   256 	else if(aStepName.CompareF (KOpenRSubConnectionStep) == 0)
       
   257 				testStep = new COpenRSubConnectionStep(iEsockTest);
       
   258 
       
   259 	else if(aStepName.CompareF (KWaitForIncomingConnectionStep) == 0)
       
   260 				testStep = new CWaitForIncomingConnectionStep(iEsockTest);
       
   261 
       
   262 	else if(aStepName.CompareF (KRegisterForRSubConnectionEventsStep) == 0)
       
   263 				testStep = new CRegisterForRSubConnectionEventsStep(iEsockTest);
       
   264 	else if(aStepName.CompareF (KRemoveRSocketFromRSubConnectionOOMStep) == 0)
       
   265 				testStep = new CRemoveRSocketFromRSubConnectionOOMStep(iEsockTest);
       
   266 	else if(aStepName.CompareF (KRemoveRSocketFromRSubConnectionStep) == 0)
       
   267 				testStep = new CRemoveRSocketFromRSubConnectionStep(iEsockTest);
       
   268 	else if(aStepName.CompareF (KRejectIncomingConnectionStep) == 0)
       
   269 				testStep = new CRejectIncomingConnectionStep(iEsockTest);
       
   270 
       
   271 	else if(aStepName.CompareF (KSendReceiveRSocketStep) == 0)
       
   272 				testStep = new CSendReceiveRSocketStep(iEsockTest);
       
   273 
       
   274 	else if(aStepName.CompareF (KSetRSubConParametersStep) == 0)
       
   275 				testStep = new CSetRSubConParametersStep(iEsockTest);
       
   276 
       
   277 	else if(aStepName.CompareF (KShutdownRSocketStep) == 0)
       
   278 				testStep = new CShutdownRSocketStep(iEsockTest);
       
   279 	else if(aStepName.CompareF (KStartRConnectionStep) == 0)
       
   280 				testStep = new CStartRConnectionStep(iEsockTest);
       
   281 	else if(aStepName.CompareF (KAwaitRConnectionStartComplete) == 0)
       
   282 				testStep = new CAwaitRConnectionStartComplete(iEsockTest);
       
   283 	
       
   284 	else if(aStepName.CompareF (KStartSimTSYStep) == 0)
       
   285 				testStep = new CStartSimTSYStep(iEsockTest);
       
   286 
       
   287 	else if(aStepName.CompareF (KStopRConnectionStep) == 0)
       
   288 				testStep = new CStopRConnectionStep(iEsockTest);
       
   289 
       
   290 	else if(aStepName.CompareF (KStopSimTSYStep) == 0)
       
   291 				testStep = new CStopSimTSYStep(iEsockTest);
       
   292 	else if(aStepName.CompareF (KSimTSYTriggerEventStep) == 0)
       
   293 				testStep = new CSimTSYTriggerEventStep(iEsockTest);
       
   294 
       
   295 	else if(aStepName.CompareF (KCleanAllStep) == 0)
       
   296 				testStep = new CCleanAllStep(iEsockTest);
       
   297 
       
   298 	else if(aStepName.CompareF (KTe_CreatePublishSubscribeVar) == 0)
       
   299 					testStep = new CCreatePublishSubscribeVar(iEsockTest);
       
   300 	else if(aStepName.CompareF (KTe_CheckPublishSubscribeVar) == 0)
       
   301 						testStep = new CCheckPublishSubscribeVar(iEsockTest);
       
   302 
       
   303 	else if(aStepName.CompareF (KInitialiseRSubConParameterFamilyStep) == 0)
       
   304 				testStep = new CInitialiseRSubConParameterFamilyStep(iEsockTest);
       
   305     else if(aStepName.CompareF(KmoveConnectedSocketToSubconnectionStep)==0)
       
   306               	testStep = new CmoveConnectedSocketToSubconnectionStep(iEsockTest);
       
   307     else if(aStepName.CompareF(KCancelConnectrsocketStep)==0)
       
   308                 testStep = new CCancelConnectrsocketStep(iEsockTest);
       
   309 
       
   310     else if(aStepName.CompareF(Kacceptcarrierrcommsmobilityapiext)==0)
       
   311   				testStep = new Cacceptcarrierrcommsmobilityapiext(iEsockTest);
       
   312     else if(aStepName.CompareF(Krejectcarrierrcommsmobilityapiext)==0)
       
   313   				testStep = new Crejectcarrierrcommsmobilityapiext(iEsockTest);
       
   314     else if(aStepName.CompareF(KCancelMobilityNotificationStep)==0)
       
   315   				testStep = new CCancelMobilityNotificationStep(iEsockTest);
       
   316     else if(aStepName.CompareF(Kmigratercommsmobilityapiext)==0)
       
   317   				testStep = new Cmigratercommsmobilityapiext(iEsockTest);
       
   318     else if(aStepName.CompareF(Kignorercommsmobilityapiext)==0)
       
   319   				testStep = new Cignorercommsmobilityapiext(iEsockTest);
       
   320     else if(aStepName.CompareF(KRegisterForMobilityNotificationStep) == 0)
       
   321   				testStep = new CRegisterForMobilityNotificationStep(iEsockTest);
       
   322 
       
   323     else if(aStepName.CompareF (KattachtorconnectionStep) == 0)
       
   324                 testStep = new CattachtorconnectionStep(iEsockTest);
       
   325     else if(aStepName.CompareF(Kmobilitynotifyrcommsmobilityapiext)==0)
       
   326   				testStep = new Cmobilitynotifyrcommsmobilityapiext(iEsockTest);
       
   327     else if(aStepName.CompareF(Kcancelnotifyrcommsmobilityapiext)==0)
       
   328   				testStep = new Ccancelnotifyrcommsmobilityapiext(iEsockTest);
       
   329 
       
   330 	// Data monitoring
       
   331 	else if(aStepName.CompareF (KOpenRCommsDataMonitoringApiExtStep) == 0)
       
   332 				testStep = new COpenRCommsDataMonitoringApiExtStep(iEsockTest);
       
   333 	else if(aStepName.CompareF (KRequestDataTransferredStep) == 0)
       
   334 				testStep = new CRequestDataTransferredStep(iEsockTest);
       
   335 	else if(aStepName.CompareF (KCloseRCommsDataMonitoringApiExtStep) == 0)
       
   336 				testStep = new CCloseRCommsDataMonitoringApiExtStep(iEsockTest);
       
   337 	else if(aStepName.CompareF (KReceiveDataReceivedNotificationStep) == 0)
       
   338 				testStep = new CReceiveDataReceivedNotificationStep(iEsockTest);
       
   339 	else if(aStepName.CompareF (KReceiveDataSentNotificationStep) == 0)
       
   340 				testStep = new CReceiveDataSentNotificationStep(iEsockTest);
       
   341 	else if(aStepName.CompareF (KCancelDataReceivedNotificationStep) == 0)
       
   342 				testStep = new CCancelDataReceivedNotificationStep(iEsockTest);
       
   343 	else if(aStepName.CompareF (KCancelDataSentNotificationStep) == 0)
       
   344 				testStep = new CCancelDataSentNotificationStep(iEsockTest);
       
   345 	else if(aStepName.CompareF (KRequestDataReceivedNotificationStep) == 0)
       
   346 				testStep = new CRequestDataReceivedNotificationStep(iEsockTest);
       
   347 	else if(aStepName.CompareF (KRequestDataSentNotificationStep) == 0)
       
   348 				testStep = new CRequestDataSentNotificationStep(iEsockTest);
       
   349 
       
   350 #ifdef __1060_TESTCODE__
       
   351 	// Mobility
       
   352 	else if(aStepName.CompareF (KregisterformobilitynotificationStep) == 0)
       
   353 				testStep = new CregisterformobilitynotificationStep(iEsockTest);
       
   354 
       
   355 	else if(aStepName.CompareF (KChangeBearerAvailabilityStep) == 0)
       
   356 				testStep = new CChangeBearerAvailabilityStep(iEsockTest);
       
   357 	else if(aStepName.CompareF (KCSelectRConnectionStep) == 0)
       
   358 				testStep = new CSelectRConnectionStep(iEsockTest);
       
   359 
       
   360 	else if(aStepName.CompareF (KGetAvailabilityAPIStep) == 0)
       
   361 				testStep = new CGetAvailabilityAPIStep(iEsockTest);
       
   362 	else if(aStepName.CompareF (KRegisterForAvailabilityNotificationStep) == 0)
       
   363 				testStep = new CRegisterForAvailabilityNotificationStep(iEsockTest);
       
   364 	else if(aStepName.CompareF (KCheckForAvailabilityStep) == 0)
       
   365 				testStep = new CCheckForAvailabilityStep(iEsockTest);
       
   366 
       
   367 	else if(aStepName.CompareF (KConfirmSocketDataTransferStep) == 0)
       
   368 				testStep = new CConfirmSocketDataTransferStep(iEsockTest);
       
   369 	else if(aStepName.CompareF (KCreateBearerAvailabilitySimulatorStep) == 0)
       
   370 				testStep = new CCreateBearerAvailabilitySimulatorStep(iEsockTest);
       
   371 #endif
       
   372 
       
   373 	// ESock debug control based test steps
       
   374 	NEW_ESOCK_TESTSTEP(AppendMessageInterceptPattern)
       
   375 	NEW_ESOCK_TESTSTEP(EnableMessageInterceptRegister)
       
   376 	NEW_ESOCK_TESTSTEP(DisableMessageInterceptRegister)
       
   377 	NEW_ESOCK_TESTSTEP(ResetMessageInterceptRegister)
       
   378 	NEW_ESOCK_TESTSTEP(QueryMsgInterceptComplete)
       
   379 	// RConnectionServ API
       
   380 	NEW_ESOCK_TESTSTEP(CreateRConnectionServStep)
       
   381 	NEW_ESOCK_TESTSTEP(ConnectRConnectionServStep)
       
   382 	NEW_ESOCK_TESTSTEP(RConnectionServApiExtStep)
       
   383 	NEW_ESOCK_TESTSTEP(CloseRConnectionServStep)
       
   384 	NEW_ESOCK_TESTSTEP(AccessPointStatusQueryStep)
       
   385 	NEW_ESOCK_TESTSTEP(CancelAccessPointStatusQueryStep)
       
   386 	NEW_ESOCK_TESTSTEP(RequestAccessPointNotificationStep)
       
   387 	NEW_ESOCK_TESTSTEP(ReceiveAccessPointNotificationStep)
       
   388 	NEW_ESOCK_TESTSTEP(CancelAccessPointNotificationStep)
       
   389 	NEW_ESOCK_TESTSTEP(RequestMBMSNtfnStep)
       
   390 	NEW_ESOCK_TESTSTEP(ReceiveMBMSNtfnStep)
       
   391 	NEW_ESOCK_TESTSTEP(CancelMBMSNtfnStep)
       
   392 	// Availability control
       
   393 	NEW_ESOCK_TESTSTEP(SetAccessPointAvailabilityStep)
       
   394 	NEW_ESOCK_TESTSTEP(SetPppAccessPointAvailabilityStep)
       
   395 	NEW_ESOCK_TESTSTEP(SetWifiAccessPointAvailabilityStep)
       
   396 
       
   397 	NEW_ESOCK_TESTSTEP(EnumerateConnectionsStep)
       
   398 	// Commsdat helper tests
       
   399 	NEW_ESOCK_TESTSTEP(DeleteCommsdatRecordStep)
       
   400 	NEW_ESOCK_TESTSTEP(CreateCommsdatRecordStep)
       
   401 	NEW_ESOCK_TESTSTEP(UpdateCommsdatRecordStep)
       
   402 
       
   403 	NEW_ESOCK_TESTSTEP(InitialiseDummyProtocolParameterSetStep)
       
   404 
       
   405 	// Sockets
       
   406 	NEW_ESOCK_TESTSTEP(SendReceiveIoctlStep)
       
   407 	NEW_ESOCK_TESTSTEP(SocketProtocolDescriptionStep)
       
   408 	NEW_ESOCK_TESTSTEP(SocketGetOptionStep)
       
   409 
       
   410 	// Socket server
       
   411 	NEW_ESOCK_TESTSTEP(SocketServerNumProtocolsStep)
       
   412 	NEW_ESOCK_TESTSTEP(SocketServerFindProtocolStep)
       
   413 	NEW_ESOCK_TESTSTEP(SocketServerGetProtocolInfoStep)
       
   414 	NEW_ESOCK_TESTSTEP(SocketServerStartProtocolStep)
       
   415 	NEW_ESOCK_TESTSTEP(SocketServerStopProtocolStep)
       
   416 
       
   417 	// General
       
   418 	NEW_ESOCK_TESTSTEP(CompareIntegerValuesStep)
       
   419 
       
   420 	NEW_ESOCK_TESTSTEP(RegisterProgressNotificationStep)
       
   421 	NEW_ESOCK_TESTSTEP(CheckProgressNotificationStep)
       
   422 	NEW_ESOCK_TESTSTEP(CheckNegativeProgressNotificationStep)
       
   423 	return testStep;
       
   424 	}
       
   425 
       
   426 /**
       
   427 Returns server name based on the EKA version
       
   428 @internalTechnology
       
   429 @test
       
   430 @return		Descriptor containing the servername
       
   431 */
       
   432 const TPtrC CTe_esockteststepsSuite::ServerName() const
       
   433 	{
       
   434 	// On EKA2, test server runs in its own process.
       
   435 	// So we arrive at the server name using the exe from which it is loaded.
       
   436 	// This is useful when doing cap tests, as we create duplicate exe's using setcap then.
       
   437 	TParsePtrC serverName(RProcess().FileName());
       
   438 	return serverName.Name();
       
   439 	}
       
   440