|
1 /* |
|
2 * Copyright (c) 2009 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 __UT_MCSSETTINGS_H__ |
|
20 #define __UT_MCSSETTINGS_H__ |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <digia/eunit/ceunittestsuiteclass.h> |
|
24 #include <apgcli.h> //RApaLsSession |
|
25 #include <w32std.h> // For RWsSession |
|
26 #include <hscontentpublisher.h> |
|
27 #include <mcsmenu.h> |
|
28 #include <mcsmenuitem.h> |
|
29 |
|
30 #include "mcspluginwatcher.h" |
|
31 |
|
32 // INTERNAL INCLUDES |
|
33 |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 class CAiScutSettingsItem; |
|
37 class CMCSPluginSettings; |
|
38 class TMCSPluginParser; |
|
39 class MAiAppListObserver; |
|
40 class CMCSPluginSettingsContainer; |
|
41 class CMCSPluginSettingsAppList; |
|
42 class CMCSPluginSettingsBkmList; |
|
43 class CMCSPluginSettingsModel; |
|
44 class CMCSPluginTargetShutter; |
|
45 class CGSPluginInterface; |
|
46 class CGSBaseView; |
|
47 class CAknView; |
|
48 class CAknViewAppUi; |
|
49 class CMCSMenu; |
|
50 class CActiveSchedulerWait; |
|
51 |
|
52 #include <e32def.h> |
|
53 #ifndef NONSHARABLE_CLASS |
|
54 #define NONSHARABLE_CLASS(x) class x |
|
55 #endif |
|
56 |
|
57 // CLASS DEFINITION |
|
58 /** |
|
59 * |
|
60 * EUnitWizard generated test class. |
|
61 * |
|
62 */ |
|
63 NONSHARABLE_CLASS( UT_mcssettings ) : public CEUnitTestSuiteClass |
|
64 { |
|
65 |
|
66 enum TBookmarkType |
|
67 { |
|
68 EFavBookmark, |
|
69 EMCSBookmark |
|
70 }; |
|
71 |
|
72 |
|
73 public: // Constructors and destructors |
|
74 |
|
75 /** |
|
76 * Two phase construction |
|
77 */ |
|
78 static UT_mcssettings* NewL(); |
|
79 static UT_mcssettings* NewLC(); |
|
80 /** |
|
81 * Destructor |
|
82 */ |
|
83 ~UT_mcssettings(); |
|
84 |
|
85 private: // Constructors and destructors |
|
86 |
|
87 UT_mcssettings(); |
|
88 void ConstructL(); |
|
89 |
|
90 public: // From observer interface |
|
91 |
|
92 |
|
93 |
|
94 private: // New methods |
|
95 |
|
96 void SetupL(); |
|
97 |
|
98 void SetupAppListL(); |
|
99 |
|
100 void emptySetup(); |
|
101 |
|
102 void Teardown(); |
|
103 |
|
104 void TeardownAppList(); |
|
105 |
|
106 void UT_Settings_FailL(); |
|
107 |
|
108 void UT_Settings_NewLL(); |
|
109 |
|
110 void UT_Settings_IdL(); |
|
111 |
|
112 void UT_Settings_HandleCommandLL(); |
|
113 |
|
114 void UT_Settings_DoDeactivateL(); |
|
115 |
|
116 void UT_Settings_GetCaptionLL(); |
|
117 |
|
118 void UT_Settings_PluginProviderCategoryL(); |
|
119 |
|
120 void UT_Settings_VisibleL(); |
|
121 |
|
122 void UT_SettingsAppList_NewLL(); |
|
123 |
|
124 void UT_SettingsAppList_MdcaCountL(); |
|
125 |
|
126 void UT_SettingsAppList_MdcaPointL(); |
|
127 |
|
128 void UT_SettingsAppList_HandleSessionEventLL(); |
|
129 |
|
130 void UT_mcssettings::SetupBkmListL(); |
|
131 |
|
132 void UT_mcssettings::TeardownBkmList(); |
|
133 |
|
134 void UT_mcssettings::UT_SettingsBkmList_NewLL(); |
|
135 |
|
136 void UT_mcssettings::UT_SettingsBkmList_MdcaCountL(); |
|
137 |
|
138 void UT_mcssettings::UT_SettingsBkmList_MdcaPointL(); |
|
139 |
|
140 void UT_SettingsContainer_CMCSPluginSettingsContainerL(); |
|
141 |
|
142 void UT_SettingsContainer_IsChangeDialogShowingL(); |
|
143 |
|
144 void UT_SettingsContainer_CloseChangeDialogL(); |
|
145 |
|
146 void UT_SettingsModel_NewLL(); |
|
147 |
|
148 void UT_SettingsModel_MdcaCountL(); |
|
149 |
|
150 void UT_SettingsModel_MdcaPointL(); |
|
151 |
|
152 void UT_SettingsModel_ItemL(); |
|
153 |
|
154 void UT_mcssettings::UT_SettingsModel_BkmListL(); |
|
155 |
|
156 void UT_SettingsAppList_ItemL(); |
|
157 |
|
158 void UT_SettingsAppList_FindItemL(); |
|
159 |
|
160 void UT_SettingsBkmList_ItemL(); |
|
161 |
|
162 void UT_SettingsBkmList_FindItemL(); |
|
163 |
|
164 void UT_SettingsContainer_HandleNotifyL(); |
|
165 |
|
166 void UT_SettingsContainer_ResetCurrrentListL(); |
|
167 |
|
168 void UT_SettingsModel_BkmList(); |
|
169 |
|
170 void UT_SettingsModel_AppList(); |
|
171 |
|
172 void UT_SettingsModel_Item(); |
|
173 |
|
174 void UT_SettingsModel_ItemId(); |
|
175 |
|
176 void UT_SettingsModel_ReplaceItemL(); |
|
177 |
|
178 void SetupModelL(); |
|
179 |
|
180 void SetupContainerL(); |
|
181 |
|
182 void TeardownContainer(); |
|
183 |
|
184 void UT_SettingsBkmList_MCSMenuItemL(); |
|
185 |
|
186 void UT_SettingsModel_UndefinedText(); |
|
187 |
|
188 void UT_SettingsContainer_HandleHelpCommandL(); |
|
189 |
|
190 |
|
191 private: // Data |
|
192 |
|
193 CAknViewAppUi* iAppUi; |
|
194 CGSPluginInterface* iGs; |
|
195 CGSBaseView* iSettingsView; |
|
196 CMCSPluginSettingsModel* iModel; |
|
197 CMCSPluginSettingsContainer* iContainer; |
|
198 CMCSPluginSettingsAppList* iAppList; |
|
199 CMCSPluginSettingsBkmList* iBkmList; |
|
200 TUid iId; |
|
201 RPointerArray<CAiScutSettingsItem> iItemArray; |
|
202 CMCSPluginWatcher* iRemoveWatcher; |
|
203 CMCSPluginWatcher* iSaveWatcher; |
|
204 RMenu iMenu; |
|
205 |
|
206 EUNIT_DECLARE_TEST_TABLE; |
|
207 |
|
208 }; |
|
209 |
|
210 #endif // __UT_MCSSETTINGS_H__ |
|
211 |
|
212 // End of file |