diff -r 000000000000 -r bde4ae8d615e os/textandloc/textrendering/textformatting/test/tbandformat/inc/bandtestfileoutput.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/textandloc/textrendering/textformatting/test/tbandformat/inc/bandtestfileoutput.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2006-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: +* FILEOUTPUT.H +* +*/ + + +#ifndef __FILEOUTPUT_H +#define __FILEOUTPUT_H + +#include +#include +#include +/** +@file +@internalComponent +*/ +class CTextView; +/** +Class used by CBandValidator to log results of tests +Writes information about document being tested to a file. +If any test fails detailed output will be written to a file +detailing the contents of the views. +*/ +class CFileOutput : public CBase + { +public: + IMPORT_C static CFileOutput* NewL(); + // log document attributes + virtual void WriteDocumentAttributesL(const CTextView& aView); + // log document positions + virtual void WriteDocumentPositionsL(const RArray& aPositions); + // log the test view visible lines + virtual void WriteVisibleTestLinesL(const CDesCArray& aTestLines); + // log the reference view visible lines + virtual void WriteVisibleReferenceLinesL(const CDesCArray& aTestLines); + // log the details of operation being performed + virtual void WriteOperationDetails(const TDesC& aDesc); + ~CFileOutput(); +protected: + CFileOutput(); +private: + virtual void ConstructL(); + void WriteLinesL(const CDesCArray& aLines, RFile& aFile); + RFs iFs; + RFile iFile; + RFile iTestErrorFile; + RFile iReferenceErrorFile; + }; + +#endif