lbstest/lbstestproduct/common/src/ctlbsactiveyield.cpp
changeset 57 3267d9ea3e98
parent 0 9cfd9a3ee49c
equal deleted inserted replaced
48:81c9bee26a45 57:3267d9ea3e98
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 #include <e32std.h>
    23 #include <e32std.h>
    24 
    24 
    25 #include <test/testexecutestepbase.h>
    25 #include <test/testexecutestepbase.h>
    26 
    26 
    27 
       
    28 void CheckForObserverEventTestsL(TTimeIntervalMicroSeconds32 aTimeout, CTestStep& aStep)
    27 void CheckForObserverEventTestsL(TTimeIntervalMicroSeconds32 aTimeout, CTestStep& aStep)
    29 	{
    28 	{
    30 	class CTimeout : public CTimer
    29 	class CTimeout : public CTimer
    31 		{
    30 		{
    32 		CTestStep& iStep;
    31 		CTestStep& iStep;
    33 
    32 
    34 		void RunL()  
    33 		void RunL()  
    35 	    	{
    34 	    	{
    36 	    	iStep.SetTestStepError(KErrTimedOut);
    35 			iStep.SetTestStepError(KErrTimedOut);
    37 	    	CActiveScheduler::Stop();
    36 	    	CActiveScheduler::Stop();
    38 			}
    37 			}
    39 
    38 
    40 		CTimeout(CTestStep& aTestStep) : CTimer(EPriorityLow), iStep(aTestStep) { ; }
    39 		CTimeout(CTestStep& aTestStep) : CTimer(EPriorityLow), iStep(aTestStep) { ; }
    41 		
    40