CTestThreadContainerRunner Class Reference

class CTestThreadContainerRunner : public CActive

Inherits from

Constructor & Destructor Documentation

CTestThreadContainerRunner()

CTestThreadContainerRunner ( ) [private]

C++ constructor.

~CTestThreadContainerRunner()

~CTestThreadContainerRunner ( )

C++ destructor.

Member Functions Documentation

CheckSignalFromSuspend()

void CheckSignalFromSuspend ( )

Checks if operation change signal was signaled from suspend state.

CompleteRequest()

void CompleteRequest ( ) [private]

Complets current operation request, what causes execution of RunL method in main thread of UITestServerStarter.

ConstructL(TThreadId, CActiveScheduler *)

void ConstructL ( TThreadId aMainThreadId,
CActiveScheduler * aMainThreadActiveScheduler
) [private]

Performs second phase of two-phased constructor.

Parameters

TThreadId aMainThreadId
CActiveScheduler * aMainThreadActiveScheduler

DoCancel()

void DoCancel ( ) [virtual]

DoCancel derived from CActive handles the Cancel.

ExceptionHandler(TExcType)

void ExceptionHandler ( TExcType aType ) [private, static]

Test thread exception handler.

Parameters

TExcType aType

IsReusable()

TBool IsReusable ( )

Checks if test thread is reusable.

NewL(TThreadId, CActiveScheduler *)

IMPORT_C CTestThreadContainerRunner * NewL ( TThreadId aMainThreadId,
CActiveScheduler * aMainThreadActiveScheduler
) [static]

Performs first phase of two-phased constructor.

Parameters

TThreadId aMainThreadId
CActiveScheduler * aMainThreadActiveScheduler

Panic(TInt)

void Panic ( TInt aReason ) [private]

Raises panic.

Parameters

TInt aReason

RunL()

void RunL ( ) [virtual]

RunL derived from CActive handles the completed requests.

RunOneIteration()

void RunOneIteration ( )

Runs one iteration of emulated CTestThreadContainer::ExecutionThread while loop.

Setup(CTestModuleContainer *)

void Setup ( CTestModuleContainer * aTestModuleContainer )

Performs TestThreadContainer setup.

Parameters

CTestModuleContainer * aTestModuleContainer

TeareDown()

void TeareDown ( )

Performs cleanup of TestThreadContainer.

Member Enumerations Documentation

Enum TOperationType

Enumerators

ENone
ESetup
ETearDown
ERunOneIteration

Member Data Documentation

TOperationType iCurrentOperation

TOperationType iCurrentOperation [private]

TBool iInitialized

TBool iInitialized [private]

CActiveScheduler * iMainThreadActiveScheduler

CActiveScheduler * iMainThreadActiveScheduler [private]

TThreadId iMainThreadId

TThreadId iMainThreadId [private]

RLibrary iModule

RLibrary iModule [private]

RSemaphore iOperationOngoing

RSemaphore iOperationOngoing [private]

TInt iReturnCode

TInt iReturnCode [private]

TBool iReusable

TBool iReusable [private]

TBool iSignalFromSuspend

TBool iSignalFromSuspend [private]

CTestModuleContainer * iTestModuleContainer

CTestModuleContainer * iTestModuleContainer [private]

CTestThreadContainer * iTestThreadContainer

CTestThreadContainer * iTestThreadContainer [private]