os/graphics/fbs/fontandbitmapserver/tfbs/TALLOC.H
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2005-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 __TALLOC_H__
    17 #define __TALLOC_H__
    18 
    19 #include <fbs.h>
    20 #include "test/TGraphicsHarness.h"
    21 
    22 class CTAlloc : public CTGraphicsBase
    23 	{
    24 public:
    25 	CTAlloc(CTestStep* aStep);
    26 	~CTAlloc();
    27 
    28 protected:
    29 //from 	CTGraphicsStep
    30 	virtual void RunTestCaseL(TInt aCurTestCase);
    31 	void ConstructL();
    32 private:
    33 	void Session();
    34 	void BitmapsL();
    35 	void BitmapHandlerL();
    36 	void TypefaceStoreL();
    37 	void FontStoreL();
    38 
    39 private:
    40 	RFbsSession* iFbs;
    41 	CFbsTypefaceStore* iStore;
    42 	CFbsBitmap *iBitmap;
    43 	CFbsBitmap *iBitmap2;
    44 	TFileName iTestBitmapName;
    45 	TBool iShutdownFbs;
    46 	};
    47 
    48 
    49 class CTAllocStep : public CTGraphicsStep
    50 	{
    51 public:
    52 	CTAllocStep();
    53 protected:	
    54 	//from CTGraphicsStep
    55 	virtual CTGraphicsBase* CreateTestL();
    56 	};
    57 
    58 _LIT(KTAllocStep,"TAlloc");
    59 _LIT(KDefaultSectionName,"default");
    60 _LIT(KFbsHeapMarkCheckFlag, "FbsHeapMarkCheckFlag");
    61 
    62 #endif