graphicsdeviceinterface/directgdi/test/tdirectgdicontext.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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  @internalComponent 
       
    19  @test
       
    20 */
       
    21 
       
    22 #ifndef TDIRECTGDICONTEXT_H
       
    23 #define TDIRECTGDICONTEXT_H
       
    24 
       
    25 
       
    26 #include "tdirectgdi_test_step_base.h"
       
    27 
       
    28 _LIT(KSamePixelType, "_SamePixelType");
       
    29 _LIT(KDifferentPixelType, "_DiffPixelType");
       
    30 _LIT(KTarget1, "_Tgt1");
       
    31 _LIT(KTarget2, "_Tgt2");
       
    32 _LIT(KContext1, "_Ctx1");
       
    33 _LIT(KContext2, "_Ctx2");
       
    34 
       
    35 /**
       
    36 This class contains all the test cases related to DirectGdi Context
       
    37 */
       
    38 class CTDirectGdiContext : public CTDirectGdiStepBase
       
    39 	{
       
    40 public:
       
    41 	CTDirectGdiContext();
       
    42 	~CTDirectGdiContext();
       
    43 	
       
    44 private:
       
    45 	void OneContextOneTarget();
       
    46 	void OneContextTwoTargets();
       
    47 	void TwoContextsOneTarget();
       
    48 	void TwoContextsTwoTargets_WithoutSharingL();
       
    49 	void TwoContextsTwoTargets_WithSharingL();
       
    50 	void OneContextOneTarget_TwiceActivateL();
       
    51 	void ExternalizeInternalizeTestL();
       
    52 	void TestCopySettings();
       
    53 	
       
    54 	virtual TVerdict doTestStepPreambleL();
       
    55 	virtual TVerdict doTestStepL();
       
    56 	// from CTDirectGdiStepBase
       
    57 	void RunTestsL();
       
    58 
       
    59 private:	
       
    60 	TInt iCaseNum;
       
    61 	CFont* iFont;
       
    62 	};		
       
    63 	
       
    64 _LIT(KTDirectGdiContextStep,"TDirectGDIContext");
       
    65 
       
    66 #endif /*TDIRECTGDICONTEXT_H*/