os/graphics/windowing/windowserver/test/t_integ/inc/t_wservintegstepbasic.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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  @test
    19  @internalComponent
    20 */
    21 
    22 #ifndef __T_WSERVINTEGSTEPBASIC_H__
    23 #define __T_WSERVINTEGSTEPBASIC_H__
    24 
    25 #include <w32std.h>
    26 #include <graphics/surfacemanager.h>
    27 #include <graphics/surfaceupdateclient.h>
    28 #include <test/testexecutestepbase.h>
    29 
    30 const TInt KTempWindowHeight = 200;
    31 const TInt KTempWindowWidth = 200;
    32 _LIT(KT_WServIntegStepBasic,"T_WServIntegStepBasic");
    33 
    34 
    35 class CT_WServIntegStepBasic : public CTestStep
    36 	{
    37 public:
    38 	CT_WServIntegStepBasic();
    39 	~CT_WServIntegStepBasic();
    40 	// from CTestStep
    41 	virtual enum TVerdict doTestStepPreambleL();
    42 	virtual enum TVerdict doTestStepL();
    43 	virtual enum TVerdict doTestStepPostambleL();
    44 
    45 private:
    46 	void CreateSurfaceManager();
    47 	void CreateSurfaceL(TSurfaceId& aSurfaceId, TUint aColorPattern=0xFF0000FF);
    48 	void CreateSurfaceUpdateSessionL();
    49 	void DestroySurface();
    50 	void CreateRWindowL(RWindow& aWin, const TPoint& aPos=TPoint(0,0), const TRgb& aBkgdColor=TRgb(0x800000FF), const TSize& aWinSize=TSize(KTempWindowWidth,KTempWindowHeight) );
    51 	void CreateRBlankWindowL(RBlankWindow& aBlankWin);
    52 	void ForceWindowToRedraw(RWindowBase& aWin);
    53 	TVerdict SetSurfaceL(RWindow& aWin, TSurfaceId& aSurfaceId);
    54 	void DrawShape(RWindow& aWin, const TRgb& aColor);
    55 
    56 	// Test cases
    57 	void Graphics_Wserv_Gce_1L(RWindow& aWin);
    58 	void Graphics_Wserv_Gce_2L(RBlankWindow& aBlankWin);
    59 	void Graphics_Wserv_Gce_3L();
    60 	void Graphics_Wserv_Gce_4L(RWindow& aWin);
    61 	void Graphics_Wserv_Gce_5L(RWindow& aWin);
    62 	void Graphics_Wserv_Gce_6L(RWindow& aWin);
    63 	void Graphics_Wserv_Gce_11L(RWindow& aWin);
    64 	void Graphics_Wserv_Gce_13L(RWindow& aWin);
    65 	void Graphics_Wserv_Gce_15L(RWindow& aWin);
    66 	void Graphics_Wserv_Gce_17L(RWindow& aWin);
    67 	void Graphics_Wserv_Gce_19L(RWindow& aWin);
    68 	void Graphics_Wserv_Gce_21L(RWindow& aWin);
    69 	void Graphics_Wserv_Gce_22L(RWindow& aWin);
    70 	void Graphics_Wserv_Gce_31L(RBlankWindow& aBlankWin);
    71 	void Graphics_Wserv_Gce_32L(RWindow& aWin);
    72 	void Graphics_Wserv_Gce_33L(RWindow& aWin);
    73 	void Graphics_Wserv_Gce_34L(RWindow& aWin);
    74 	void Graphics_Wserv_Gce_35L(RWindow& aWin);
    75 	void Graphics_Wserv_Gce_36L(RWindow& aWin);
    76 
    77 private:	// Data members
    78 	TInt					iTestId;
    79 //	TDisplayMode			iDisplayMode;
    80 	CWindowGc* 				iGc;
    81 	CWsScreenDevice* 		iScreen;
    82 	RWsSession 				iWsSession;
    83 	RSurfaceManager  		iSurfaceManager;
    84 	TSurfaceId 				iSurfaceId;
    85 	RChunk 					iChunk;
    86 	RSurfaceUpdateSession 	iSurfaceUpdateSession;
    87 	RWindowGroup 			iWinGroup;
    88 	};
    89 
    90 #endif	// __T_WSERVINTEGSTEPBASIC_H__