os/graphics/windowing/windowserver/test/t_genericplugin/inc/t_wservgenericpluginstepload.h
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 #ifndef __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__
23 #define __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__
27 #include <testexecutestepbase.h>
28 #include "t_wservgenericpluginconsts.h"
30 class CT_WServGenericpluginStepLoad : public CTestStep
33 CT_WServGenericpluginStepLoad();
34 ~CT_WServGenericpluginStepLoad();
36 virtual enum TVerdict doTestStepPreambleL();
37 virtual enum TVerdict doTestStepL();
38 virtual enum TVerdict doTestStepPostambleL();
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);
46 void GraphicsWservGenericpluginLoadL();
47 void GraphicsWservGenericpluginLoad1L();
48 void GraphicsWservGenericpluginLoad2L();
49 void GraphicsWservGenericpluginLoad3L();
50 void GraphicsWservGenericpluginLoad4L();
51 void GraphicsWservGenericpluginLoad5L();
52 TInt CheckLogL(TDesC8& aMsg);
54 private: // Data members
56 TDisplayMode iDisplayMode;
58 CWsScreenDevice* iScreen;
59 RWsSession iWsSession;
60 RWindowGroup iWinGroup;
61 CWsScreenDevice* iScreen1;
62 RWindowGroup iWinGroup1;
63 CFbsBitmap* iDefaultPluginBmp;
64 CFbsBitmap* iTestPluginBmp;
65 CFbsBitmap* iTestPluginBmp1;
68 #endif // __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__