symbianunittestfw/sutfw/sutfwcore/sutfwoutput/inc/symbianunittestoutputastext.h
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 #ifndef SYMBIANUNITTESTOUTPUTASTEXT_H
       
    18 #define SYMBIANUNITTESTOUTPUTASTEXT_H
       
    19 
       
    20 // INCLUDES
       
    21 #include "symbianunittestoutputformatter.h"
       
    22 
       
    23 // FORWARD DECLARATIONS
       
    24 class CSymbianUnitTestFailure;
       
    25 
       
    26 // CONSTANTS
       
    27 _LIT( KTextOutput, "txt" );
       
    28 
       
    29 // CLASS DECLARATION
       
    30 class CSymbianUnitTestOutputAsText : public CSymbianUnitTestOutputFormatter
       
    31     {
       
    32     public: // Constructors and destructor
       
    33     
       
    34         static CSymbianUnitTestOutputAsText* NewL( const TDesC& aFileName );
       
    35         ~CSymbianUnitTestOutputAsText();
       
    36     
       
    37     protected: // From CSymbianUnitTestOutputFormatter
       
    38         
       
    39         const TDesC& FileExtension() const;       
       
    40         void PrintHeaderL( CSymbianUnitTestResult& aResult );
       
    41         void PrintPassedTestsL( CSymbianUnitTestResult& aResult );
       
    42         void PrintFailedTestsL( CSymbianUnitTestResult& aResult );
       
    43         void PrintFooterL();
       
    44         
       
    45     private: // Constructors
       
    46         
       
    47         CSymbianUnitTestOutputAsText();
       
    48     
       
    49     private: // New functions
       
    50         
       
    51         void PrintFailureDetailsL( CSymbianUnitTestFailure& aTestFailure );
       
    52     };
       
    53 
       
    54 #endif // SYMBIANUNITTESTOUTPUTASTEXT_H