1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/windowing/windowserver/test/t_integ/inc/t_wservintegstepbasic.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,90 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +/**
1.20 + @file
1.21 + @test
1.22 + @internalComponent
1.23 +*/
1.24 +
1.25 +#ifndef __T_WSERVINTEGSTEPBASIC_H__
1.26 +#define __T_WSERVINTEGSTEPBASIC_H__
1.27 +
1.28 +#include <w32std.h>
1.29 +#include <graphics/surfacemanager.h>
1.30 +#include <graphics/surfaceupdateclient.h>
1.31 +#include <test/testexecutestepbase.h>
1.32 +
1.33 +const TInt KTempWindowHeight = 200;
1.34 +const TInt KTempWindowWidth = 200;
1.35 +_LIT(KT_WServIntegStepBasic,"T_WServIntegStepBasic");
1.36 +
1.37 +
1.38 +class CT_WServIntegStepBasic : public CTestStep
1.39 + {
1.40 +public:
1.41 + CT_WServIntegStepBasic();
1.42 + ~CT_WServIntegStepBasic();
1.43 + // from CTestStep
1.44 + virtual enum TVerdict doTestStepPreambleL();
1.45 + virtual enum TVerdict doTestStepL();
1.46 + virtual enum TVerdict doTestStepPostambleL();
1.47 +
1.48 +private:
1.49 + void CreateSurfaceManager();
1.50 + void CreateSurfaceL(TSurfaceId& aSurfaceId, TUint aColorPattern=0xFF0000FF);
1.51 + void CreateSurfaceUpdateSessionL();
1.52 + void DestroySurface();
1.53 + void CreateRWindowL(RWindow& aWin, const TPoint& aPos=TPoint(0,0), const TRgb& aBkgdColor=TRgb(0x800000FF), const TSize& aWinSize=TSize(KTempWindowWidth,KTempWindowHeight) );
1.54 + void CreateRBlankWindowL(RBlankWindow& aBlankWin);
1.55 + void ForceWindowToRedraw(RWindowBase& aWin);
1.56 + TVerdict SetSurfaceL(RWindow& aWin, TSurfaceId& aSurfaceId);
1.57 + void DrawShape(RWindow& aWin, const TRgb& aColor);
1.58 +
1.59 + // Test cases
1.60 + void Graphics_Wserv_Gce_1L(RWindow& aWin);
1.61 + void Graphics_Wserv_Gce_2L(RBlankWindow& aBlankWin);
1.62 + void Graphics_Wserv_Gce_3L();
1.63 + void Graphics_Wserv_Gce_4L(RWindow& aWin);
1.64 + void Graphics_Wserv_Gce_5L(RWindow& aWin);
1.65 + void Graphics_Wserv_Gce_6L(RWindow& aWin);
1.66 + void Graphics_Wserv_Gce_11L(RWindow& aWin);
1.67 + void Graphics_Wserv_Gce_13L(RWindow& aWin);
1.68 + void Graphics_Wserv_Gce_15L(RWindow& aWin);
1.69 + void Graphics_Wserv_Gce_17L(RWindow& aWin);
1.70 + void Graphics_Wserv_Gce_19L(RWindow& aWin);
1.71 + void Graphics_Wserv_Gce_21L(RWindow& aWin);
1.72 + void Graphics_Wserv_Gce_22L(RWindow& aWin);
1.73 + void Graphics_Wserv_Gce_31L(RBlankWindow& aBlankWin);
1.74 + void Graphics_Wserv_Gce_32L(RWindow& aWin);
1.75 + void Graphics_Wserv_Gce_33L(RWindow& aWin);
1.76 + void Graphics_Wserv_Gce_34L(RWindow& aWin);
1.77 + void Graphics_Wserv_Gce_35L(RWindow& aWin);
1.78 + void Graphics_Wserv_Gce_36L(RWindow& aWin);
1.79 +
1.80 +private: // Data members
1.81 + TInt iTestId;
1.82 +// TDisplayMode iDisplayMode;
1.83 + CWindowGc* iGc;
1.84 + CWsScreenDevice* iScreen;
1.85 + RWsSession iWsSession;
1.86 + RSurfaceManager iSurfaceManager;
1.87 + TSurfaceId iSurfaceId;
1.88 + RChunk iChunk;
1.89 + RSurfaceUpdateSession iSurfaceUpdateSession;
1.90 + RWindowGroup iWinGroup;
1.91 + };
1.92 +
1.93 +#endif // __T_WSERVINTEGSTEPBASIC_H__