First public contribution.
1 // Copyright (c) 2008-2009 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.
19 @internalComponent - Internal Symbian test code
22 #ifndef TEXTENDEDBITMAP_H
23 #define TEXTENDEDBITMAP_H
25 #include <test/tgraphicsharness.h>
26 #include <test/testharnesscallback.h>
27 #include <test/textendedbitmapgc.h>
31 /** Defines whether the tests will write their results to a screen device or
32 to a bitmap device (if not defined). Comment out to write to a bitmap device.
34 #define USE_SCREEN_DEVICE
36 /** Test class for testing the operation of extended bitmaps when used with BitGdi methods.
37 This class creates a graphics context that is passed to a separate DLL that draws the tests
38 to the passed graphics context (textendedbitmapgc.dll). textendedbitmapgc.dll is built as a
39 test component by FbServ.
41 class CTExtendedBitmap : public CTGraphicsBase, public MTestHarnessCallBack
44 CTExtendedBitmap(CTestStep* aStep);
47 //from MTestHarnessCallBack
48 virtual CTestExecuteLogger& Logger();
49 virtual void TestTrue(TBool aCondition);
50 virtual void TestComplete();
54 virtual void ConstructL();
55 //from MTestCases (via CTGraphicsBase)
56 virtual void RunTestCaseL(TInt aCurTestCase);
59 #ifndef USE_SCREEN_DEVICE
64 CTExtendedBitmapGc* iExtendedBitmapGcTests;
67 class CTExtendedBitmapStep : public CTGraphicsStep
70 CTExtendedBitmapStep();
74 virtual CTGraphicsBase* CreateTestL();
77 _LIT(KTExtendedBitmapStep,"TExtendedBitmap");
81 class CTExtendedBitmapNegative : public CTGraphicsBase
84 CTExtendedBitmapNegative(CTestStep* aStep);
87 //from MTestCases (via CTGraphicsBase)
88 virtual void RunTestCaseL(TInt aCurTestCase);
92 void TestCFbsBitmapDeviceNewLLeavesL();
95 class CTExtendedBitmapNegativeStep : public CTGraphicsStep
98 CTExtendedBitmapNegativeStep();
101 //from CTGraphicsStep
102 virtual CTGraphicsBase* CreateTestL();
105 _LIT(KTExtendedBitmapNegativeStep,"TExtendedBitmapNegative");
107 #endif // TEXTENDEDBITMAP_H