os/graphics/windowing/windowserver/test/t_genericplugin/inc/t_wservgenericpluginstepload.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) 2008-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
    20 */
    21 
    22 #ifndef __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__
    23 #define __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__
    24 
    25 #include <fbs.h>
    26 #include <w32std.h>
    27 #include <testexecutestepbase.h>
    28 #include "t_wservgenericpluginconsts.h"
    29 
    30 class CT_WServGenericpluginStepLoad : public CTestStep
    31 	{
    32 public:
    33 	CT_WServGenericpluginStepLoad();
    34 	~CT_WServGenericpluginStepLoad();
    35 	// from CTestStep
    36 	virtual enum TVerdict doTestStepPreambleL();
    37 	virtual enum TVerdict doTestStepL();
    38 	virtual enum TVerdict doTestStepPostambleL();
    39 	
    40 private:
    41 	void CreateRWindowL(const RWindowGroup& aWinGroup, RWindow& aWin, const TPoint& aPos=TPoint(0,0), const TRgb& aBkgdColor=TRgb(0x800000FF), const TSize& aWinSize=TSize(KTempWindowWidth,KTempWindowHeight),  const TUint32 aHandle = KNullWsHandle );
    42 	void DrawShape(RWindow& aWin);
    43 	TBool CompareDisplayL(CWsScreenDevice* aScreen, CFbsBitmap* aBitmap);	
    44 	void CalcAbsRect(TSize& aAbsRect, const TPoint& aPos, const TSize& aWinSize);
    45 	// Test cases
    46 	void GraphicsWservGenericpluginLoadL();
    47 	void GraphicsWservGenericpluginLoad1L();
    48 	void GraphicsWservGenericpluginLoad2L();
    49 	void GraphicsWservGenericpluginLoad3L();
    50 	void GraphicsWservGenericpluginLoad4L();
    51 	void GraphicsWservGenericpluginLoad5L();
    52 	TInt CheckLogL(TDesC8& aMsg);
    53 
    54 private:	// Data members
    55 	TInt					iTestId;
    56 	TDisplayMode			iDisplayMode;
    57 	CWindowGc* 				iGc;
    58 	CWsScreenDevice* 		iScreen;
    59 	RWsSession 				iWsSession;
    60 	RWindowGroup 			iWinGroup;
    61 	CWsScreenDevice* 		iScreen1;
    62 	RWindowGroup 			iWinGroup1;
    63 	CFbsBitmap* 			iDefaultPluginBmp;
    64 	CFbsBitmap*				iTestPluginBmp;
    65 	CFbsBitmap*				iTestPluginBmp1;
    66 	};
    67 
    68 #endif // __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__