|
1 /* |
|
2 * Copyright (c) 2002 - 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 AknBitmapAnimation.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_TESTSDKANIMATION_H |
|
21 #define C_TESTSDKANIMATION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <stiflogger.h> |
|
25 #include <testscripterinternal.h> |
|
26 #include <stiftestmodule.h> |
|
27 #include <testclassassert.h> |
|
28 |
|
29 // MACROS |
|
30 #define TEST_CLASS_VERSION_MAJOR 0 |
|
31 #define TEST_CLASS_VERSION_MINOR 0 |
|
32 #define TEST_CLASS_VERSION_BUILD 0 |
|
33 |
|
34 // Logging path |
|
35 _LIT( KtestsdkanimationLogPath, "\\logs\\testframework\\testsdkanimation\\" ); |
|
36 // Log file |
|
37 _LIT( KtestsdkanimationLogFile, "testsdkanimation.txt" ); |
|
38 _LIT( KtestsdkanimationLogFileWithTitle, "testsdkanimation_[%S].txt" ); |
|
39 |
|
40 // FORWARD DECLARATIONS |
|
41 class CTestSDKAnimation; |
|
42 |
|
43 /** |
|
44 * CTestSDKAnimation test class for STIF Test Framework TestScripter. |
|
45 * @since S60 5.0 |
|
46 */ |
|
47 NONSHARABLE_CLASS(CTestSDKAnimation) : public CScriptBase |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 |
|
51 /** |
|
52 * Two-phased constructor. |
|
53 */ |
|
54 static CTestSDKAnimation* NewL( CTestModuleIf& aTestModuleIf ); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~CTestSDKAnimation(); |
|
60 |
|
61 public: // Functions from base classes |
|
62 |
|
63 /** |
|
64 * From CScriptBase Runs a script line. |
|
65 * @since S60 5.0 |
|
66 * @param aItem Script line containing method name and parameters |
|
67 * @return Symbian OS error code |
|
68 */ |
|
69 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
70 |
|
71 private: |
|
72 |
|
73 /** |
|
74 * C++ default constructor. |
|
75 */ |
|
76 CTestSDKAnimation( CTestModuleIf& aTestModuleIf ); |
|
77 |
|
78 /** |
|
79 * By default Symbian 2nd phase constructor is private. |
|
80 */ |
|
81 void ConstructL(); |
|
82 |
|
83 /** |
|
84 * Frees all resources allocated from test methods. |
|
85 * @since S60 5.0 |
|
86 */ |
|
87 void Delete(); |
|
88 |
|
89 /** |
|
90 * Method used to log version of test class |
|
91 */ |
|
92 void SendTestClassVersion(); |
|
93 |
|
94 private: // Test AknBitmapAnimation.h |
|
95 /* class CAknBitmapAnimation */ |
|
96 /** |
|
97 * TestBANewL test function for testing the |
|
98 * NewL function |
|
99 * @since S60 5.0 |
|
100 * @param aItem never used |
|
101 * @return Symbian OS error code. |
|
102 */ |
|
103 virtual TInt TestBANewL( CStifItemParser& aItem ); |
|
104 |
|
105 /** |
|
106 * TestBADeconstructorL test function for testing the |
|
107 * DeconstructorL function |
|
108 * @since S60 5.0 |
|
109 * @param aItem never used |
|
110 * @return Symbian OS error code. |
|
111 */ |
|
112 virtual TInt TestBADeconstructorL( CStifItemParser& aItem ); |
|
113 |
|
114 /** |
|
115 * TestBAAnimationL test function for testing the |
|
116 * Animation function |
|
117 * @since S60 5.0 |
|
118 * @param aItem never used |
|
119 * @return Symbian OS error code. |
|
120 */ |
|
121 virtual TInt TestBAAnimationL( CStifItemParser& aItem ); |
|
122 |
|
123 /** |
|
124 * TestBABitmapAnimDataL test function for testing the |
|
125 * BitmapAnimData function |
|
126 * @since S60 5.0 |
|
127 * @param aItem never used |
|
128 * @return Symbian OS error code. |
|
129 */ |
|
130 virtual TInt TestBABitmapAnimDataL( CStifItemParser& aItem ); |
|
131 |
|
132 /** |
|
133 * TestBACancelAnimationL test function for testing the |
|
134 * CancelAnimation function |
|
135 * @since S60 5.0 |
|
136 * @param aItem never used |
|
137 * @return Symbian OS error code. |
|
138 */ |
|
139 virtual TInt TestBACancelAnimationL( CStifItemParser& aItem ); |
|
140 |
|
141 /** |
|
142 * TestBASetFrameIndexL test function for testing the |
|
143 * SetFrameIndexL function |
|
144 * @since S60 5.0 |
|
145 * @param aItem never used |
|
146 * @return Symbian OS error code. |
|
147 */ |
|
148 virtual TInt TestBASetFrameIndexL( CStifItemParser& aItem ); |
|
149 |
|
150 /** |
|
151 * TestBASetFrameIntervalL test function for testing the |
|
152 * SetFrameIntervalL function |
|
153 * @since S60 5.0 |
|
154 * @param aItem never used |
|
155 * @return Symbian OS error code. |
|
156 */ |
|
157 virtual TInt TestBASetFrameIntervalL( CStifItemParser& aItem ); |
|
158 |
|
159 /** |
|
160 * TestBAStartAnimationL test function for testing the |
|
161 * StartAnimationL function |
|
162 * @since S60 5.0 |
|
163 * @param aItem never used |
|
164 * @return Symbian OS error code. |
|
165 */ |
|
166 virtual TInt TestBAStartAnimationL( CStifItemParser& aItem ); |
|
167 |
|
168 /** |
|
169 * TestBASetScaleModeForAnimationFramesL test function for testing the |
|
170 * SetScaleModeForAnimationFrames function |
|
171 * @since S60 5.0 |
|
172 * @param aItem never used |
|
173 * @return Symbian OS error code. |
|
174 */ |
|
175 virtual TInt TestBASetScaleModeForAnimationFramesL( CStifItemParser& aItem ); |
|
176 |
|
177 /** |
|
178 * TestBASetScaleModeForAnimationBackgroundFrameL test function for testing the |
|
179 * SetScaleModeForAnimationBackgroundFrame function |
|
180 * @since S60 5.0 |
|
181 * @param aItem never used |
|
182 * @return Symbian OS error code. |
|
183 */ |
|
184 virtual TInt TestBASetScaleModeForAnimationBackgroundFrameL( CStifItemParser& aItem ); |
|
185 |
|
186 /** |
|
187 * TestBAExcludeAnimationFramesFromCacheL test function for testing the |
|
188 * ExcludeAnimationFramesFromCache function |
|
189 * @since S60 5.0 |
|
190 * @param aItem never used |
|
191 * @return Symbian OS error code. |
|
192 */ |
|
193 virtual TInt TestBAExcludeAnimationFramesFromCacheL( CStifItemParser& aItem ); |
|
194 |
|
195 /** |
|
196 * TestBAConstructFromSkinL test function for testing the |
|
197 * ConstructFromSkinL function |
|
198 * @since S60 5.0 |
|
199 * @param aItem never used |
|
200 * @return Symbian OS error code. |
|
201 */ |
|
202 virtual TInt TestBAConstructFromSkinL( CStifItemParser& aItem ); |
|
203 |
|
204 /** |
|
205 * TestBAConstructFromResourceL test function for testing the |
|
206 * ConstructFromResourceL function |
|
207 * @since S60 5.0 |
|
208 * @param aItem never used |
|
209 * @return Symbian OS error code. |
|
210 */ |
|
211 virtual TInt TestBAConstructFromResourceL( CStifItemParser& aItem ); |
|
212 |
|
213 /** |
|
214 * TestBAMinimumSizeL test function for testing the |
|
215 * MinimumSize function |
|
216 * @since S60 5.0 |
|
217 * @param aItem never used |
|
218 * @return Symbian OS error code. |
|
219 */ |
|
220 virtual TInt TestBAMinimumSizeL( CStifItemParser& aItem ); |
|
221 |
|
222 private: // Data |
|
223 |
|
224 TInt iOldScreenSaverProperty; |
|
225 |
|
226 // Resource file offset |
|
227 TInt iOffset; |
|
228 }; |
|
229 |
|
230 #endif // C_TESTSDKANIMATION_H |
|
231 |
|
232 // End of File |