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()

voidCheckSignalFromSuspend()

Checks if operation change signal was signaled from suspend state.

CompleteRequest()

voidCompleteRequest()[private]

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

ConstructL(TThreadId, CActiveScheduler *)

voidConstructL(TThreadIdaMainThreadId,
CActiveScheduler *aMainThreadActiveScheduler
)[private]

Performs second phase of two-phased constructor.

Parameters

TThreadId aMainThreadId
CActiveScheduler * aMainThreadActiveScheduler

DoCancel()

voidDoCancel()[virtual]

DoCancel derived from CActive handles the Cancel.

ExceptionHandler(TExcType)

voidExceptionHandler(TExcTypeaType)[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(TThreadIdaMainThreadId,
CActiveScheduler *aMainThreadActiveScheduler
)[static]

Performs first phase of two-phased constructor.

Parameters

TThreadId aMainThreadId
CActiveScheduler * aMainThreadActiveScheduler

Panic(TInt)

voidPanic(TIntaReason)[private]

Raises panic.

Parameters

TInt aReason

RunL()

voidRunL()[virtual]

RunL derived from CActive handles the completed requests.

RunOneIteration()

voidRunOneIteration()

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

Setup(CTestModuleContainer *)

voidSetup(CTestModuleContainer *aTestModuleContainer)

Performs TestThreadContainer setup.

Parameters

CTestModuleContainer * aTestModuleContainer

TeareDown()

voidTeareDown()

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]