Update contrib.
1 // Copyright (c) 2007-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 __TBITBLTBASE_H__
23 #define __TBITBLTBASE_H__
25 #include "tdirectgdi_test_step_base.h"
29 static const TSize KTarget1Size(200, 200);
30 static const TSize KTarget2Size(512, 512); // large target
32 static const TSize KBitmap1Size(20, 20);
33 static const TSize KBitmap2Size(200, 200);
36 Type of BitBlt family function
47 Base class for BitBlt() family tests.
49 class CTBitBltBase : public CTDirectGdiStepBase
57 void TestPositioningBaseL(const TDesC& aTestName, TBitBltFuncType aFunc);
58 void TestInvalidParametersBaseL(const TDesC& /*aTestName*/, TBitBltFuncType aFunc);
59 void TestSourceBitmapCloningBaseL(const TDesC& aTestName, TBitBltFuncType aFunc);
62 void WriteTargetOutput(TPtrC aTestCaseName);
63 virtual void CreateBitmapsL(TUidPixelFormat aPixelFormat);
64 virtual void DeleteBitmaps();
67 virtual TVerdict doTestStepPreambleL();
68 virtual TVerdict doTestStepL();
69 virtual TVerdict doTestStepPostambleL();
74 virtual void TestBasicL() = 0;
78 CFbsBitmap* iNotInitialisedBitmap;
79 CFbsBitmap* iZeroSizeBitmap;
80 CFbsBitmap* iCompressedBitmap;
81 CFbsBitmap* iCheckedBoardBitmap1;
82 CFbsBitmap* iCheckedBoardBitmap2;
83 CFbsBitmap* iConcentricRectsBitmap1;
84 CFbsBitmap* iConcentricRectsBitmap2;
85 CFbsBitmap* iCheckedBoardWithAlphaBitmap;
86 CFbsBitmap* iCompressedBitmapSmall;