sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: @internalComponent sl@0: */ sl@0: sl@0: #ifndef __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__ sl@0: #define __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include "t_wservgenericpluginconsts.h" sl@0: sl@0: class CT_WServGenericpluginStepLoad : public CTestStep sl@0: { sl@0: public: sl@0: CT_WServGenericpluginStepLoad(); sl@0: ~CT_WServGenericpluginStepLoad(); sl@0: // from CTestStep sl@0: virtual enum TVerdict doTestStepPreambleL(); sl@0: virtual enum TVerdict doTestStepL(); sl@0: virtual enum TVerdict doTestStepPostambleL(); sl@0: sl@0: private: sl@0: 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 ); sl@0: void DrawShape(RWindow& aWin); sl@0: TBool CompareDisplayL(CWsScreenDevice* aScreen, CFbsBitmap* aBitmap); sl@0: void CalcAbsRect(TSize& aAbsRect, const TPoint& aPos, const TSize& aWinSize); sl@0: // Test cases sl@0: void GraphicsWservGenericpluginLoadL(); sl@0: void GraphicsWservGenericpluginLoad1L(); sl@0: void GraphicsWservGenericpluginLoad2L(); sl@0: void GraphicsWservGenericpluginLoad3L(); sl@0: void GraphicsWservGenericpluginLoad4L(); sl@0: void GraphicsWservGenericpluginLoad5L(); sl@0: TInt CheckLogL(TDesC8& aMsg); sl@0: sl@0: private: // Data members sl@0: TInt iTestId; sl@0: TDisplayMode iDisplayMode; sl@0: CWindowGc* iGc; sl@0: CWsScreenDevice* iScreen; sl@0: RWsSession iWsSession; sl@0: RWindowGroup iWinGroup; sl@0: CWsScreenDevice* iScreen1; sl@0: RWindowGroup iWinGroup1; sl@0: CFbsBitmap* iDefaultPluginBmp; sl@0: CFbsBitmap* iTestPluginBmp; sl@0: CFbsBitmap* iTestPluginBmp1; sl@0: }; sl@0: sl@0: #endif // __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__