stif/TestEngine/src/TestReport.cpp
branchRCL_3
changeset 14 381827f66490
parent 0 a03f92240627
child 18 d27dfa8884ad
equal deleted inserted replaced
12:7e287c5c61f0 14:381827f66490
   192 
   192 
   193     Status: Approved
   193     Status: Approved
   194 
   194 
   195 -------------------------------------------------------------------------------
   195 -------------------------------------------------------------------------------
   196 */
   196 */
   197 void CTestReport::ConstructL( TTestReportSettings& aTestReportSettings )
   197 void CTestReport::ConstructL( CTestReportSettings& aTestReportSettings )
   198     {
   198     {
   199     // Create summary for all test cases
   199     // Create summary for all test cases
   200     _LIT( KName, "All test cases" );
   200     _LIT( KName, "All test cases" );
   201     iTotalSummary = new ( ELeave ) TTestSummary( KName() );
   201     iTotalSummary = new ( ELeave ) TTestSummary( KName() );
   202 
   202 
   305 
   305 
   306     Status: Approved
   306     Status: Approved
   307 
   307 
   308 -------------------------------------------------------------------------------
   308 -------------------------------------------------------------------------------
   309 */
   309 */
   310 CTestReport* CTestReport::NewL( TTestReportSettings& aTestReportSettings,
   310 CTestReport* CTestReport::NewL( CTestReportSettings& aTestReportSettings,
   311                                 const TTestReportMode aReportMode )
   311                                 const TTestReportMode aReportMode )
   312     {
   312     {
   313     CTestReport* self = new ( ELeave ) CTestReport( aReportMode );
   313     CTestReport* self = new ( ELeave ) CTestReport( aReportMode );
   314     CleanupStack::PushL( self );
   314     CleanupStack::PushL( self );
   315     self->ConstructL( aTestReportSettings );
   315     self->ConstructL( aTestReportSettings );
   337 
   337 
   338 -------------------------------------------------------------------------------
   338 -------------------------------------------------------------------------------
   339 */
   339 */
   340 CTestReport::~CTestReport()
   340 CTestReport::~CTestReport()
   341     {
   341     {
       
   342     iTestModulesVersionsInfo.ResetAndDestroy();
       
   343     iTestModulesVersionsInfo.Close();
       
   344         
   342     // Reset and destroy arrays
   345     // Reset and destroy arrays
   343     iTestSummaries.ResetAndDestroy();
   346     iTestSummaries.ResetAndDestroy();
   344     delete iTotalSummary;
   347     delete iTotalSummary;
   345     if( iOutput != CStifLogger::ERDebug )
   348     if( iOutput != CStifLogger::ERDebug )
   346         {
   349         {