testexecfw/symbianunittestfw/sutfw/sutfwcore/sutfwoutput/inc/symbianunittestoutputasxml.h
changeset 0 3e07fef1e154
equal deleted inserted replaced
-1:000000000000 0:3e07fef1e154
       
     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 
       
    18 #ifndef SYMBIANUNITTESTOUTPUTASXML_H
       
    19 #define SYMBIANUNITTESTOUTPUTASXML_H
       
    20 
       
    21 // INCLUDES
       
    22 #include "symbianunittestoutputformatter.h"
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CSymbianUnitTestFailure;
       
    26 
       
    27 // CONTANTS
       
    28 _LIT( KXmlOutput, "xml" );
       
    29 
       
    30 // CLASS DECLARATION
       
    31 class CSymbianUnitTestOutputAsXml : public CSymbianUnitTestOutputFormatter
       
    32     {
       
    33     public: // Constructors and destructor
       
    34     
       
    35         static CSymbianUnitTestOutputAsXml* NewL( const TDesC& aFileName );
       
    36         ~CSymbianUnitTestOutputAsXml();
       
    37     
       
    38     protected: // From CSymbianUnitTestOutputFormatter
       
    39         
       
    40         const TDesC& FileExtension() const;        
       
    41         void PrintHeaderL( CSymbianUnitTestResult& aResult );
       
    42         void PrintPassedTestsL( CSymbianUnitTestResult& aResult );
       
    43         void PrintFailedTestsL( CSymbianUnitTestResult& aResult );
       
    44         void PrintFooterL();
       
    45         
       
    46     private: // Constructors
       
    47         
       
    48         CSymbianUnitTestOutputAsXml();
       
    49     
       
    50     private: // New functions
       
    51     
       
    52         void PrintFailureDetailsL( CSymbianUnitTestFailure& aTestFailure );
       
    53     };
       
    54 
       
    55 #endif // SYMBIANUNITTESTOUTPUTASXML_H