os/textandloc/fontservices/fontstore/tfs/T_LinkedFonts2.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/fontstore/tfs/T_LinkedFonts2.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,73 @@
     1.4 +/*
     1.5 +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef T_LINKEDFONTS2_H_
    1.23 +#define T_LINKEDFONTS2_H_
    1.24 +
    1.25 +#include "TGraphicsHarness.h"
    1.26 +
    1.27 +class COpenFontLinkedTypefaceElementSpec;
    1.28 +class CLinkedTypefaceElementSpec;
    1.29 +class CLinkedTypefaceGroup;
    1.30 +
    1.31 +class CTLinkedFonts2Step : public CTGraphicsStep
    1.32 +	{
    1.33 +public:
    1.34 +	CTLinkedFonts2Step();
    1.35 +protected:
    1.36 +	// From CTGraphicsStep
    1.37 +	virtual CTGraphicsBase* CreateTestL();
    1.38 +	};
    1.39 +
    1.40 +_LIT(KTLinkedFonts2Step, "TLinkedFonts2");
    1.41 +
    1.42 +class CTLinkedFonts2 : public CTGraphicsBase
    1.43 +	{
    1.44 +public:
    1.45 +	CTLinkedFonts2(CTestStep* aStep);
    1.46 +	~CTLinkedFonts2();
    1.47 +	static void TestPanic(TInt aPanic);
    1.48 +protected:
    1.49 +// From CTGraphicsStep
    1.50 +	virtual void RunTestCaseL(TInt aCurTestCase);
    1.51 +protected:
    1.52 +	//Test Functions
    1.53 +	void InitializeTestHarnessL();
    1.54 +	void CloseTestHarnessL();
    1.55 +	void TestLinkedClientGettersAndSettersL();
    1.56 +	void TestLinkedClientAddAndRemoveL();
    1.57 +	void TestOpenClientGettersAndSettersL();
    1.58 +	void TestOpenClientAddAndRemoveL();
    1.59 +	void TestLinkedRegistrationAndFetchL();
    1.60 +	TBool ComplexFontAvailable();
    1.61 +	void TestComplexLinkedFontsBasicL();
    1.62 +	void TestBitmapFontsL();
    1.63 +	void TestTOpenFontMetrics();
    1.64 +	void StartServer();
    1.65 +	void TestFontNameUsage();
    1.66 +	
    1.67 +	TBool CompareElementSpecs(CLinkedTypefaceElementSpec* aSpec1, CLinkedTypefaceElementSpec* aSpec2);
    1.68 +	TBool CompareElementSpecs(COpenFontLinkedTypefaceElementSpec* aSpec1, COpenFontLinkedTypefaceElementSpec* aSpec2);
    1.69 +	TBool CompareGroups(CLinkedTypefaceGroup* aGroup1, CLinkedTypefaceGroup* aGroup2);
    1.70 +protected:
    1.71 +	RFbsSession* iFbs;
    1.72 +	CFbsScreenDevice* iDev;
    1.73 +	CFbsBitGc* iGc;
    1.74 +	};
    1.75 +
    1.76 +#endif /*T_LINKEDFONTS2_H_*/