os/textandloc/textrendering/textformatting/test/tbandformat/inc/bandtestfileoutput.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/textrendering/textformatting/test/tbandformat/inc/bandtestfileoutput.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,63 @@
1.4 +/*
1.5 +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +* FILEOUTPUT.H
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +#ifndef __FILEOUTPUT_H
1.24 +#define __FILEOUTPUT_H
1.25 +
1.26 +#include <e32std.h>
1.27 +#include <f32file.h>
1.28 +#include <badesca.h>
1.29 +/**
1.30 +@file
1.31 +@internalComponent
1.32 +*/
1.33 +class CTextView;
1.34 +/**
1.35 +Class used by CBandValidator to log results of tests
1.36 +Writes information about document being tested to a file.
1.37 +If any test fails detailed output will be written to a file
1.38 +detailing the contents of the views.
1.39 +*/
1.40 +class CFileOutput : public CBase
1.41 + {
1.42 +public:
1.43 + IMPORT_C static CFileOutput* NewL();
1.44 + // log document attributes
1.45 + virtual void WriteDocumentAttributesL(const CTextView& aView);
1.46 + // log document positions
1.47 + virtual void WriteDocumentPositionsL(const RArray<TInt>& aPositions);
1.48 + // log the test view visible lines
1.49 + virtual void WriteVisibleTestLinesL(const CDesCArray& aTestLines);
1.50 + // log the reference view visible lines
1.51 + virtual void WriteVisibleReferenceLinesL(const CDesCArray& aTestLines);
1.52 + // log the details of operation being performed
1.53 + virtual void WriteOperationDetails(const TDesC& aDesc);
1.54 + ~CFileOutput();
1.55 +protected:
1.56 + CFileOutput();
1.57 +private:
1.58 + virtual void ConstructL();
1.59 + void WriteLinesL(const CDesCArray& aLines, RFile& aFile);
1.60 + RFs iFs;
1.61 + RFile iFile;
1.62 + RFile iTestErrorFile;
1.63 + RFile iReferenceErrorFile;
1.64 + };
1.65 +
1.66 +#endif