datacommsserver/esockserver/test/TE_EsockTestSteps/inc/Connections.TestSteps.h
branchRCL_3
changeset 21 07656293a99c
parent 15 51722b10598b
child 23 cbb19216b74d
equal deleted inserted replaced
19:35c06c1d4fa6 21:07656293a99c
   171 public:
   171 public:
   172 	CStartRConnectionStep(CCEsockTestBase*& aEsockTest);
   172 	CStartRConnectionStep(CCEsockTestBase*& aEsockTest);
   173 	TVerdict doSingleTestStep();
   173 	TVerdict doSingleTestStep();
   174 	TInt ConfigureFromIni();
   174 	TInt ConfigureFromIni();
   175 
   175 
   176 private:
   176 protected:
   177     TRConnectionParams iParams; //current params (.ini)
   177     TRConnectionParams iParams; //current params (.ini)
   178 	};
   178 	};
   179 
   179 
   180 _LIT(KStartRConnectionStep,"StartRConnectionStep");
   180 _LIT(KStartRConnectionStep,"StartRConnectionStep");
   181 
   181 
       
   182 /**
       
   183 Class implementing StartStopCrazyLoopRConnectionStep
       
   184 The test does a loop, where every iteration:
       
   185 (1) Starts the connection
       
   186 (2) Snoozes for an <interval>
       
   187 (3) Stops the connection injecting a cancel at that stage of the connection start
       
   188 (4) Increases the <interval> a bit so that next time round the cancel is injected at a different stage.
       
   189 
       
   190 Note that since the test is normally executed by a thread of lower priority than ESock_IP, it relies on
       
   191 ESock_IP yielding (otherwise it won't test different phases. 
       
   192 For instance DummyMCPR will artificially yield on TCFServiceProvider::TJoinRequest.
       
   193 NetMCPR will not normally yield as is. 
       
   194 
       
   195 @internalComponent
       
   196 */
       
   197 class CStartStopCrazyLoopRConnectionStep : public CStartRConnectionStep
       
   198     {
       
   199 public:
       
   200     CStartStopCrazyLoopRConnectionStep(CCEsockTestBase*& aEsockTest);
       
   201     TVerdict doSingleTestStep();
       
   202     TInt CalibrateStart();
       
   203     };
       
   204 
       
   205 _LIT(KStartStopCrazyLoopRConnectionStep,"StartStopCrazyLoopRConnectionStep");
   182 
   206 
   183 /**
   207 /**
   184 Class implementing openrconnectionStep
   208 Class implementing openrconnectionStep
   185 
   209 
   186 @internalComponent
   210 @internalComponent
   442     };
   466     };
   443 
   467 
   444 _LIT(KGetParameters_IntStep,"GetParameters_IntStep");
   468 _LIT(KGetParameters_IntStep,"GetParameters_IntStep");
   445 
   469 
   446 
   470 
       
   471 
       
   472 class CWaitStep : public CTe_EsockStepBase
       
   473     {
       
   474 public:
       
   475     CWaitStep(CCEsockTestBase*& aEsockTest);
       
   476     TVerdict doSingleTestStep();
       
   477     TInt ConfigureFromIni();
       
   478 private:
       
   479     TInt iTimeOutMs;
       
   480     };
       
   481 
       
   482 _LIT(KWaitStep,"WaitStep");
       
   483 
       
   484 
   447 #endif // CONNECTIONS_TESTSTEPS_H
   485 #endif // CONNECTIONS_TESTSTEPS_H
   448 
   486 
   449 
   487