os/graphics/graphicsresourceservices/graphicsresourceimplementation/test/inc/tsgdrawablegeneric.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 @file
    17 @test
    18 @internalComponent
    19  */
    20 #ifndef TSGDRAWABLEGENERIC_H
    21 #define TSGDRAWABLEGENERIC_H
    22 
    23 #include "tgraphicsresourceteststepbase.h"
    24 
    25 /**
    26 Class containing all the positive, negative and panic tests for RSgDrawable.
    27 
    28 KErrNoMemory testing can optionally be enabled.
    29  */
    30 class CTSgDrawableGeneric : public CTSgTestStepBase
    31 	{
    32 public:
    33 	CTSgDrawableGeneric(TBool aConformanceTests);
    34 	~CTSgDrawableGeneric();
    35 
    36 	//positive tests
    37 	void TestOpenImageAsDrawableL();	
    38 	void TestGetDrawableDrawableIdL();	
    39 	//negative tests
    40 	void TestOpenDrawableInvalidL();
    41 	void TestCloseDrawableWithoutOpenL();	
    42 
    43 private:
    44 	// From CTestStep
    45 	virtual TVerdict doTestStepL();
    46 	
    47 	//panic tests
    48 	void TestPanicDrawableOpenNoDriverL();
    49 	};
    50 
    51 _LIT(KTSgDrawableGeneric,"TSgDrawableGeneric");
    52 	
    53 #endif /*TSGDRAWABLEGENERIC_H*/