CTestThreadContainer Class Reference
| class CTestThreadContainer : public CBase |
Nested Classes and Structures
| Public Member Functions |
|---|
| ~CTestThreadContainer() |
|
TInt
| AddInterferenceThread(RThread) |
| void | CancelEvent(TEventIf &, TRequestStatus *) |
| void | DoNotifyCommand(TCommand, const TDesC8 &) |
|
TInt
| DoNotifyEvent(TEventIf &, TRequestStatus *) |
| void | DoNotifyPrint(const TInt, const TStifInfoName &, const TName &) |
| void | DoRemoteReceive(TStifCommand, TParams, TInt, TRequestStatus &) |
|
TInt
| DoRemoteReceiveCancel() |
|
TInt
| ExecutionThread(TAny *) |
| void | ExitReason(CTestModuleIf::TExitReason &, TInt &) |
| const TDesC & | GetTestCaseArguments() |
| void | GetTestCaseTitleL(TDes &) |
|
CStifLogger * | GetThreadLogger() |
| IMPORT_C CUiEnvProxy * | GetUiEnvProxy() |
|
TInt
| HandleMeasurementProcess(CSTIFTestMeasurement::TStifMeasurementStruct) |
|
CTestThreadContainer * | NewL(CTestModuleContainer *, TThreadId) |
|
TInt
| RemoveInterferenceThread(RThread) |
|
TInt
| SetBehavior(const CTestModuleIf::TTestBehavior, TAny *) |
| void | SetExitReason(const CTestModuleIf::TExitReason, const TInt) |
| void | SetThreadLogger(CStifLogger *) |
|
TInt
| StifMacroError(TInt, const TText8 *, const char *, TInt, TInt, TInt, TInt, TInt, TInt, TInt) |
| void | StifMacroErrorInit() |
| const RPointerArray< TTestCaseInfo > * | TestCases() |
|
TInt
| UIExecutionThread(TAny *) |
| IMPORT_C TBool | UITesting() |
| Private Member Functions |
|---|
| CTestThreadContainer(CTestModuleContainer *) |
| void | ConstructL(TThreadId) |
| void | DeleteTestModule() |
| void | DestroyEventQueue() |
|
TInt
| DuplicateMutexHandles(RThread &) |
|
TInt
| EnumerateInThread() |
| void | ErrorPrint(const TInt, TPtrC) |
| void | ExceptionHandler(TExcType) |
|
TInt
| ExecuteOOMTestCase(TInt, TInt, TInt, TInt &, TTestResult &) |
|
TInt
| ExecuteTestCaseInThread() |
| void | FreeEnumerationDataInThread() |
|
TInt
| InitializeModuleInThread(RLibrary &) |
| void | IsServerAlive() |
| void | LeakChecksForTestCase(TBool, TInt, TInt, TInt, TInt) |
|
CTestModuleContainer & | ModuleContainer() |
| void | Panic(TPanicReason) |
| void | SetEventReq(TEventDef::TEventCmdType, TEventIf &, TRequestStatus *) |
| void | SetMacroInformation(TInt, TInt, const TText8 *, const char *, TDes &, TDes &) |
| void | TestComplete(TInt) |
|
CTestExecution & | TestExecution() |
| Private Member Enumerations |
|---|
| enum | TPanicReason { EUnknownEventCmd, EInvalidCTestThreadContainer, ECreateTrapCleanup, ENullTestThreadContainer, EReInitializingTestModule, ETestModuleNotInitialized, EInvalidTestModuleOperation, ENullRequest, EDuplicateFail, EServerDied, ENullExecution, EThreadHandleOpenFail } |
Constructor & Destructor Documentation
CTestThreadContainer(CTestModuleContainer *)
~CTestThreadContainer()
| ~CTestThreadContainer | ( | ) | [virtual] |
Member Functions Documentation
AddInterferenceThread(RThread)
|
TInt
| AddInterferenceThread | ( | RThread | aSTIFTestInterference | ) | [virtual] |
With this can be store information about test interference thread to client space.
CancelEvent(TEventIf &, TRequestStatus *)
Cancels pending asynchronous event request. This function is called from test execution thread.
ConstructL(TThreadId)
| void | ConstructL | ( | TThreadId | aServerThreadId | ) | [private] |
By default Symbian OS constructor is private.
DeleteTestModule()
| void | DeleteTestModule | ( | ) | [private] |
Delete a test module instance
DestroyEventQueue()
| void | DestroyEventQueue | ( | ) | [private] |
Destroys the event queue. This function is called from test execution thread.
DoNotifyCommand(TCommand, const TDesC8 &)
| void | DoNotifyCommand | ( | TCommand | aCommand, |
| | const TDesC8 & | aParamsPckg |
| | ) | [virtual] |
Completes a command request. This function is called from test execution thread.
DoNotifyEvent(TEventIf &, TRequestStatus *)
Completes a event request. This function is called from test execution thread.
DoNotifyPrint(const TInt, const TStifInfoName &, const TName &)
Completes a print request. This function is called from test execution thread.
DoRemoteReceive(TStifCommand, TParams, TInt, TRequestStatus &)
Enables remote command receiving. This function is called from test execution thread.
DoRemoteReceiveCancel()
|
TInt
| DoRemoteReceiveCancel | ( | ) | [virtual] |
Cancel remote command receiving. This function is called from test execution thread.
DuplicateMutexHandles(RThread &)
EnumerateInThread()
|
TInt
| EnumerateInThread | ( | ) | [private] |
Function that enumerates test cases in execution thread context.
ErrorPrint(const TInt, TPtrC)
| void | ErrorPrint | ( | const TInt | aPriority, |
| | TPtrC | aError |
| | ) | [private] |
ExceptionHandler(TExcType)
| void | ExceptionHandler | ( | TExcType | | ) | [private, static] |
ExecuteOOMTestCase(TInt, TInt, TInt, TInt &, TTestResult &)
Executes test case using OOM simulation
ExecuteTestCaseInThread()
|
TInt
| ExecuteTestCaseInThread | ( | ) | [private] |
Function that executes test case in execution thread context.
ExecutionThread(TAny *)
|
TInt
| ExecutionThread | ( | TAny * | aParams | ) | [static] |
Test case execution thread thread function
ExitReason(CTestModuleIf::TExitReason &, TInt &)
FreeEnumerationDataInThread()
| void | FreeEnumerationDataInThread | ( | ) | [private] |
Function that frees the enumeration data in execution thread context.
GetTestCaseArguments()
| const TDesC & | GetTestCaseArguments | ( | ) | const [virtual] |
Get test case execution arguments
GetTestCaseTitleL(TDes &)
| void | GetTestCaseTitleL | ( | TDes & | aTestCaseTitle | ) | [virtual] |
Obtain title of currently running test case.
GetUiEnvProxy()
| IMPORT_C CUiEnvProxy * | GetUiEnvProxy | ( | ) | |
HandleMeasurementProcess(CSTIFTestMeasurement::TStifMeasurementStruct)
With this can be stored information about test measurement to TestServer space.
InitializeModuleInThread(RLibrary &)
Function that initialise module in execution thread context.
IsServerAlive()
| void | IsServerAlive | ( | ) | const [private] |
Check that server is alive.
LeakChecksForTestCase(TBool, TInt, TInt, TInt, TInt)
| void | LeakChecksForTestCase | ( | TBool | aReturnLeakCheckFail, |
| | TInt | aThreadHandleCountBeforeTest, |
| | TInt | aThreadHandleCountAfterTest, |
| | TInt | aRequestCountBeforeTest, |
| | TInt | aRequestCountAfterTest |
| | ) | [private] |
Leak checks for test case
Parameters
| TBool aReturnLeakCheckFail | |
| TInt aThreadHandleCountBeforeTest | |
| TInt aThreadHandleCountAfterTest | |
| TInt aRequestCountBeforeTest | |
| TInt aRequestCountAfterTest | |
NewL(CTestModuleContainer *, TThreadId)
NewL is first phase of two-phased constructor.
Panic(TPanicReason)
Panicing function for test thread.
RemoveInterferenceThread(RThread)
|
TInt
| RemoveInterferenceThread | ( | RThread | aSTIFTestInterference | ) | [virtual] |
With this can be remove information about test interference thread from client space.
SetBehavior(const CTestModuleIf::TTestBehavior, TAny *)
SetEventReq(TEventDef::TEventCmdType, TEventIf &, TRequestStatus *)
SetExitReason(const CTestModuleIf::TExitReason, const TInt)
SetMacroInformation(TInt, TInt, const TText8 *, const char *, TDes &, TDes &)
| void | SetMacroInformation | ( | TInt | aFileMaxLength, |
| | TInt | aFuntionMaxLength, |
| | const TText8 * | aRecFile, |
| | const char * | aRecFunction, |
| | TDes & | aFile, |
| | TDes & | aFunction |
| | ) | [private] |
Modifies aRecFile and aRecFunction lenghts if nesessarily.
Parameters
| TInt aFileMaxLength | |
| TInt aFuntionMaxLength | |
| const TText8 * aRecFile | |
| const char * aRecFunction | |
| TDes & aFile | |
| TDes & aFunction | |
SetThreadLogger(CStifLogger *)
StifMacroError(TInt, const TText8 *, const char *, TInt, TInt, TInt, TInt, TInt, TInt, TInt)
STIF TF's(TL, T1L, T2L, etc )macro. Saves information for later use.
StifMacroErrorInit()
| void | StifMacroErrorInit | ( | ) | [virtual] |
TestCases()
Returns pointer to test cases
TestComplete(TInt)
| void | TestComplete | ( | TInt | aCompletionCode | ) | [private] |
UIExecutionThread(TAny *)
|
TInt
| UIExecutionThread | ( | TAny * | aParams | ) | [static] |
UI Test case execution thread thread function
UITesting()
| IMPORT_C TBool | UITesting | ( | ) | |
Gets information if testserver supports UI testing.
Member Enumerations Documentation
Enum TPanicReason
Enumerators
| EUnknownEventCmd | |
| EInvalidCTestThreadContainer | |
| ECreateTrapCleanup | |
| ENullTestThreadContainer | |
| EReInitializingTestModule | |
| ETestModuleNotInitialized | |
| EInvalidTestModuleOperation | |
| ENullRequest | |
| EDuplicateFail | |
| EServerDied | |
| ENullExecution | |
| EThreadHandleOpenFail | |
Member Data Documentation
RPointerArray< TTestCaseInfo > * iCases
TUint
iCheckResourceFlags
|
TUint
| iCheckResourceFlags | [private] |
RSemaphore
iErrorPrintSem
RMutex
iInterferenceMutex
|
RMutex
| iInterferenceMutex | [private] |
RSemaphore
iInterferenceSem
RMutex
iMeasurementMutex
|
RMutex
| iMeasurementMutex | [private] |
RSemaphore
iMeasurementSem
CTestModuleContainer * iModuleContainer
TRequestStatus
iReqStatus
TTestMacro
iTestMacroInfo
CTestModuleBase * iTestModule
RMutex
iTestThreadMutex
|
RMutex
| iTestThreadMutex | [private] |
CStifLogger * iThreadLogger
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.