os/textandloc/fontservices/fontstore/tfs/T_FNTMEM.H
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * T_FNTMEM.CPP
    16 *
    17 */
    18 
    19 
    20 #ifndef __T_FNTMEM_H__
    21 #define __T_FNTMEM_H__
    22 
    23 #include <fntstore.h>
    24 #include "TGraphicsHarness.h"
    25 
    26 
    27 class CTFntMem : public CTGraphicsBase
    28 	{
    29 public:
    30 	CTFntMem(CTestStep* aStep);
    31 protected:
    32 //from 	CTGraphicsStep
    33 	virtual void RunTestCaseL(TInt aCurTestCase);
    34 private:
    35 	void TestNewL();
    36 	void TestAddFileL(const TDesC& aFileName);
    37 	void TestAddFileTwiceL(const TDesC& aFileName);
    38 	void TestGetNearestFontToDesignHeightInTwipsL();
    39 	void TestGetNearestOpenFontLeaksL();
    40 	void TestDuplicateBitmapFontFileEntriesL();
    41 private:
    42 	RHeap* iHeap;
    43 	};
    44 
    45 
    46 class CTFntMemStep : public CTGraphicsStep
    47 	{
    48 public:
    49 	CTFntMemStep();
    50 protected:	
    51 	//from CTGraphicsStep
    52 	virtual CTGraphicsBase* CreateTestL();
    53 	};
    54 
    55 _LIT(KTFntMemStep,"TFntMem");
    56 
    57 
    58 
    59 #endif