Update contrib.
2 * Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * T_LinkedFontUpdateTests.cpp
19 #ifndef T_LINKEDFONTUPDATETESTS_H_
20 #define T_LINKEDFONTUPDATETESTS_H_
22 #include "TGraphicsHarness.h"
23 //Global variables for Linked Font Names
24 _LIT(KAddElementFontName, "UpdateAddFont");
25 _LIT(KRemoveElementFontName, "UpdateRemoveFont");
26 _LIT(KUpdateFontName, "UpdateFont");
29 _LIT(KElement1Name, "DejaVu Sans Mono");
30 _LIT(KElement2Name, "DejaVu Sans Condensed");
31 _LIT(KElement3Name, "DejaVu Serif Condensed");
33 //Class for first linked fonts test step
34 class CTLinkedFontsUpdateStage1Step : public CTGraphicsStep
37 CTLinkedFontsUpdateStage1Step();
39 // From CTGraphicsStep
40 virtual CTGraphicsBase* CreateTestL();
43 _LIT(KTLinkedFontsUpdateStage1Step, "TLinkedFontsUpdateStage1");
45 class CTLinkedFontsUpdateStage1 : public CTGraphicsBase
48 CTLinkedFontsUpdateStage1(CTestStep* aStep);
49 ~CTLinkedFontsUpdateStage1();
50 static void TestPanic(TInt aPanic);
52 // From CTGraphicsStep
53 virtual void RunTestCaseL(TInt aCurTestCase);
57 void RegisterThenUpdateTestL();
58 void NegativeUpdateTestsL();
61 CLinkedTypefaceSpecification* CreateAddTypefaceLC(TBool aUpdate);
62 CLinkedTypefaceSpecification* CreateRemoveTypefaceLC(TBool aUpdate);
63 CLinkedTypefaceSpecification* CreateUpdateTypefaceLC(TBool aUpdate);
64 CLinkedTypefaceSpecification* CreateNegativeTestTypefaceLC(const TDesC& aName);
65 void AddGroups(CLinkedTypefaceSpecification* aSpec);
69 CFbsTypefaceStore* iTfStore;
70 TBool iFontLinkingSupported;
74 //Class for second linked fonts test step
75 class CTLinkedFontsUpdateStage2Step : public CTGraphicsStep
78 CTLinkedFontsUpdateStage2Step();
80 // From CTGraphicsStep
81 virtual CTGraphicsBase* CreateTestL();
84 _LIT(KTLinkedFontsUpdateStage2Step, "TLinkedFontsUpdateStage2");
86 class CTLinkedFontsUpdateStage2 : public CTGraphicsBase
89 CTLinkedFontsUpdateStage2(CTestStep* aStep);
90 ~CTLinkedFontsUpdateStage2();
91 static void TestPanic(TInt aPanic);
93 // From CTGraphicsStep
94 virtual void RunTestCaseL(TInt aCurTestCase);
98 void ValidateLinkedFontsL();
101 CFbsTypefaceStore* iTfStore;
104 #endif /*T_LINKEDFONTUPDATETESTS_H_*/