os/textandloc/fontservices/fontstore/tfs/T_LinkedFonts2.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2008-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 *
    16 */
    17 
    18 
    19 #ifndef T_LINKEDFONTS2_H_
    20 #define T_LINKEDFONTS2_H_
    21 
    22 #include "TGraphicsHarness.h"
    23 
    24 class COpenFontLinkedTypefaceElementSpec;
    25 class CLinkedTypefaceElementSpec;
    26 class CLinkedTypefaceGroup;
    27 
    28 class CTLinkedFonts2Step : public CTGraphicsStep
    29 	{
    30 public:
    31 	CTLinkedFonts2Step();
    32 protected:
    33 	// From CTGraphicsStep
    34 	virtual CTGraphicsBase* CreateTestL();
    35 	};
    36 
    37 _LIT(KTLinkedFonts2Step, "TLinkedFonts2");
    38 
    39 class CTLinkedFonts2 : public CTGraphicsBase
    40 	{
    41 public:
    42 	CTLinkedFonts2(CTestStep* aStep);
    43 	~CTLinkedFonts2();
    44 	static void TestPanic(TInt aPanic);
    45 protected:
    46 // From CTGraphicsStep
    47 	virtual void RunTestCaseL(TInt aCurTestCase);
    48 protected:
    49 	//Test Functions
    50 	void InitializeTestHarnessL();
    51 	void CloseTestHarnessL();
    52 	void TestLinkedClientGettersAndSettersL();
    53 	void TestLinkedClientAddAndRemoveL();
    54 	void TestOpenClientGettersAndSettersL();
    55 	void TestOpenClientAddAndRemoveL();
    56 	void TestLinkedRegistrationAndFetchL();
    57 	TBool ComplexFontAvailable();
    58 	void TestComplexLinkedFontsBasicL();
    59 	void TestBitmapFontsL();
    60 	void TestTOpenFontMetrics();
    61 	void StartServer();
    62 	void TestFontNameUsage();
    63 	
    64 	TBool CompareElementSpecs(CLinkedTypefaceElementSpec* aSpec1, CLinkedTypefaceElementSpec* aSpec2);
    65 	TBool CompareElementSpecs(COpenFontLinkedTypefaceElementSpec* aSpec1, COpenFontLinkedTypefaceElementSpec* aSpec2);
    66 	TBool CompareGroups(CLinkedTypefaceGroup* aGroup1, CLinkedTypefaceGroup* aGroup2);
    67 protected:
    68 	RFbsSession* iFbs;
    69 	CFbsScreenDevice* iDev;
    70 	CFbsBitGc* iGc;
    71 	};
    72 
    73 #endif /*T_LINKEDFONTS2_H_*/