|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __T_GLXRESOLUTIONUTILITIY_H__ |
|
21 #define __T_GLXRESOLUTIONUTILITIY_H__ |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <CEUnitTestSuiteClass.h> |
|
25 #include <EUnitDecorators.h> |
|
26 |
|
27 |
|
28 // INTERNAL INCLUDES |
|
29 #include "mglxresolutionchangeobserver.h" |
|
30 |
|
31 #include "glxresolutionmanager.h" |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class CGlxHuiUtility; |
|
35 class CGlxResolutionUtility; |
|
36 |
|
37 |
|
38 // CLASS DEFINITION |
|
39 /** |
|
40 * TODO Auto-generated EUnit test suite |
|
41 * |
|
42 */ |
|
43 NONSHARABLE_CLASS( T_CGlxResolutionUtility ) |
|
44 : public CEUnitTestSuiteClass, |
|
45 public MGlxResolutionChangeObserver |
|
46 { |
|
47 public: // Constructors and destructors |
|
48 |
|
49 /** |
|
50 * Two phase construction |
|
51 */ |
|
52 static T_CGlxResolutionUtility* NewL(); |
|
53 static T_CGlxResolutionUtility* NewLC(); |
|
54 /** |
|
55 * Destructor |
|
56 */ |
|
57 ~T_CGlxResolutionUtility(); |
|
58 |
|
59 |
|
60 void HandleResolutionChanged (); |
|
61 |
|
62 private: // Constructors and destructors |
|
63 |
|
64 T_CGlxResolutionUtility(); |
|
65 void ConstructL(); |
|
66 |
|
67 private: // New methods |
|
68 |
|
69 void SetupL(); |
|
70 void Teardown(); |
|
71 void T_TestTvConnectedL(); |
|
72 |
|
73 private: // Data |
|
74 |
|
75 CGlxResolutionUtility* iResolutionUtility; |
|
76 CGlxResolutionManager* iResolutionMgr; |
|
77 TSize iSize; |
|
78 TReal32 iExpectedHeightPoss; |
|
79 TReal32 iExpectedWidthPoss; |
|
80 |
|
81 EUNIT_DECLARE_TEST_TABLE; |
|
82 }; |
|
83 |
|
84 #endif // __T_GLXRESOLUTIONUTILITIY_H__ |
|
85 |
|
86 // End of file |