os/graphics/graphicsresourceservices/graphicsresource/test/tsgimagegeneric.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef TSGIMAGEGENERIC_H
    17 #define TSGIMAGEGENERIC_H
    18 
    19 #include "tgraphicsresourceteststepbase.h"
    20 
    21 class CTSgImageGeneric : public CTSgTestStepBase
    22 {
    23 public:
    24 	CTSgImageGeneric();
    25 	~CTSgImageGeneric();
    26 private:
    27 	// From CTestStepCTSgImageGeneric
    28 	virtual TVerdict doTestStepL();
    29 	
    30 private:
    31 	//positive tests
    32 	void TestGetPixelFormatsL();
    33 	void TestCreateImageUninitializedL();
    34 	void TestCreateImageL();
    35 	void TestCreateImageFromExistingImageL();	
    36 	void TestGetImageInfoL();
    37 	void TestGetImageDrawableIdL();
    38 	void TestMapImageL();	
    39 	void TestOpenImageL();
    40 	void TestOpenImageInternalL();
    41 	void TestGetInterfaceL();
    42 	
    43 	//negative tests
    44 	void TestGetPixelFormatsInvalidL();
    45 	void TestOpenImageInvalidL();
    46 	void TestCloseImageManyTimesL();
    47 	void TestCloseImageWithoutOpenL();
    48 	void TestCreateImageInvalidL();
    49 	void TestGetInfoInvalidImageL();
    50 	void TestMapImageInvalidL();
    51 	void TestUnmapImageInvalidL();
    52 	
    53 	//out of memory test
    54 	void DoMemoryTestsL();
    55 	
    56 	//stress tests
    57 	void TestStress1L();
    58 	void TestStress2L();
    59 
    60 	//panic tests
    61 	void TestPanicImageGetInterfaceInvalidHandleL();
    62 	void TestPanicImageGetInterfaceNoDriverL();
    63 	void TestPanicImageCloseInvalidHandleL();
    64 	void TestPanicImageCloseNoDriverL();
    65 	void TestPanicImageIdInvalidHandleL();
    66 	void TestPanicImageIdNoDriverL();
    67 	void TestPanicImageCreateInvalidHandleL();
    68 	void TestPanicImageGetInfoInvalidHandleL();
    69 	void TestPanicImageGetInfoNoDriverL();
    70 	void TestPanicImageMapReadOnlyInvalidHandleL();
    71 	void TestPanicImageMapReadOnlyNoDriverL();
    72 	void TestPanicImageMapWriteOnlyInvalidHandleL();
    73 	void TestPanicImageMapWriteOnlyNoDriverL();
    74 	void TestPanicImageMapReadWriteInvalidHandleL();
    75 	void TestPanicImageMapReadWriteNoDriverL();
    76 	void TestPanicImageUnmapInvalidHandleL();
    77 	void TestPanicImageUnmapNoDriverL();	
    78 	void TestPanicImageOpenNoDriver1L();
    79 	void TestPanicImageOpenNoDriver2L();
    80 	void TestPanicImageCreateNoDriver1L();
    81 	void TestPanicImageCreateNoDriver2L();
    82 	void TestPanicImageGetPixelFormatsNoDriverL();
    83 	void TestPanicImageDrawableTypeNoDriverL();
    84 	void TestPanicImageDrawableTypeInvalidHandleL();
    85 	
    86 	RArray<RSgImage> iTestImages;
    87 };
    88 
    89 _LIT(KTSgImageGeneric,"TSgImageGeneric");
    90 
    91 #endif /*TSGIMAGEGENERIC_H*/