os/graphics/windowing/windowserver/test/tauto/TBLANK.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/TBLANK.H	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,76 @@
     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 __TBLANK_H__
    1.27 +#define __TBLANK_H__
    1.28 +
    1.29 +#include <e32std.h>
    1.30 +#include <w32std.h>
    1.31 +#include "../tlib/testbase.h"
    1.32 +#include "AUTO.H"
    1.33 +#include "TGraphicsHarness.h"
    1.34 +
    1.35 +class CBaseWindow : public CTWin
    1.36 +	{
    1.37 +public:
    1.38 +	CBaseWindow();
    1.39 +	void ConstructL(CTWinBase &parent);
    1.40 +	virtual void Draw();
    1.41 +	void SetColor(const TRgb &aRgb);
    1.42 +private:
    1.43 +	TRgb iRgb;
    1.44 +	};
    1.45 +
    1.46 +class CTBlank : public CTWsGraphicsBase
    1.47 +	{
    1.48 +public:
    1.49 +	CTBlank(CTestStep* aStep);
    1.50 +	~CTBlank();
    1.51 +protected:
    1.52 +//from 	CTGraphicsStep
    1.53 +	virtual void RunTestCaseL(TInt aCurTestCase);
    1.54 +public:
    1.55 +	void doDestruct();
    1.56 +	void ConstructL();
    1.57 +	void InvalidateTestWin(const TRect &aRect);
    1.58 +	void CheckBlankWindows();
    1.59 +	void SetColor(const TRgb &aRgb);
    1.60 +private:
    1.61 +	TBool iDoCheck;
    1.62 +	TSize iWinSize;
    1.63 +	CBaseWindow *iBaseWin;
    1.64 +	CTBlankWindow *iTestWin;
    1.65 +	};
    1.66 +
    1.67 +class CTBlankStep : public CTGraphicsStep
    1.68 +	{
    1.69 +public:
    1.70 +	CTBlankStep();
    1.71 +protected:	
    1.72 +	//from CTGraphicsStep
    1.73 +	virtual CTGraphicsBase* CreateTestL();
    1.74 +	};
    1.75 +
    1.76 +_LIT(KTBlankStep,"TBlank");
    1.77 +
    1.78 +
    1.79 +#endif