os/graphics/graphicsresourceservices/graphicsresourceimplementation/test/inc/tsgimagegeneric.h
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.
16 #ifndef TSGIMAGEGENERIC_H
17 #define TSGIMAGEGENERIC_H
19 #include "tgraphicsresourceteststepbase.h"
22 Class containing all the positive, negative and panic tests for RSgImage.
24 KErrNoMemory testing can optionally be enabled.
26 class CTSgImageGeneric : public CTSgTestStepBase
29 CTSgImageGeneric(TBool aConformanceTests);
33 void TestGetPixelFormatsL();
34 void TestCreateImageUninitializedL();
35 void TestCreateImageL();
36 void TestCreateImageFromExistingImageL();
37 void TestGetImageInfoL();
38 void TestGetImageDrawableIdL();
39 void TestOpenImageL();
40 void TestGetInterfaceL();
41 void TestCreateImageAllPixelFormatsL();
42 void TestCreateImageDataStrideL();
43 void TestOpenImageMultithreadedL();
46 void TestGetPixelFormatsInvalidL();
47 void TestOpenImageInvalidL();
48 void TestCloseImageManyTimesL();
49 void TestCloseImageWithoutOpenL();
50 void TestCreateImageInvalidL();
51 void TestGetInfoImageInvalidL();
52 void TestGetAttributesImageInvalidL();
60 void TestPanicImageGetInterfaceInvalidHandleL();
61 void TestPanicImageGetInterfaceNoDriverL();
62 void TestPanicImageCloseInvalidHandleL();
63 void TestPanicImageCloseNoDriverL();
64 void TestPanicImageIdInvalidHandleL();
65 void TestPanicImageIdNoDriverL();
66 void TestPanicImageCreateInvalidHandleL();
67 void TestPanicImageGetInfoInvalidHandleL();
68 void TestPanicImageGetInfoNoDriverL();
69 void TestPanicImageOpenNoDriverL();
70 void TestPanicImageCreateNoDriver1L();
71 void TestPanicImageCreateNoDriver2L();
72 void TestPanicImageDrawableTypeNoDriverL();
73 void TestPanicImageDrawableTypeInvalidHandleL();
74 void TestPanicImageGetAttributeInvalidHandleL();
75 void TestPanicImageGetAttributeNoDriverL();
76 void TestPanicImageAttributeArrayInvalidIndexL();
77 void TestPanicImageAttributeArrayInvalidIndex2L();
78 void TestPanicDriverCloseOpenResourcesL();
79 void TestCreateOpenCloseImageAndDriverInSecondThreadL();
84 // From CTSgTestStepBase
85 virtual TVerdict doTestStepL();
88 RArray<RSgImage> iTestImages;
91 _LIT(KTSgImageGeneric,"TSgImageGeneric");
93 #endif /*TSGIMAGEGENERIC_H*/