symbianunittestfw/sutfw/sutfwcore/sutfwoutput/inc/symbianunittestoutputformatter.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 SYMBIANUNITTESTOUTPUTFORMATTER_H
       
    18 #define SYMBIANUNITTESTOUTPUTFORMATTER_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32base.h>
       
    22 
       
    23 // FORWARD DECLARATIONS
       
    24 class CSymbianUnitTestResult;
       
    25 class CSymbianUnitTestFileOutputWriter;
       
    26 
       
    27 // CLASS DECLARATION
       
    28 class CSymbianUnitTestOutputFormatter : public CBase 
       
    29     {
       
    30     public: // Destructor        
       
    31 
       
    32         ~CSymbianUnitTestOutputFormatter();
       
    33     
       
    34     public: // New functions
       
    35         
       
    36         void PrintL( CSymbianUnitTestResult& aResult );
       
    37     
       
    38     protected: // Constructors
       
    39     
       
    40         CSymbianUnitTestOutputFormatter();
       
    41         void ConstructL( const TDesC& aFileName );
       
    42 
       
    43     protected: // Pure virtual functions
       
    44     
       
    45         virtual const TDesC& FileExtension() const = 0;
       
    46         virtual void PrintHeaderL( CSymbianUnitTestResult& aResult ) = 0;
       
    47         virtual void PrintPassedTestsL( CSymbianUnitTestResult& aResult ) = 0;
       
    48         virtual void PrintFailedTestsL( CSymbianUnitTestResult& aResult ) = 0;
       
    49         virtual void PrintFooterL() = 0;
       
    50     
       
    51     protected: // Data
       
    52         
       
    53         CSymbianUnitTestFileOutputWriter* iOutputWriter; // Owned
       
    54     };
       
    55 
       
    56 #endif // SYMBIANUNITTESTOUTPUTFORMATTER_H