graphicsdeviceinterface/screendriver/tsrc/TScdvTest.h
author MattD <ext-matt.4.davies@nokia.com>
Fri, 24 Sep 2010 16:58:15 +0100
branchEGL_MERGE
changeset 191 6356de74619b
parent 0 5d03bc08d59c
permissions -rw-r--r--
merged faisal's branch of EGL_MERGE on top of all of the dead heads of Jose. This makes Faisal's changes the 'tip' of EGL_MERGE again. No changes.

// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#if !defined(__TSCDVTEST_H__)
#define __TSCDVTEST_H__

#include "TGraphicsHarness.h"

class CTScdv : public CTGraphicsBase
	{
public:
	CTScdv(CTestStep* aStep);
protected:
//from 	CTGraphicsStep
	virtual void RunTestCaseL(TInt aCurTestCase);
private:
	inline TInt ByteSize(const TSize& aSize, TDisplayMode aDisplayMode);
	TBool CreateScreenDeviceLC(TInt aScreenNo, 
								  TDisplayMode aDisplayMode,
								  CFbsDrawDevice*& aScreenDevice);
	TAny* InitScreenDeviceLC(CFbsDrawDevice* aScreenDevice,
							   TDisplayMode aDisplayMode);
	void TestScreenDeviceCreationL();
	void TestBitmapDeviceCreationL();
	};

class CTScdvStep : public CTGraphicsStep
	{
public:
	CTScdvStep();
protected:	
	//from CTGraphicsStep
	virtual CTGraphicsBase* CreateTestL();
	virtual void TestSetupL();
	};

_LIT(KTScdvStep,"TScdv");


#endif