os/graphics/graphicsdeviceinterface/directgdi/test/tpanictests.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 /**
    17  @file
    18  @test
    19  @internalComponent - Internal Symbian test code 
    20 */
    21 
    22 #ifndef TPANICTESTS_H_
    23 #define TPANICTESTS_H_
    24 
    25 #include "tdirectgdi_test_step_base.h"
    26 #include <bitdev.h>
    27 
    28 /**
    29 This class contains all the panic tests. It reads the test case number from the ini file. Even when a panic is 
    30 encountered, it does not quit the test framework. It carries on with other test cases.
    31 */
    32 class CTPanicTests : public CTDirectGdiStepBase
    33 	{
    34 public:
    35 	CTPanicTests();
    36 	~CTPanicTests();
    37 	
    38 private:
    39 	void TestContextNotActivatedL();	
    40 	void TestFontNotSetL();
    41 	void TestInvalidTargetL();
    42 	void TestImageInvalidTargetHandleL();
    43 	void TestImageTargetActivatedTwiceL();
    44 	void TestImageSourceActivatedTwiceL();
    45 	void TestDrawableSourceActivatedTwiceL();
    46 	void TestBrushPatternNotSetL();
    47 
    48 	// From CStepStep
    49 	virtual TVerdict doTestStepPreambleL();
    50 	virtual TVerdict doTestStepL();	
    51 	// from CTDirectGdiStepBase
    52 	void RunTestsL();
    53 	};		
    54 	
    55 _LIT(KTDirectGdiPanicTestsStep,"TDirectGDIPanicTests");
    56 _LIT(KCaseNumber, "CaseNumber");
    57 
    58 #endif /*TPANICTESTS_H_*/