|
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 __TGENERALDRAWING_H__ |
|
23 #define __TGENERALDRAWING_H__ |
|
24 |
|
25 #include "tdirectgdi_test_step_base.h" |
|
26 #include <bitdev.h> |
|
27 |
|
28 /** |
|
29 Class for testing the general drawing functionality in DirectGdi vs BitGdi. Drawing to default context, |
|
30 reseted context and using various draw modes are tested. |
|
31 */ |
|
32 class CTGeneralDrawing : public CTDirectGdiStepBase |
|
33 { |
|
34 public: |
|
35 CTGeneralDrawing(); |
|
36 ~CTGeneralDrawing(); |
|
37 |
|
38 private: |
|
39 // Main test methods |
|
40 void TestDrawToDefaultContextL(); |
|
41 void TestDrawToResetContextL(); |
|
42 void TestSetDrawMode(); |
|
43 void TestSetDrawModeInvalidParametersL(); |
|
44 void TestMoveBy(); |
|
45 void TestInternalDrawingPositionDrawRect(); |
|
46 void TestDrawShapesIrregularPenSizeL(const TSize& aPenSize); |
|
47 void TestDrawShapesChangingOriginL(); |
|
48 void DrawToClosedActiveTargetL(); |
|
49 |
|
50 // From CStepStep |
|
51 virtual TVerdict doTestStepPreambleL(); |
|
52 virtual TVerdict doTestStepL(); |
|
53 |
|
54 // from CTDirectGdiStepBase |
|
55 void RunTestsL(); |
|
56 |
|
57 }; |
|
58 |
|
59 _LIT(KTDirectGdiGeneralDrawingStep,"TDirectGDIGeneralDrawing"); |
|
60 |
|
61 #endif |