Update contrib.
1 // Copyright (c) 2009-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef TFONTTABLEANDGLYPH_H_
17 #define TFONTTABLEANDGLYPH_H_
20 #include "test/TGraphicsHarness.h"
22 class CTFontAndGlyphStep : public CTGraphicsStep
28 virtual CTGraphicsBase* CreateTestL();
31 _LIT(KTFontTableAndGlyphStep,"TFontTableAndGlyphOutline");
35 class CFbsTestForFont: public CFbsFont
38 CFbsTestForFont():CFbsFont() { }
39 void Duplicate(TInt aFontHandle) {CFbsFont::Duplicate(aFontHandle);}
40 void SetHandle(TInt aHandle) { iHandle = aHandle; }
41 TInt ClientHandle(){return iHandle;};
42 ~CFbsTestForFont() { iHandle = 0; }
48 class CTFontAndGlyph : public CTGraphicsBase
52 CTFontAndGlyph(CTestStep* aStep);
57 virtual void RunTestCaseL(TInt aCurTestCase);
63 void GetHintedGlyphById();
64 void GetUnHintedGlyphById();
65 void GetHintedGlyphByWrongId();
66 void GetGlyphWithNoMem();
68 void GetFontTableByWrongTag();
69 void GetFontTableWithNoMem();
71 void TestFbsFontHandleIsZeroForFont();
72 void TestFbsFontHandleIsZeroForGlyph();
73 void GlyphOutlineIteratorPanics();
74 void SMPAndWDPSafeTest();
76 void OutlinePanics(TInt (*aThreadFun)(TAny*));
77 void OutlineLengthPanics(TInt (*aThreadFun)(TAny*));
82 CFbsBitmapDevice* iDevice;
83 CFbsBitmapDevice* iDevice2;
86 CFontStore* iFontStore;
87 TFontSpec iFontSpec, iFontSpec2;
93 #endif /* TFONTTABLEANDGLYPH_H_ */