sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: @internalComponent - Internal Symbian test code sl@0: */ sl@0: sl@0: #ifndef __TBITBLTMASKEDBASE_H__ sl@0: #define __TBITBLTMASKEDBASE_H__ sl@0: sl@0: #include "tbitbltbase.h" sl@0: sl@0: sl@0: /** sl@0: Mask types sl@0: */ sl@0: enum TMaskType sl@0: { sl@0: EMaskL1, sl@0: EMaskL1Inv, sl@0: EMaskL8, sl@0: EMaskIterationEnd sl@0: }; sl@0: sl@0: /** sl@0: Base class for BitBltMasked() family tests. sl@0: */ sl@0: class CTBitBltMaskedBase : public CTBitBltBase sl@0: { sl@0: public: sl@0: CTBitBltMaskedBase(); sl@0: ~CTBitBltMaskedBase(); sl@0: sl@0: protected: sl@0: // base tests sl@0: void TestPositioningBaseL(const TDesC& aTestName, TBitBltFuncType aFunc); sl@0: void TestInvalidParametersBaseL(const TDesC& /*aTestName*/, TBitBltFuncType aFunc); sl@0: void TestSourceBitmapCloningBaseL(const TDesC& aTestName, TBitBltFuncType aFunc); sl@0: void TestMaskCloningBaseL(const TDesC& aTestName, TBitBltFuncType aFunc); sl@0: sl@0: // helper functions sl@0: TInt WriteTargetOutput(TPtrC aTestCaseName); sl@0: void CreateBitmapsL(TUidPixelFormat aPixelFormat); sl@0: void DeleteBitmaps(); sl@0: sl@0: // iterate mask type sl@0: void BeginMaskIteration(); sl@0: TBool NextMaskIteration(); sl@0: sl@0: protected: sl@0: CFbsBitmap* iNotInitialisedMask; sl@0: CFbsBitmap* iZeroSizeMask; sl@0: CFbsBitmap* iMask1L1; sl@0: CFbsBitmap* iMask2L1; sl@0: CFbsBitmap* iMask1L8; sl@0: CFbsBitmap* iMask2L8; sl@0: CFbsBitmap* iCompressedMaskL8; sl@0: CFbsBitmap* iBlackWhiteBitmap; sl@0: sl@0: TInt iMaskType; sl@0: TUidPixelFormat iMaskPixelFormat; sl@0: TBool iInvertMask; sl@0: CFbsBitmap* iCurrentMask1; sl@0: CFbsBitmap* iCurrentMask2; sl@0: }; sl@0: sl@0: #endif