graphicstest/uibench/src/tgdifontrenderingperf.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code 
       
    20 */
       
    21  
       
    22 #ifndef __TGIFONTRENDERINGPERF_H__
       
    23 #define __TGIFONTRENDERINGPERF_H__
       
    24 
       
    25 #include "te_graphicsperformanceSuiteStepBase.h"
       
    26 #include <gdi.h>
       
    27 #include <shapeinfo.h>
       
    28 #include <openfont.h>
       
    29 #include <s32file.h>
       
    30 #include <test/ttmsgraphicsstep.h>
       
    31 #include <graphics/openfontrasterizer.h>
       
    32 #include <graphics/openfontconstants.h>
       
    33 
       
    34 
       
    35 //#include <e32base.h>
       
    36 
       
    37 class CTGDIFontRenderingPerf : public CTe_graphicsperformanceSuiteStepBase
       
    38 	{
       
    39 public:
       
    40 	CTGDIFontRenderingPerf();
       
    41 	~CTGDIFontRenderingPerf();
       
    42 	
       
    43 private:
       
    44 	// From CStepStep
       
    45 	virtual TVerdict doTestStepPreambleL();
       
    46 	virtual TVerdict doTestStepL();
       
    47 	virtual TVerdict doTestStepPostambleL();
       
    48 		
       
    49 	// GCP2 is an abbreviation used for GetCharacterPosition2()
       
    50 	void GCP2IndicPerformanceTestL();
       
    51 	void GCP2ReadingTextPerfL(TPtrC aPtr,const TDesC& aTestCaseName);
       
    52 	void GCP2TypingTextPerfL(TPtrC aPtr,const TDesC& aTestCaseName);
       
    53 
       
    54 	
       
    55 	TVerdict ConfigSectionFailure(const TDesC16 &aErrorText);
       
    56 
       
    57 
       
    58 private:
       
    59 
       
    60 	CFont::TPositionParam 	iParam;
       
    61 
       
    62 	//Values Read in from the ini file.
       
    63 	TBuf<130> 			iTestText1;
       
    64 	TBuf<30>			iTestText; 		//Unicode characters being read in.
       
    65 	};
       
    66 	
       
    67 _LIT(KTGDIFontRenderingPerfName,"tgdifontrenderingperf");
       
    68 
       
    69 #endif