os/graphics/graphicsresourceservices/graphicsresource/test/tsgimagecollectiongeneric.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 TSGIMAGECOLLECTIONGENERIC_H
    17 #define TSGIMAGECOLLECTIONGENERIC_H
    18 
    19 #include "tgraphicsresourceteststepbase.h"
    20 
    21 class CTSgImageCollectionGeneric : public CTSgTestStepBase
    22 	{
    23 public:
    24 	CTSgImageCollectionGeneric();
    25 	~CTSgImageCollectionGeneric();
    26 private:
    27 	// From CTestStep
    28 	virtual TVerdict doTestStepL();
    29 private:
    30 	//positive tests
    31 	void TestCreateImageCollectionL();
    32 	void TestGetImageCollectionSurfaceIdL();
    33 	void TestGetCollectionImageNumberL();
    34 	void TestGetImageInfoInCollectionL();
    35 	void TestOpenImageInCollectionL();
    36 	void TestMapImageInCollectionL();
    37 	void TestCreateMultipleImageCollectionL();
    38 	
    39 	//negative tests
    40 	void TestCreateImageCollectionInvalidL();
    41 	void TestCreateMultipleImageCollectionsInvalidL();
    42 	void TestGetImageCollectionInfoInvalidL();
    43 	void TestOpenImageInCollectionInvalidL();	
    44 	void TestMapUnmapImagesInCollectionInvalidL();	
    45 	void TestPanicImageCollectionCreateNoDriver1L();
    46 	void TestPanicImageCollectionCreateNoDriver2L();
    47 	
    48 	//out of memory tests
    49 	void DoMemoryTestsL();
    50 	
    51 	//panic tests
    52 	void TestPanicImageCollectionCloseInvalidHandleL();
    53 	void TestPanicImageCollectionCloseNoDriverL();
    54 	void TestPanicImageCollectionSurfaceIdInvalidHandleL();
    55 	void TestPanicImageCollectionSurfaceIdNoDriverL();
    56 	void TestPanicImageCollectionGetInfoInvalidHandleL();
    57 	void TestPanicImageCollectionGetInfoNoDriverL();
    58 	void TestPanicImageCollectionCountInvalidHandleL();
    59 	void TestPanicImageCollectionCountNoDriverL();
    60 	void TestPanicImageCollectionOpenImageInvalidHandleL();
    61 	void TestPanicImageCollectionOpenImageNoDriverL();
    62 	};
    63 
    64 _LIT(KTSgImageCollectionGeneric,"TSgImageCollectionGeneric");
    65 
    66 #endif /*TSGIMAGECOLLECTIONGENERIC_H*/