|
1 /* |
|
2 * Copyright (c) 2008 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: alfperfapp image test case class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_ALFPERFAPPIMAGETESTCASE_H |
|
20 #define C_ALFPERFAPPIMAGETESTCASE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "alfperfapptestcase.h" |
|
24 |
|
25 class CAlfPerfAppBaseTestCaseControl; |
|
26 |
|
27 /** |
|
28 * CAlfPerfAppImageTestCase class. |
|
29 */ |
|
30 class CAlfPerfAppImageTestCase : public CAlfPerfAppTestCase |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Returns ETrue if test case is supported. |
|
35 * @param aCaseId test case id. |
|
36 * @return ETrue if supported. |
|
37 */ |
|
38 static TBool IsSupported( TInt aCaseId ); |
|
39 |
|
40 static CAlfPerfAppImageTestCase* NewL( TInt aCaseId, TInt aSequenceIndex ); |
|
41 ~CAlfPerfAppImageTestCase(); |
|
42 |
|
43 // From base class CAlfPerfAppTestCase: |
|
44 virtual void SetupL( |
|
45 CAlfEnv& aEnv, |
|
46 const TRect& aVisibleArea, |
|
47 TRequestStatus& aStatus ); |
|
48 virtual void ExecuteL( TRequestStatus& aStatus ); |
|
49 virtual void TearDown(); |
|
50 virtual void HandleVisibleAreaChange( const TRect& aRect ); |
|
51 virtual TInt CaseID(); |
|
52 |
|
53 TTestCaseSpecificResultText getCaseSpecificResultL(); |
|
54 |
|
55 private: |
|
56 |
|
57 CAlfPerfAppImageTestCase( TInt aCaseId, TInt aSequenceIndex); |
|
58 void ConstructL(); |
|
59 |
|
60 private: |
|
61 /** |
|
62 * Test case of which execution this instance was created. |
|
63 */ |
|
64 TInt iCaseId; |
|
65 |
|
66 /** |
|
67 * Alf environment. |
|
68 * Not owned. |
|
69 */ |
|
70 CAlfEnv* iEnv; |
|
71 |
|
72 /** |
|
73 * Test case control. |
|
74 * Not owned. |
|
75 */ |
|
76 CAlfPerfAppBaseTestCaseControl* iControl; |
|
77 |
|
78 /* |
|
79 * Total Visual Count, used only with sequence cases |
|
80 */ |
|
81 TInt iTotalVisualCount; |
|
82 TInt iAnimationDivider; |
|
83 }; |
|
84 |
|
85 #endif // C_ALFPERFAPPIMAGETESTCASE_H |
|
86 |