|
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: CAlfPerfAppLayoutTestCase class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_ALFPERFAPPLAYOUTTESTCASE_H |
|
20 #define C_ALFPERFAPPLAYOUTTESTCASE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "alfperfapptestcase.h" |
|
24 |
|
25 class CAlfPerfAppBaseTestCaseControl; |
|
26 |
|
27 /** |
|
28 * CAlfPerfAppLayoutTestCase class. |
|
29 */ |
|
30 class CAlfPerfAppLayoutTestCase : 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 CAlfPerfAppLayoutTestCase* NewL( TInt aCaseId, TInt aSequenceIndex ); |
|
41 ~CAlfPerfAppLayoutTestCase(); |
|
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 private: |
|
54 |
|
55 CAlfPerfAppLayoutTestCase( TInt aCaseId, TInt aSequenceIndex ); |
|
56 void ConstructL(); |
|
57 |
|
58 private: |
|
59 /** |
|
60 * Test case of which execution this instance was created. |
|
61 */ |
|
62 TInt iCaseId; |
|
63 |
|
64 /** |
|
65 * Alf environment. |
|
66 * Not owned. |
|
67 */ |
|
68 CAlfEnv* iEnv; |
|
69 |
|
70 /** |
|
71 * Test case control. |
|
72 * Not owned. |
|
73 */ |
|
74 CAlfPerfAppBaseTestCaseControl* iControl; |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // C_ALFPERFAPPLAYOUTTESTCASE_H |
|
79 |