First public contribution.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
27 #include "../tlib/testbase.h"
29 #include "TGraphicsHarness.h"
31 _LIT(KTW32CmdBufSecondThread, "TW32CmdBufSecondThread");
33 enum TTestFunctionIndex
38 ECallDrawBitmapMasked,
43 ECallAlphaBlendBitmaps,
46 class CTW32CmdBuf : public CTGraphicsBase
49 CTW32CmdBuf(CTestStep* aStep);
54 virtual void RunTestCaseL(TInt aCurTestCase);
56 void DoCmdBufTestsL();
57 void CreateSecondThreadAndDoTestL(TTestFunctionIndex aFunctionIndex);
58 static TInt TestCmdBufFunction(TAny* aInfo);
59 static TInt DoTestCmdBufFunctionL(TTestFunctionIndex aFunctionIndex);
62 class CTW32CmdBufStep : public CTGraphicsStep
68 virtual CTGraphicsBase* CreateTestL();
71 _LIT(KTW32CmdBufStep,"TW32CmdBuf");