os/graphics/windowing/windowserver/test/tauto/TBACKUPW.H
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/windowing/windowserver/test/tauto/TBACKUPW.H	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,93 @@
     1.4 +
     1.5 +// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of "Eclipse Public License v1.0"
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +/**
    1.21 + @file
    1.22 + @test
    1.23 + @internalComponent - Internal Symbian test code
    1.24 +*/
    1.25 +
    1.26 +#ifndef __TBACKUPW_H__
    1.27 +#define __TBACKUPW_H__
    1.28 +
    1.29 +#include <e32std.h>
    1.30 +#include <w32std.h>
    1.31 +#include "../tlib/testbase.h"
    1.32 +#include <bitstd.h>
    1.33 +#include "AUTO.H"
    1.34 +#include "TGraphicsHarness.h"
    1.35 +
    1.36 +const TInt KLastSubtest = 13;
    1.37 +
    1.38 +class CTBackedUpWindow : public CTWsGraphicsBase
    1.39 +	{
    1.40 +public:
    1.41 +	CTBackedUpWindow(CTestStep* aStep);
    1.42 +	~CTBackedUpWindow();
    1.43 +	void DoTestL();
    1.44 +	void DoSubTestL(TInt iState);
    1.45 +	void CheckWindow();
    1.46 +	void CheckWindow(CFbsBitmap *aBitmap);
    1.47 +	void Draw(TInt aDrawFunc, TAny *aParam);
    1.48 +	void Draw(TInt aDrawFunc, TAny *aParam, CBitmapContext *aGc1, CBitmapContext *aGc2);
    1.49 +	void DrawWithTwoGcsL();
    1.50 +	void ConstructL();
    1.51 +	void InvisVis();
    1.52 +	void WindowOnTop();
    1.53 +	void Resize();
    1.54 +	void ChildWindows();
    1.55 +	void DupBitmapTestL();
    1.56 +	void UpdateBitmapTestL();
    1.57 +	void OOML();
    1.58 +	void TestPanicsL();
    1.59 +	void doGraphicFunctionsL(CBitmapContext *gc,TBool aExtraDrawBitMap);
    1.60 +	void AllGraphicFunctionsL(RBlankWindow &aBlank,TBool aExtraDrawBitMap=ETrue);
    1.61 +	void AllGraphicFunctionsTestsL();
    1.62 +protected:
    1.63 +//from 	CTGraphicsStep
    1.64 +	virtual void RunTestCaseL(TInt aCurTestCase);
    1.65 +private:
    1.66 +	TInt iSupState;
    1.67 +	TSize iSize;
    1.68 +	TPoint iCheckPos;
    1.69 +	TPoint iWinPos;
    1.70 +	RWindow iCheckWindow;
    1.71 +	RBackedUpWindow iBackedUpWindow;
    1.72 +	RBlankWindow iOomFrontWindow;
    1.73 +	CFbsBitmap iBitmap;
    1.74 +	CFbsBitGc *iBitGc;
    1.75 +	CFbsDevice *iBitmapDevice;
    1.76 +	CFbsBitmap* iTestBitmap;
    1.77 +	CFbsBitmap* iMaskBitmap;
    1.78 +	};
    1.79 +
    1.80 +LOCAL_D const TPoint moveList[]={TPoint(1,0),TPoint(10,20),TPoint(-50,0),TPoint(30,-1),TPoint(-1000,20)};
    1.81 +
    1.82 +
    1.83 +
    1.84 +class CTBackedUpWindowStep : public CTGraphicsStep
    1.85 +	{
    1.86 +public:
    1.87 +	CTBackedUpWindowStep();
    1.88 +protected:	
    1.89 +	//from CTGraphicsStep
    1.90 +	virtual CTGraphicsBase* CreateTestL();
    1.91 +	};
    1.92 +
    1.93 +_LIT(KTBackedUpWindowStep,"TBackedUpWindow");
    1.94 +
    1.95 +
    1.96 +#endif