os/graphics/fbs/fontandbitmapserver/tfbs/tglyphatlas.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2009-2010 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 #ifndef TGLYPHATLAS_H
    17 #define TGLYPHATLAS_H
    18 
    19 #include "test/TGraphicsHarness.h"
    20 
    21 /**
    22 Test class for the glyph data extensions RFbsGlyphDataIterator and 
    23 RFbsGlyphMetricsArray. Positive and negative tests
    24 */
    25 class CTGlyphAtlas : public CTGraphicsBase
    26 	{
    27 public:
    28 	CTGlyphAtlas(CTestStep* aStep);
    29 	~CTGlyphAtlas();
    30 protected:
    31 //from 	CTGraphicsBase
    32 	virtual void RunTestCaseL(TInt aCurTestCase);
    33 	void ConstructL();
    34 	
    35 private:
    36 	// Test Cases
    37 	void TestFullCache();
    38 	void TestFontReleased();
    39 	
    40 private:
    41 	RFbsSession* iFbs;
    42 	CFbsTypefaceStore* iTs;
    43 	TUint* iGlyphCodesLatin;
    44 	CFbsFont* iFont;
    45 	CFbsFont* iFont2;
    46 	};
    47 
    48 
    49 class CTGlyphAtlasStep : public CTGraphicsStep
    50 	{
    51 public:
    52 	CTGlyphAtlasStep();
    53 protected:	
    54 	//from CTGraphicsStep
    55 	virtual CTGraphicsBase* CreateTestL();
    56 	};
    57 
    58 _LIT(KTGlyphAtlasStep,"TGlyphAtlas");
    59 
    60 #endif /* TGLYPHATLAS_H */