|
1 /* |
|
2 * Copyright (c) 2004 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 #ifndef __MT_AIFW_H__ |
|
20 #define __MT_AIFW_H__ |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <CEUnitTestSuiteClass.h> |
|
24 #include "AiFwTestControllerPlugin.h" |
|
25 #include "aiuiframeworkobserver.h" |
|
26 |
|
27 // INTERNAL INCLUDES |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 class CAiFw; |
|
33 class CAiFwTestContentPlugin; |
|
34 |
|
35 #include <e32def.h> |
|
36 #ifndef NONSHARABLE_CLASS |
|
37 #define NONSHARABLE_CLASS(x) class x |
|
38 #endif |
|
39 |
|
40 // CLASS DEFINITION |
|
41 /** |
|
42 * |
|
43 * EUnitWizard generated test class. |
|
44 * |
|
45 */ |
|
46 NONSHARABLE_CLASS( MT_aifw ) |
|
47 : public CEUnitTestSuiteClass, |
|
48 public MAiUiFrameworkObserver |
|
49 { |
|
50 public: // Constructors and destructors |
|
51 |
|
52 /** |
|
53 * Two phase construction |
|
54 */ |
|
55 static MT_aifw* NewL(); |
|
56 static MT_aifw* NewLC(); |
|
57 /** |
|
58 * Destructor |
|
59 */ |
|
60 ~MT_aifw(); |
|
61 |
|
62 private: // Constructors and destructors |
|
63 |
|
64 MT_aifw(); |
|
65 void ConstructL(); |
|
66 |
|
67 public: // From observer interface |
|
68 |
|
69 void HandleResourceChange( TInt /*aType*/ ) |
|
70 { |
|
71 }; |
|
72 |
|
73 void HandleForegroundEvent( TBool /*aForeground*/ ) |
|
74 { |
|
75 }; |
|
76 |
|
77 |
|
78 private: // New methods |
|
79 |
|
80 void SetupL(); |
|
81 |
|
82 void Teardown(); |
|
83 |
|
84 void TestStartupL(); |
|
85 |
|
86 void TestSubscriptionL(); |
|
87 |
|
88 void TestStartupResumeL(); |
|
89 |
|
90 void TestUiActivationL(); |
|
91 |
|
92 void TestUiDefinitionLoadL(); |
|
93 |
|
94 void TestSettingsPassingL(); |
|
95 |
|
96 void TestEventForwardingL(); |
|
97 |
|
98 private: // Data |
|
99 |
|
100 EUNIT_DECLARE_TEST_TABLE; |
|
101 |
|
102 CAiFw* iFramework; |
|
103 |
|
104 AiTestUiController::CAiFwTestControllerPlugin* iControllerPlugin; |
|
105 |
|
106 CAiFwTestContentPlugin* iContentPlugin; |
|
107 |
|
108 }; |
|
109 |
|
110 #endif // __MT_AIFW_H__ |
|
111 |
|
112 // End of file |