fbs/fontandbitmapserver/tfbs/tglyphatlas.h
author hgs
Fri, 30 Jul 2010 11:41:40 +0300
changeset 136 62bb7c97884c
parent 121 d72fc2aace31
permissions -rw-r--r--
201030_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
121
d72fc2aace31 201027_1
hgs
parents:
diff changeset
     1
// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
d72fc2aace31 201027_1
hgs
parents:
diff changeset
     2
// All rights reserved.
d72fc2aace31 201027_1
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
d72fc2aace31 201027_1
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
d72fc2aace31 201027_1
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
d72fc2aace31 201027_1
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
d72fc2aace31 201027_1
hgs
parents:
diff changeset
     7
//
d72fc2aace31 201027_1
hgs
parents:
diff changeset
     8
// Initial Contributors:
d72fc2aace31 201027_1
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    10
//
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    11
// Contributors:
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    12
//
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    13
// Description:
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    14
//
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    15
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    16
#ifndef TGLYPHATLAS_H
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    17
#define TGLYPHATLAS_H
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    18
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    19
#include "test/TGraphicsHarness.h"
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    20
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    21
/**
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    22
Test class for the glyph data extensions RFbsGlyphDataIterator and 
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    23
RFbsGlyphMetricsArray. Positive and negative tests
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    24
*/
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    25
class CTGlyphAtlas : public CTGraphicsBase
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    26
	{
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    27
public:
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    28
	CTGlyphAtlas(CTestStep* aStep);
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    29
	~CTGlyphAtlas();
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    30
protected:
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    31
//from 	CTGraphicsBase
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    32
	virtual void RunTestCaseL(TInt aCurTestCase);
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    33
	void ConstructL();
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    34
	
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    35
private:
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    36
	// Test Cases
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    37
	void TestFullCache();
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    38
	void TestFontReleased();
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    39
	
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    40
private:
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    41
	RFbsSession* iFbs;
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    42
	CFbsTypefaceStore* iTs;
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    43
	TUint* iGlyphCodesLatin;
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    44
	CFbsFont* iFont;
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    45
	CFbsFont* iFont2;
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    46
	};
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    47
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    48
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    49
class CTGlyphAtlasStep : public CTGraphicsStep
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    50
	{
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    51
public:
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    52
	CTGlyphAtlasStep();
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    53
protected:	
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    54
	//from CTGraphicsStep
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    55
	virtual CTGraphicsBase* CreateTestL();
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    56
	};
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    57
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    58
_LIT(KTGlyphAtlasStep,"TGlyphAtlas");
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    59
d72fc2aace31 201027_1
hgs
parents:
diff changeset
    60
#endif /* TGLYPHATLAS_H */