|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef TW32CMDBUF_H |
|
23 #define TW32CMDBUF_H |
|
24 |
|
25 #include <e32std.h> |
|
26 #include <w32std.h> |
|
27 #include "../tlib/testbase.h" |
|
28 #include "AUTO.H" |
|
29 #include "TGraphicsHarness.h" |
|
30 |
|
31 _LIT(KTW32CmdBufSecondThread, "TW32CmdBufSecondThread"); |
|
32 |
|
33 enum TTestFunctionIndex |
|
34 { |
|
35 ECallDrawBitmap1, |
|
36 ECallDrawBitmap2, |
|
37 ECallDrawBitmap3, |
|
38 ECallDrawBitmapMasked, |
|
39 ECallUseBrushPattern, |
|
40 ECallBitBlt1, |
|
41 ECallBitBlt2, |
|
42 ECallBitBltMasked, |
|
43 ECallAlphaBlendBitmaps, |
|
44 }; |
|
45 |
|
46 class CTW32CmdBuf : public CTGraphicsBase |
|
47 { |
|
48 public: |
|
49 CTW32CmdBuf(CTestStep* aStep); |
|
50 ~CTW32CmdBuf(); |
|
51 void ConstructL(); |
|
52 |
|
53 protected: |
|
54 virtual void RunTestCaseL(TInt aCurTestCase); |
|
55 private: |
|
56 void DoCmdBufTestsL(); |
|
57 void CreateSecondThreadAndDoTestL(TTestFunctionIndex aFunctionIndex); |
|
58 static TInt TestCmdBufFunction(TAny* aInfo); |
|
59 static TInt DoTestCmdBufFunctionL(TTestFunctionIndex aFunctionIndex); |
|
60 }; |
|
61 |
|
62 class CTW32CmdBufStep : public CTGraphicsStep |
|
63 { |
|
64 public: |
|
65 CTW32CmdBufStep(); |
|
66 protected: |
|
67 //from CTGraphicsStep |
|
68 virtual CTGraphicsBase* CreateTestL(); |
|
69 }; |
|
70 |
|
71 _LIT(KTW32CmdBufStep,"TW32CmdBuf"); |
|
72 |
|
73 #endif |