|
1 /* |
|
2 * Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Test for zoom and pan effect in slideshow |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __T_CSHWZOOMANDPANEFFECT_H__ |
|
22 #define __T_CSHWZOOMANDPANEFFECT_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/CEUnitTestSuiteClass.h> |
|
26 #include <digia/eunit/EUnitDecorators.h> |
|
27 |
|
28 // INTERNAL INCLUDES |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CHuiEnv; |
|
32 class CHuiDisplayCoeControl; |
|
33 class CHuiControl; |
|
34 class CHuiImageVisual; |
|
35 class CShwZoomAndPanEffect; |
|
36 |
|
37 // CLASS DEFINITION |
|
38 /** |
|
39 * EUnit test suite for Zoom and pan related classes |
|
40 */ |
|
41 NONSHARABLE_CLASS( T_CShwZoomAndPanEffect ) |
|
42 : public CEUnitTestSuiteClass |
|
43 { |
|
44 public: // Constructors and destructors |
|
45 |
|
46 /** |
|
47 * Two phase construction |
|
48 */ |
|
49 static T_CShwZoomAndPanEffect* NewL(); |
|
50 static T_CShwZoomAndPanEffect* NewLC(); |
|
51 /** |
|
52 * Destructor |
|
53 */ |
|
54 ~T_CShwZoomAndPanEffect(); |
|
55 |
|
56 // helper |
|
57 TInt CancelAsyncL(); |
|
58 |
|
59 private: // Constructors and destructors |
|
60 |
|
61 T_CShwZoomAndPanEffect(); |
|
62 void ConstructL(); |
|
63 |
|
64 private: // New methods |
|
65 |
|
66 void Empty(); |
|
67 void SetupL(); |
|
68 void Teardown(); |
|
69 void T_LayoutTestL(); |
|
70 void T_CurveTestL(); |
|
71 void T_ZoomAndPanTestL(); |
|
72 void T_PauseTestL(); |
|
73 void T_TestGeometryAlgorithmsL(); |
|
74 void T_TestBoundariesL(); |
|
75 |
|
76 private: // Data |
|
77 |
|
78 /// Own: HUI environment |
|
79 CHuiEnv* iEnv; |
|
80 |
|
81 /// Own: HUI display |
|
82 CHuiDisplayCoeControl* iCoeDisplay; |
|
83 |
|
84 /// Own: HUI control |
|
85 CHuiControl* iControl; |
|
86 |
|
87 /// Own: HUI visual |
|
88 CHuiImageVisual* iVisual; |
|
89 |
|
90 /// Own: asynch wait |
|
91 CActiveSchedulerWait iAsyncWait; |
|
92 |
|
93 /// Own: class under test |
|
94 CShwZoomAndPanEffect* iCShwZoomAndPanEffect; |
|
95 EUNIT_DECLARE_TEST_TABLE; |
|
96 |
|
97 }; |
|
98 |
|
99 #endif // __T_CSHWZOOMANDPANEFFECT_H__ |
|
100 |
|
101 // End of file |