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: #ifndef TSGIMAGEGENERIC_H sl@0: #define TSGIMAGEGENERIC_H sl@0: sl@0: #include "tgraphicsresourceteststepbase.h" sl@0: sl@0: /** sl@0: Class containing all the positive, negative and panic tests for RSgImage. sl@0: sl@0: KErrNoMemory testing can optionally be enabled. sl@0: */ sl@0: class CTSgImageGeneric : public CTSgTestStepBase sl@0: { sl@0: public: sl@0: CTSgImageGeneric(TBool aConformanceTests); sl@0: ~CTSgImageGeneric(); sl@0: sl@0: //positive tests sl@0: void TestGetPixelFormatsL(); sl@0: void TestCreateImageUninitializedL(); sl@0: void TestCreateImageL(); sl@0: void TestCreateImageFromExistingImageL(); sl@0: void TestGetImageInfoL(); sl@0: void TestGetImageDrawableIdL(); sl@0: void TestOpenImageL(); sl@0: void TestGetInterfaceL(); sl@0: void TestCreateImageAllPixelFormatsL(); sl@0: void TestCreateImageDataStrideL(); sl@0: void TestOpenImageMultithreadedL(); sl@0: sl@0: //negative tests sl@0: void TestGetPixelFormatsInvalidL(); sl@0: void TestOpenImageInvalidL(); sl@0: void TestCloseImageManyTimesL(); sl@0: void TestCloseImageWithoutOpenL(); sl@0: void TestCreateImageInvalidL(); sl@0: void TestGetInfoImageInvalidL(); sl@0: void TestGetAttributesImageInvalidL(); sl@0: sl@0: //stress tests sl@0: void TestStress1L(); sl@0: void TestStress2L(); sl@0: sl@0: private: sl@0: //panic tests sl@0: void TestPanicImageGetInterfaceInvalidHandleL(); sl@0: void TestPanicImageGetInterfaceNoDriverL(); sl@0: void TestPanicImageCloseInvalidHandleL(); sl@0: void TestPanicImageCloseNoDriverL(); sl@0: void TestPanicImageIdInvalidHandleL(); sl@0: void TestPanicImageIdNoDriverL(); sl@0: void TestPanicImageCreateInvalidHandleL(); sl@0: void TestPanicImageGetInfoInvalidHandleL(); sl@0: void TestPanicImageGetInfoNoDriverL(); sl@0: void TestPanicImageOpenNoDriverL(); sl@0: void TestPanicImageCreateNoDriver1L(); sl@0: void TestPanicImageCreateNoDriver2L(); sl@0: void TestPanicImageDrawableTypeNoDriverL(); sl@0: void TestPanicImageDrawableTypeInvalidHandleL(); sl@0: void TestPanicImageGetAttributeInvalidHandleL(); sl@0: void TestPanicImageGetAttributeNoDriverL(); sl@0: void TestPanicImageAttributeArrayInvalidIndexL(); sl@0: void TestPanicImageAttributeArrayInvalidIndex2L(); sl@0: void TestPanicDriverCloseOpenResourcesL(); sl@0: void TestCreateOpenCloseImageAndDriverInSecondThreadL(); sl@0: sl@0: // utility methods sl@0: void DestroyImages(); sl@0: sl@0: // From CTSgTestStepBase sl@0: virtual TVerdict doTestStepL(); sl@0: sl@0: private: sl@0: RArray iTestImages; sl@0: }; sl@0: sl@0: _LIT(KTSgImageGeneric,"TSgImageGeneric"); sl@0: sl@0: #endif /*TSGIMAGEGENERIC_H*/