diff -r bf7481649c98 -r 2717213c588a windowing/windowserver/test/tauto/tw32cmdbuf.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/windowing/windowserver/test/tauto/tw32cmdbuf.h Tue Jun 22 15:21:29 2010 +0300 @@ -0,0 +1,73 @@ +// Copyright (c) 2007-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: +// + +/** + @file + @test + @internalComponent - Internal Symbian test code +*/ + +#ifndef TW32CMDBUF_H +#define TW32CMDBUF_H + +#include +#include +#include "../tlib/testbase.h" +#include "AUTO.H" +#include "TGraphicsHarness.h" + +_LIT(KTW32CmdBufSecondThread, "TW32CmdBufSecondThread"); + +enum TTestFunctionIndex + { + ECallDrawBitmap1, + ECallDrawBitmap2, + ECallDrawBitmap3, + ECallDrawBitmapMasked, + ECallUseBrushPattern, + ECallBitBlt1, + ECallBitBlt2, + ECallBitBltMasked, + ECallAlphaBlendBitmaps, + }; + +class CTW32CmdBuf : public CTGraphicsBase + { +public: + CTW32CmdBuf(CTestStep* aStep); + ~CTW32CmdBuf(); + void ConstructL(); + +protected: + virtual void RunTestCaseL(TInt aCurTestCase); +private: + void DoCmdBufTestsL(); + void CreateSecondThreadAndDoTestL(TTestFunctionIndex aFunctionIndex); + static TInt TestCmdBufFunction(TAny* aInfo); + static TInt DoTestCmdBufFunctionL(TTestFunctionIndex aFunctionIndex); + }; + +class CTW32CmdBufStep : public CTGraphicsStep + { +public: + CTW32CmdBufStep(); +protected: + //from CTGraphicsStep + virtual CTGraphicsBase* CreateTestL(); + }; + +_LIT(KTW32CmdBufStep,"TW32CmdBuf"); + +#endif