sl@0: // Copyright (c) 2008-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: #ifndef TEXTENDEDBITMAPNEGATIVE_H sl@0: #define TEXTENDEDBITMAPNEGATIVE_H sl@0: sl@0: #include "tfbsbase.h" sl@0: sl@0: /** Class containing negative tests for extended bitmaps. Negative tests include sl@0: passing bad parameters to methods used with extended bitmaps, and creating extended sl@0: bitmaps with no FbsSession. sl@0: */ sl@0: class CTExtendedBitmapNegative : public CTFbsBase sl@0: { sl@0: public: sl@0: CTExtendedBitmapNegative(CTestStep* aStep); sl@0: ~CTExtendedBitmapNegative(); sl@0: sl@0: protected: sl@0: // From CTFbsBase sl@0: virtual void RunFbsTestL(TInt aCurTestCase); sl@0: sl@0: private: sl@0: static TInt CreateWithoutFbsSessionStart(TAny* aInfo); sl@0: sl@0: // CreateExtendedBitmap() tests sl@0: void CreateWithoutFbsSessionL(); sl@0: void CreateBadPixelSizeL(); sl@0: void CreateBadDisplayModeL(); sl@0: void CreateRestrictedUidL(); sl@0: void CreateNullDataL(); sl@0: void CreateBadDataSizeL(); sl@0: sl@0: // ExtendedBitmapType() tests sl@0: void TypeUninitialisedBitmapL(); sl@0: void TypeStandardBitmapL(); sl@0: void TypeHardwareBitmapL(); sl@0: sl@0: // DataSize() tests sl@0: void SizeUninitialisedBitmapL(); sl@0: }; sl@0: sl@0: sl@0: class CTExtendedBitmapNegativeStep : public CTGraphicsStep sl@0: { sl@0: public: sl@0: CTExtendedBitmapNegativeStep(); sl@0: sl@0: protected: sl@0: //from CTGraphicsStep sl@0: virtual CTGraphicsBase* CreateTestL(); sl@0: }; sl@0: sl@0: _LIT(KTExtendedBitmapNegativeStep,"TExtendedBitmapNegative"); sl@0: sl@0: #endif // TEXTENDEDBITMAPNEGATIVE_H