stif/TestServer/src/TestExecutionThread.cpp
branchRCL_3
changeset 16 8f8df8006c40
parent 10 381827f66490
child 18 3406c99bc375
equal deleted inserted replaced
14:a9c038d69df8 16:8f8df8006c40
  2139 
  2139 
  2140     Status: Proposal
  2140     Status: Proposal
  2141 
  2141 
  2142 -------------------------------------------------------------------------------
  2142 -------------------------------------------------------------------------------
  2143 */
  2143 */
  2144 void CTestThreadContainer::IsServerAlive()
  2144 void CTestThreadContainer::IsServerAlive() const
  2145     {
  2145     {
  2146         
  2146         
  2147     if( iServerThread.ExitType() != EExitPending ) 
  2147     if( iServerThread.ExitType() != EExitPending ) 
  2148         {
  2148         {
  2149         // Server thread has died
  2149         // Server thread has died
  2170 
  2170 
  2171     Status: Proposal
  2171     Status: Proposal
  2172 
  2172 
  2173 -------------------------------------------------------------------------------
  2173 -------------------------------------------------------------------------------
  2174 */
  2174 */
  2175 CTestExecution& CTestThreadContainer::TestExecution()
  2175 CTestExecution& CTestThreadContainer::TestExecution() const
  2176     { 
  2176     { 
  2177     
  2177     
  2178     IsServerAlive();
  2178     IsServerAlive();
  2179     CTestExecution* execution = iModuleContainer->TestExecution();
  2179     CTestExecution* execution = iModuleContainer->TestExecution();
  2180     if( execution == NULL )
  2180     if( execution == NULL )
  2182         Panic( ENullExecution );
  2182         Panic( ENullExecution );
  2183         }
  2183         }
  2184     return *execution;
  2184     return *execution;
  2185     
  2185     
  2186     };
  2186     };
  2187     
  2187 
       
  2188 /*
       
  2189 -------------------------------------------------------------------------------
       
  2190 
       
  2191     Class: CTestThreadContainer
       
  2192 
       
  2193     Method: GetTestCaseArguments
       
  2194 
       
  2195     Description: Get test case arguments
       
  2196 
       
  2197     Parameters: None
       
  2198     
       
  2199     Return Values: test case arguments
       
  2200 
       
  2201     Errors/Exceptions: 
       
  2202 
       
  2203     Status: Proposal
       
  2204 
       
  2205 -------------------------------------------------------------------------------
       
  2206 */
       
  2207 const TDesC& CTestThreadContainer::GetTestCaseArguments() const
       
  2208     {
       
  2209     return TestExecution().GetTestCaseArguments();
       
  2210     }
       
  2211 
       
  2212 
  2188 /*
  2213 /*
  2189 -------------------------------------------------------------------------------
  2214 -------------------------------------------------------------------------------
  2190 
  2215 
  2191     Class: CTestThreadContainer
  2216     Class: CTestThreadContainer
  2192 
  2217