testexecfw/symbianunittestfw/sutfw/sutfwcore/sutfwoutput/inc/symbianunittestoutputashtml.h
author Johnson Ma <johnson.ma@nokia.com>
Thu, 13 May 2010 17:42:48 +0800
changeset 3 a5f55a5789f3
parent 0 3e07fef1e154
permissions -rw-r--r--
Defect Fix: TeamTrack DEF145107

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  
*
*/
#ifndef SYMBIANUNITTESTOUTPUTASHTML_H
#define SYMBIANUNITTESTOUTPUTASHTML_H

// INCLUDES
#include "symbianunittestoutputformatter.h"

// FORWARD DECLARATIONS
class CSymbianUnitTestFailure;

// CONTANTS
_LIT( KHtmlOutput, "html" );

// CLASS DECLARATION
class CSymbianUnitTestOutputAsHtml : public CSymbianUnitTestOutputFormatter
    {
    public: // Constructors and destructor
    
        static CSymbianUnitTestOutputAsHtml* NewL( const TDesC& aFileName );
        ~CSymbianUnitTestOutputAsHtml();
    
    protected: // From CSymbianUnitTestOutputFormatter
        
        const TDesC& FileExtension() const;      
        void PrintHeaderL( CSymbianUnitTestResult& aResult );
        void PrintPassedTestsL( CSymbianUnitTestResult& aResult );
        void PrintFailedTestsL( CSymbianUnitTestResult& aResult );
        void PrintFooterL();
        
    private: // Constructors
        
        CSymbianUnitTestOutputAsHtml();
        
    private: // New functions
    
        void PrintTableRowL( const TDesC8& aTitle, const TDesC8& aValue );
    };

#endif // SYMBIANUNITTESTOUTPUTASHTML_H