author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 21:55:16 +0300 | |
branch | RCL_3 |
changeset 31 | 8baec10861af |
parent 30 | a5a39a295112 |
permissions | -rw-r--r-- |
30 | 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: Implementation of MT_CHSPSConfigurationIf class |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#include <s32mem.h> |
|
19 |
#include <digia/eunit/eunitmacros.h> |
|
20 |
#include <digia/eunit/eunitdecorators.h> |
|
21 |
#include <digia/eunit/eunituids.h> |
|
22 |
#include <apgtask.h> |
|
23 |
#include <eikenv.h> |
|
24 |
#include <centralrepository.h> |
|
25 |
#include <bautils.h> |
|
31
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
26 |
#include <driveinfo.h> |
30 | 27 |
#include "mt_hspsconfigurationif.h" |
28 |
#include "mt_hspsliwlistprinter.h" |
|
29 |
#include "mt_hspsinstallationservice.h" |
|
30 |
||
31 |
#include "liwgenericparam.hrh" |
|
32 |
||
33 |
// get active app conf |
|
34 |
#include "mt_hsps_getactiveappconf_1.h" |
|
35 |
#include "mt_hsps_getactiveappconf_2.h" |
|
36 |
#include "mt_hsps_getactiveappconf_3.h" |
|
37 |
// get plugin conf |
|
38 |
#include "mt_hsps_getpluginconf_1.h" |
|
39 |
#include "mt_hsps_getpluginconf_2.h" |
|
40 |
#include "mt_hsps_getpluginconf_3.h" |
|
41 |
#include "mt_hsps_getpluginconf_4.h" |
|
42 |
#include "mt_hsps_getpluginconf_5.h" |
|
43 |
// get plugins |
|
44 |
#include "mt_hsps_getplugins_1.h" |
|
45 |
#include "mt_hsps_getplugins_2.h" |
|
46 |
#include "mt_hsps_getplugins_3.h" |
|
47 |
#include "mt_hsps_getplugins_4.h" |
|
48 |
#include "mt_hsps_getplugins_5.h" |
|
49 |
#include "mt_hsps_getplugins_6.h" |
|
50 |
#include "mt_hsps_getplugins_7.h" |
|
51 |
#include "mt_hsps_getplugins_8.h" |
|
52 |
// get plugin list |
|
53 |
#include "mt_hsps_getpluginlist_1.h" |
|
54 |
#include "mt_hsps_getpluginlist_2.h" |
|
55 |
#include "mt_hsps_getpluginlist_3.h" |
|
56 |
#include "mt_hsps_getpluginlist_4.h" |
|
57 |
#include "mt_hsps_getpluginlist_5.h" |
|
58 |
#include "mt_hsps_getpluginlist_6.h" |
|
59 |
#include "mt_hsps_getpluginlist_7.h" |
|
60 |
#include "mt_hsps_getpluginlist_8.h" |
|
61 |
// add plugin |
|
62 |
#include "mt_hsps_addplugin_1.h" |
|
63 |
#include "mt_hsps_addplugin_2.h" |
|
64 |
#include "mt_hsps_addplugin_3.h" |
|
65 |
#include "mt_hsps_addplugin_4.h" |
|
66 |
#include "mt_hsps_addplugin_5.h" |
|
67 |
#include "mt_hsps_addplugin_6.h" |
|
68 |
#include "mt_hsps_addplugin_7.h" |
|
69 |
#include "mt_hsps_addplugin_8.h" |
|
70 |
#include "mt_hsps_addplugin_9.h" |
|
71 |
#include "mt_hsps_addplugin_10.h" |
|
72 |
#include "mt_hsps_addplugin_11.h" |
|
73 |
// remove plugin |
|
74 |
#include "mt_hsps_removeplugin_1.h" |
|
75 |
#include "mt_hsps_removeplugin_2.h" |
|
76 |
#include "mt_hsps_removeplugin_3.h" |
|
77 |
#include "mt_hsps_removeplugin_4.h" |
|
78 |
// set plugin settings |
|
79 |
#include "mt_hsps_setpluginsettings_1.h" |
|
80 |
#include "mt_hsps_setpluginsettings_2.h" |
|
81 |
#include "mt_hsps_setpluginsettings_3.h" |
|
82 |
#include "mt_hsps_setpluginsettings_4.h" |
|
83 |
#include "mt_hsps_setpluginsettings_5.h" |
|
84 |
#include "mt_hsps_setpluginsettings_6.h" |
|
85 |
// get plugin setting |
|
86 |
#include "mt_hsps_getpluginsettings_1.h" |
|
87 |
#include "mt_hsps_getpluginsettings_2.h" |
|
88 |
#include "mt_hsps_getpluginsettings_3.h" |
|
89 |
// mvoe plugins |
|
90 |
#include "mt_hsps_moveplugins_1.h" |
|
91 |
#include "mt_hsps_moveplugins_2.h" |
|
92 |
#include "mt_hsps_moveplugins_3.h" |
|
93 |
#include "mt_hsps_moveplugins_4.h" |
|
94 |
#include "mt_hsps_moveplugins_5.h" |
|
95 |
#include "mt_hsps_moveplugins_6.h" |
|
96 |
// replace plugin |
|
97 |
#include "mt_hsps_replaceplugin_1.h" |
|
98 |
// get app confs |
|
99 |
#include "mt_hsps_getappconfs_1.h" |
|
100 |
// set app confs |
|
101 |
#include "mt_hsps_setactiveappconf_1.h" |
|
102 |
#include "mt_hsps_setactiveappconf_2.h" |
|
103 |
#include "mt_hsps_setactiveappconf_3.h" |
|
104 |
#include "mt_hsps_setactiveappconf_4.h" |
|
105 |
// request notification |
|
106 |
#include "mt_hsps_requestnotify_1.h" |
|
107 |
#include "mt_hsps_requestnotify_2.h" |
|
108 |
#include "mt_hsps_requestnotify_3.h" |
|
109 |
#include "mt_hsps_requestnotify_4.h" |
|
110 |
#include "mt_hsps_requestnotify_5.h" |
|
111 |
#include "mt_hsps_requestnotify_6.h" |
|
112 |
// set active plugin |
|
113 |
#include "mt_hsps_setactiveplugin_1.h" |
|
114 |
#include "mt_hsps_setactiveplugin_2.h" |
|
115 |
#include "mt_hsps_setactiveplugin_3.h" |
|
116 |
#include "mt_hsps_setactiveplugin_4.h" |
|
117 |
#include "mt_hsps_setactiveplugin_5.h" |
|
118 |
#include "mt_hsps_setactiveplugin_6.h" |
|
119 |
// restore configurations |
|
120 |
#include "mt_hsps_restoreconfigurations_1.h" |
|
121 |
// customizations |
|
122 |
#include "mt_hsps_customization_1.h" |
|
123 |
// restoractiveeappconf |
|
124 |
#include "mt_hsps_restoreactiveappconf_1.h" |
|
125 |
#include "mt_hsps_restoreactiveappconf_2.h" |
|
126 |
||
127 |
// ======== LOCAL CONSTANTS ==================================================== |
|
128 |
||
129 |
// Resource files copied by minimal configuration. |
|
130 |
_LIT( KMinimalResourceFile1, "c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\main.xml" ); |
|
131 |
_LIT( KMinimalResourceFile2, "c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\viewnavigationrules.xml" ); |
|
132 |
_LIT( KMinimalResourceFile3, "c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\resource.file" ); |
|
133 |
_LIT( KMinimalResourceFile4, "c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\picture.jpeg" ); |
|
134 |
_LIT( KFinnishMifLogo, "c:\\private\\20000fb1\\2456\\270513751\\536916274\\1.0\\sources\\dummy.mif" ); |
|
135 |
||
31
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
136 |
const TInt16 KletterA = 'a'; // ASCII code for 'a' |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
137 |
|
30 | 138 |
// ======== LOCAL FUNCTIONS ==================================================== |
139 |
||
31
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
140 |
//------------------------------------------------------------------------------ |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
141 |
// EMMC drive finder - from hspsServerUtil |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
142 |
//------------------------------------------------------------------------------ |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
143 |
TInt GetEmmcDrivePath( ) |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
144 |
{ |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
145 |
RFs fs; |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
146 |
if ( fs.Connect() != KErrNone ) |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
147 |
{ |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
148 |
return KErrNotFound; |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
149 |
} |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
150 |
TInt drive = KErrNotFound; |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
151 |
if ( DriveInfo::GetDefaultDrive( |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
152 |
DriveInfo::EDefaultMassStorage, drive ) == KErrNone ) |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
153 |
{ |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
154 |
TUint status; |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
155 |
if ( DriveInfo::GetDriveStatus( fs, drive, status ) == KErrNone ) |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
156 |
{ |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
157 |
if ( status & DriveInfo::EDriveInternal ) |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
158 |
{ |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
159 |
fs.Close(); |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
160 |
return drive; |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
161 |
} |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
162 |
} |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
163 |
} |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
164 |
fs.Close(); |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
165 |
return KErrNotFound; |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
166 |
} |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
167 |
|
30 | 168 |
// ======== MEMBER FUNCTIONS =================================================== |
169 |
||
170 |
//------------------------------------------------------------------------------ |
|
171 |
// Two-phased constructor. |
|
172 |
//------------------------------------------------------------------------------ |
|
173 |
MT_CHSPSConfigurationIf* MT_CHSPSConfigurationIf::NewL() |
|
174 |
{ |
|
175 |
MT_CHSPSConfigurationIf* self = new( ELeave ) MT_CHSPSConfigurationIf(); |
|
176 |
CleanupStack::PushL( self ); |
|
177 |
self->ConstructL(); |
|
178 |
CleanupStack::Pop( self ); |
|
179 |
||
180 |
return self; |
|
181 |
} |
|
182 |
||
183 |
//------------------------------------------------------------------------------ |
|
184 |
// Destructor. |
|
185 |
//------------------------------------------------------------------------------ |
|
186 |
MT_CHSPSConfigurationIf::~MT_CHSPSConfigurationIf() |
|
187 |
{ |
|
188 |
iFileserver.Close(); |
|
189 |
} |
|
190 |
||
191 |
//------------------------------------------------------------------------------ |
|
192 |
// Constructor |
|
193 |
//------------------------------------------------------------------------------ |
|
194 |
MT_CHSPSConfigurationIf::MT_CHSPSConfigurationIf() |
|
195 |
{ |
|
196 |
} |
|
197 |
||
198 |
//------------------------------------------------------------------------------ |
|
199 |
// Symbian Constructor |
|
200 |
//------------------------------------------------------------------------------ |
|
201 |
void MT_CHSPSConfigurationIf::ConstructL() |
|
202 |
{ |
|
203 |
// The ConstructL from the base class CEUnitTestSuiteClass must be called. |
|
204 |
// It generates the test case table. |
|
205 |
CEUnitTestSuiteClass::ConstructL(); |
|
206 |
||
207 |
User::LeaveIfError( iFileserver.Connect() ); |
|
208 |
} |
|
209 |
||
210 |
//------------------------------------------------------------------------------ |
|
211 |
// Remove resources from client's private folder |
|
212 |
//------------------------------------------------------------------------------ |
|
213 |
void MT_CHSPSConfigurationIf::ResetClientFolderL() |
|
214 |
{ |
|
215 |
// Remove all resource files from the test client's private folder (files are |
|
216 |
// copied back when an application configuration is fecthed) |
|
217 |
_LIT( KClientFolder, "c:\\private\\102750f0\\"); |
|
218 |
TFileName folderPath; |
|
219 |
folderPath.Copy( KClientFolder ); |
|
220 |
if( BaflUtils::FolderExists( iFileserver, folderPath ) ) |
|
221 |
{ |
|
222 |
CFileMan* fileMan = CFileMan::NewL( iFileserver ); |
|
223 |
CleanupStack::PushL( fileMan ); |
|
224 |
||
225 |
folderPath.Append( _L("2456\\") ); |
|
226 |
if( BaflUtils::FolderExists( iFileserver, folderPath ) ) |
|
227 |
{ |
|
228 |
User::LeaveIfError( fileMan->RmDir( folderPath ) ); |
|
229 |
} |
|
230 |
||
231 |
folderPath.Copy( KClientFolder ); |
|
232 |
folderPath.Append( _L("271012080\\") ); |
|
233 |
if( BaflUtils::FolderExists( iFileserver, folderPath ) ) |
|
234 |
{ |
|
235 |
User::LeaveIfError( fileMan->RmDir( folderPath ) ); |
|
236 |
} |
|
237 |
||
238 |
CleanupStack::PopAndDestroy( fileMan ); |
|
239 |
} |
|
240 |
} |
|
241 |
||
242 |
//------------------------------------------------------------------------------ |
|
243 |
// Initialize test case |
|
244 |
//------------------------------------------------------------------------------ |
|
245 |
void MT_CHSPSConfigurationIf::SetupL() |
|
246 |
{ |
|
247 |
MT_CHspsInstallationService* installationService = MT_CHspsInstallationService::NewL(); |
|
248 |
CleanupStack::PushL( installationService ); |
|
249 |
||
250 |
// Uninstall possible test configurations |
|
251 |
installationService->UninstallConfigurationL( KHSPSMTAppUid, KHSPSActiveConfMinimal ); |
|
252 |
installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSMinimalViewConf ); |
|
253 |
installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSMinimalWidgetConf ); |
|
254 |
installationService->UninstallConfigurationL( KHSPSMTAppUid, KHSPSActiveConfTypical ); |
|
255 |
installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSTypicalView1Conf ); |
|
256 |
installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSTypicalView2Conf ); |
|
257 |
installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSTypicalWidgetConf ); |
|
258 |
installationService->UninstallConfigurationL( KHSPSMTAppUid, KHSPSActiveConfOperator ); |
|
259 |
installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSOperatorViewConf ); |
|
260 |
installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSFinnishWidgetConf ); |
|
261 |
installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSInstalledWidgetConf ); |
|
262 |
||
263 |
// Remove test configurations from import & install folder at C drive |
|
264 |
CFileMan* fileManager = CFileMan::NewL( iFileserver ); |
|
265 |
CleanupStack::PushL( fileManager ); |
|
266 |
fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133.dat" ) ); |
|
267 |
fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ); |
|
268 |
fileManager->RmDir( _L( "d:\\data\\mt_hsps\\installed_widget\\widgetconfiguration.xml" ) ); |
|
269 |
CleanupStack::PopAndDestroy( fileManager ); |
|
270 |
||
271 |
// Install test configurations |
|
272 |
installationService->InstallConfigurationL( KHSPSInstallMinimalRootConf ); |
|
273 |
installationService->InstallConfigurationL( KHSPSInstallMinimalViewConf ); |
|
274 |
installationService->InstallConfigurationL( KHSPSInstallMinimalWidgetConf ); |
|
275 |
installationService->InstallConfigurationL( KHSPSInstallTypicalRootConf ); |
|
276 |
installationService->InstallConfigurationL( KHSPSInstallTypicalView1Conf ); |
|
277 |
installationService->InstallConfigurationL( KHSPSInstallTypicalView2Conf ); |
|
278 |
installationService->InstallConfigurationL( KHSPSInstallTypicalWidgetConf ); |
|
279 |
installationService->InstallConfigurationL( KHSPSInstallOperatorRootConf ); |
|
280 |
installationService->InstallConfigurationL( KHSPSInstallOperatorViewConf ); |
|
281 |
installationService->InstallConfigurationL( KHSPSInstallFinnishWidgetConf ); |
|
282 |
||
283 |
CleanupStack::PopAndDestroy( installationService ); |
|
284 |
ResetResources(); |
|
285 |
} |
|
286 |
||
287 |
//------------------------------------------------------------------------------ |
|
288 |
// Deinitialize test case |
|
289 |
//------------------------------------------------------------------------------ |
|
290 |
void MT_CHSPSConfigurationIf::Teardown() |
|
291 |
{ |
|
292 |
// Detach from HSPS |
|
293 |
TRAPD( err, DetachServiceL() ); |
|
294 |
// Remove test configuration resource files |
|
295 |
TRAP( err, RemoveResourceFilesL( iFileserver ) ); |
|
296 |
if ( err != KErrNone ) |
|
297 |
{ |
|
298 |
EUNIT_FAIL_TEST( "Teardown failed." ); |
|
299 |
} |
|
300 |
} |
|
301 |
||
302 |
//------------------------------------------------------------------------------ |
|
303 |
// Prints liw list to a file. |
|
304 |
//------------------------------------------------------------------------------ |
|
305 |
void MT_CHSPSConfigurationIf::PrintReturnValuesL( |
|
306 |
CLiwGenericParamList& aOutParamList ) |
|
307 |
{ |
|
308 |
CHspsLiwListPrinter* printer = CHspsLiwListPrinter::NewLC(); |
|
309 |
printer->PrintLiwListL( aOutParamList ); |
|
310 |
CleanupStack::PopAndDestroy( printer ); |
|
311 |
} |
|
312 |
||
313 |
//------------------------------------------------------------------------------ |
|
314 |
// Test case: GetActiveAppConf(1) |
|
315 |
//------------------------------------------------------------------------------ |
|
316 |
void MT_CHSPSConfigurationIf::GetActiveAppConf_1_L() |
|
317 |
{ |
|
318 |
// Pre conditions |
|
319 |
//---------------------------------------------------------------- |
|
320 |
||
321 |
// Remove old resources |
|
322 |
ResetClientFolderL(); |
|
323 |
// Set active configuration to Minimal configuration |
|
324 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
325 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
326 |
// Attach to HSPS |
|
327 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
328 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
329 |
||
330 |
// Test step 1 |
|
331 |
//---------------------------------------------------------------- |
|
332 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
333 |
RunTestStepSyncL( |
|
334 |
( TUint8* )getactiveappconf_1_ts_1_method, |
|
335 |
( TUint8* )getactiveappconf_1_ts_1_input, |
|
336 |
( TUint8* )getactiveappconf_1_ts_1_output, |
|
337 |
ETrue ); |
|
338 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
339 |
||
340 |
// Test step 2 |
|
341 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
342 |
RunTestStepSyncL( |
|
343 |
( TUint8* )getactiveappconf_1_ts_2_method, |
|
344 |
( TUint8* )getactiveappconf_1_ts_2_input, |
|
345 |
( TUint8* )getactiveappconf_1_ts_2_output, |
|
346 |
ETrue ); |
|
347 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
348 |
||
349 |
// Test step 3 |
|
350 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
351 |
RunTestStepSyncL( |
|
352 |
( TUint8* )getactiveappconf_1_ts_3_method, |
|
353 |
( TUint8* )getactiveappconf_1_ts_3_input, |
|
354 |
( TUint8* )getactiveappconf_1_ts_3_output ); |
|
355 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
356 |
||
357 |
// Test step 4 |
|
358 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
359 |
EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
360 |
DetachServiceL(); |
|
361 |
EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
362 |
SetCentralRepositoryKeyL( 100000003, 1 ); |
|
363 |
EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
364 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
365 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
366 |
||
367 |
// Test step 5 |
|
368 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
369 |
RunTestStepSyncL( |
|
370 |
( TUint8* )getactiveappconf_1_ts_5_method, |
|
371 |
( TUint8* )getactiveappconf_1_ts_5_input, |
|
372 |
( TUint8* )getactiveappconf_1_ts_5_output ); |
|
373 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
374 |
||
375 |
// post condition check. |
|
376 |
//---------------------------------------------------------------- |
|
377 |
EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
378 |
ResetResources(); |
|
379 |
AddResourceL( KMinimalResourceFile1, 136 ); |
|
380 |
AddResourceL( KMinimalResourceFile2, 17 ); |
|
381 |
AddResourceL( KMinimalResourceFile3, 17 ); |
|
382 |
AddResourceL( KMinimalResourceFile4, 18 ); |
|
383 |
CheckResourcesL(); |
|
384 |
EUNIT_PRINT( _L8( "post condition check for resource file copy passed" ) ); |
|
385 |
||
386 |
} |
|
387 |
||
388 |
//------------------------------------------------------------------------------ |
|
389 |
// Test case: GetActiveAppConf(2) |
|
390 |
//------------------------------------------------------------------------------ |
|
391 |
void MT_CHSPSConfigurationIf::GetActiveAppConf_2_L() |
|
392 |
{ |
|
393 |
||
394 |
// Pre conditions |
|
395 |
// Set active configuration to Minimal configuration |
|
396 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
397 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
398 |
// Attach to HSPS |
|
399 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
400 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
401 |
||
402 |
// Test step 1 |
|
403 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
404 |
RunTestStepSyncL( |
|
405 |
( TUint8* )getactiveappconf_2_ts_1_method, |
|
406 |
( TUint8* )getactiveappconf_2_ts_1_input, |
|
407 |
( TUint8* )getactiveappconf_2_ts_1_output ); |
|
408 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
409 |
||
410 |
// Test step 2 |
|
411 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
412 |
RunTestStepSyncL( |
|
413 |
( TUint8* )getactiveappconf_2_ts_2_method, |
|
414 |
( TUint8* )getactiveappconf_2_ts_2_input, |
|
415 |
( TUint8* )getactiveappconf_2_ts_2_output ); |
|
416 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
417 |
||
418 |
// Test step 3 |
|
419 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
420 |
EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
421 |
DetachServiceL(); |
|
422 |
EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
423 |
SetCentralRepositoryKeyL( 100000003, 1 ); |
|
424 |
EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
425 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
426 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
427 |
||
428 |
// Test step 3 |
|
429 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
430 |
RunTestStepSyncL( |
|
431 |
( TUint8* )getactiveappconf_2_ts_4_method, |
|
432 |
( TUint8* )getactiveappconf_2_ts_4_input, |
|
433 |
( TUint8* )getactiveappconf_2_ts_4_output ); |
|
434 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
435 |
||
436 |
} |
|
437 |
||
438 |
//------------------------------------------------------------------------------ |
|
439 |
// Test case: GetActiveAppConf(3) |
|
440 |
//------------------------------------------------------------------------------ |
|
441 |
void MT_CHSPSConfigurationIf::GetActiveAppConf_3_L() |
|
442 |
{ |
|
443 |
||
444 |
// Pre conditions |
|
445 |
// Set active configuration to Typical configuration |
|
446 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
447 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
448 |
// Attach to HSPS |
|
449 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
450 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
451 |
||
452 |
// Test step 1 |
|
453 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
454 |
RunTestStepSyncL( |
|
455 |
( TUint8* )getactiveappconf_3_ts_1_method, |
|
456 |
( TUint8* )getactiveappconf_3_ts_1_input, |
|
457 |
( TUint8* )getactiveappconf_3_ts_1_output ); |
|
458 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
459 |
||
460 |
// Test step 2 |
|
461 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
462 |
RunTestStepSyncL( |
|
463 |
( TUint8* )getactiveappconf_3_ts_2_method, |
|
464 |
( TUint8* )getactiveappconf_3_ts_2_input, |
|
465 |
( TUint8* )getactiveappconf_3_ts_2_output ); |
|
466 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
467 |
||
468 |
// Test step 3 |
|
469 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
470 |
EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
471 |
DetachServiceL(); |
|
472 |
EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
473 |
SetCentralRepositoryKeyL( 100000003, 1 ); |
|
474 |
EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
475 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
476 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
477 |
||
478 |
// Test step 4 |
|
479 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
480 |
RunTestStepSyncL( |
|
481 |
( TUint8* )getactiveappconf_3_ts_4_method, |
|
482 |
( TUint8* )getactiveappconf_3_ts_4_input, |
|
483 |
( TUint8* )getactiveappconf_3_ts_4_output ); |
|
484 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
485 |
||
486 |
} |
|
487 |
||
488 |
//------------------------------------------------------------------------------ |
|
489 |
// Test case: GetPluginConf(1) |
|
490 |
//------------------------------------------------------------------------------ |
|
491 |
void MT_CHSPSConfigurationIf::GetPluginConf_1_L() |
|
492 |
{ |
|
493 |
// Pre conditions |
|
494 |
// Set active configuration to Minimal configuration |
|
495 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
496 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
497 |
// Attach to HSPS |
|
498 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
499 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
500 |
||
501 |
// Test step 1 |
|
502 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
503 |
RunTestStepSyncL( |
|
504 |
( TUint8* )getpluginconf_1_ts_1_method, |
|
505 |
( TUint8* )getpluginconf_1_ts_1_input, |
|
506 |
( TUint8* )getpluginconf_1_ts_1_output, |
|
507 |
ETrue ); |
|
508 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
509 |
||
510 |
// Test step 2 |
|
511 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
512 |
RunTestStepSyncL( |
|
513 |
( TUint8* )getpluginconf_1_ts_2_method, |
|
514 |
( TUint8* )getpluginconf_1_ts_2_input, |
|
515 |
( TUint8* )getpluginconf_1_ts_2_output ); |
|
516 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
517 |
||
518 |
// Test step 3 |
|
519 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
520 |
RunTestStepSyncL( |
|
521 |
( TUint8* )getpluginconf_1_ts_3_method, |
|
522 |
( TUint8* )getpluginconf_1_ts_3_input, |
|
523 |
( TUint8* )getpluginconf_1_ts_3_output ); |
|
524 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
525 |
||
526 |
// Test step 4 |
|
527 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
528 |
EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
529 |
DetachServiceL(); |
|
530 |
EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
531 |
SetCentralRepositoryKeyL( 100000003, 1 ); |
|
532 |
EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
533 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
534 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
535 |
||
536 |
// Test step 5 |
|
537 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
538 |
RunTestStepSyncL( |
|
539 |
( TUint8* )getpluginconf_1_ts_5_method, |
|
540 |
( TUint8* )getpluginconf_1_ts_5_input, |
|
541 |
( TUint8* )getpluginconf_1_ts_5_output ); |
|
542 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
543 |
||
544 |
} |
|
545 |
||
546 |
//------------------------------------------------------------------------------ |
|
547 |
// Test case: GetPluginConf(2) |
|
548 |
//------------------------------------------------------------------------------ |
|
549 |
void MT_CHSPSConfigurationIf::GetPluginConf_2_L() |
|
550 |
{ |
|
551 |
// Pre conditions |
|
552 |
// Set active configuration to Minimal configuration |
|
553 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
554 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
555 |
// Attach to HSPS |
|
556 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
557 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
558 |
||
559 |
// Test step 1 |
|
560 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
561 |
RunTestStepSyncL( |
|
562 |
( TUint8* )getpluginconf_2_ts_1_method, |
|
563 |
( TUint8* )getpluginconf_2_ts_1_input, |
|
564 |
( TUint8* )getpluginconf_2_ts_1_output ); |
|
565 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
566 |
||
567 |
} |
|
568 |
||
569 |
//------------------------------------------------------------------------------ |
|
570 |
// Test case: GetPluginConf(3) |
|
571 |
//------------------------------------------------------------------------------ |
|
572 |
void MT_CHSPSConfigurationIf::GetPluginConf_3_L() |
|
573 |
{ |
|
574 |
// Pre conditions |
|
575 |
// Set active configuration to Minimal configuration |
|
576 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
577 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
578 |
// Attach to HSPS |
|
579 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
580 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
581 |
||
582 |
// Test step 1 |
|
583 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
584 |
RunTestStepSyncL( |
|
585 |
( TUint8* )getpluginconf_3_ts_1_method, |
|
586 |
( TUint8* )getpluginconf_3_ts_1_input, |
|
587 |
( TUint8* )getpluginconf_3_ts_1_output ); |
|
588 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
589 |
||
590 |
} |
|
591 |
||
592 |
//------------------------------------------------------------------------------ |
|
593 |
// Test case: GetPluginConf(4) |
|
594 |
//------------------------------------------------------------------------------ |
|
595 |
void MT_CHSPSConfigurationIf::GetPluginConf_4_L() |
|
596 |
{ |
|
597 |
// Pre conditions |
|
598 |
// Set active configuration to Minimal configuration |
|
599 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
600 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
601 |
// Attach to HSPS |
|
602 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
603 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
604 |
||
605 |
// Test step 1 |
|
606 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
607 |
RunTestStepSyncL( |
|
608 |
( TUint8* )getpluginconf_4_ts_1_method, |
|
609 |
( TUint8* )getpluginconf_4_ts_1_input, |
|
610 |
( TUint8* )getpluginconf_4_ts_1_output ); |
|
611 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
612 |
||
613 |
// Test step 2 |
|
614 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
615 |
RunTestStepSyncL( |
|
616 |
( TUint8* )getpluginconf_4_ts_2_method, |
|
617 |
( TUint8* )getpluginconf_4_ts_2_input, |
|
618 |
( TUint8* )getpluginconf_4_ts_2_output ); |
|
619 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
620 |
||
621 |
// Test step 3 |
|
622 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
623 |
EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
624 |
DetachServiceL(); |
|
625 |
EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
626 |
SetCentralRepositoryKeyL( 100000003, 1 ); |
|
627 |
EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
628 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
629 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
630 |
||
631 |
// Test step 4 |
|
632 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
633 |
RunTestStepSyncL( |
|
634 |
( TUint8* )getpluginconf_4_ts_4_method, |
|
635 |
( TUint8* )getpluginconf_4_ts_4_input, |
|
636 |
( TUint8* )getpluginconf_4_ts_4_output ); |
|
637 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
638 |
||
639 |
} |
|
640 |
||
641 |
//------------------------------------------------------------------------------ |
|
642 |
// Test case: GetPluginConf(5) |
|
643 |
//------------------------------------------------------------------------------ |
|
644 |
void MT_CHSPSConfigurationIf::GetPluginConf_5_L() |
|
645 |
{ |
|
646 |
// Pre conditions |
|
647 |
// Set active configuration to Minimal configuration |
|
648 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
649 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
650 |
// Attach to HSPS |
|
651 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
652 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
653 |
||
654 |
// Test step 1 |
|
655 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
656 |
RunTestStepSyncL( |
|
657 |
( TUint8* )getpluginconf_5_ts_1_method, |
|
658 |
( TUint8* )getpluginconf_5_ts_1_input, |
|
659 |
( TUint8* )getpluginconf_5_ts_1_output ); |
|
660 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
661 |
||
662 |
// Test step 2 |
|
663 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
664 |
RunTestStepSyncL( |
|
665 |
( TUint8* )getpluginconf_5_ts_2_method, |
|
666 |
( TUint8* )getpluginconf_5_ts_2_input, |
|
667 |
( TUint8* )getpluginconf_5_ts_2_output ); |
|
668 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
669 |
||
670 |
// Test step 3 |
|
671 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
672 |
RunTestStepSyncL( |
|
673 |
( TUint8* )getpluginconf_5_ts_3_method, |
|
674 |
( TUint8* )getpluginconf_5_ts_3_input, |
|
675 |
( TUint8* )getpluginconf_5_ts_3_output ); |
|
676 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
677 |
||
678 |
// Test step 4 |
|
679 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
680 |
EUNIT_PRINT( _L8( "DetachServiceL" ) ); |
|
681 |
DetachServiceL(); |
|
682 |
EUNIT_PRINT( _L8( "Set KCenrepKeyCheckConf key" ) ); |
|
683 |
SetCentralRepositoryKeyL( 100000003, 1 ); |
|
684 |
EUNIT_PRINT( _L8( "AttachServiceL" ) ); |
|
685 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
686 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
687 |
||
688 |
// Test step 5 |
|
689 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
690 |
RunTestStepSyncL( |
|
691 |
( TUint8* )getpluginconf_5_ts_5_method, |
|
692 |
( TUint8* )getpluginconf_5_ts_5_input, |
|
693 |
( TUint8* )getpluginconf_5_ts_5_output ); |
|
694 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
695 |
||
696 |
} |
|
697 |
||
698 |
//------------------------------------------------------------------------------ |
|
699 |
// Test case: GetPlugins(1) |
|
700 |
//------------------------------------------------------------------------------ |
|
701 |
void MT_CHSPSConfigurationIf::GetPlugins_1_L() |
|
702 |
{ |
|
703 |
||
704 |
// Pre conditions |
|
705 |
// Set active configuration to Minimal configuration |
|
706 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
707 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
708 |
// Attach to HSPS |
|
709 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
710 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
711 |
||
712 |
// Test step 1 |
|
713 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
714 |
RunTestStepSyncL( |
|
715 |
( TUint8* )getplugins_1_ts_1_method, |
|
716 |
( TUint8* )getplugins_1_ts_1_input, |
|
717 |
( TUint8* )getplugins_1_ts_1_output, |
|
718 |
ETrue ); |
|
719 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
720 |
} |
|
721 |
||
722 |
//------------------------------------------------------------------------------ |
|
723 |
// Test case: GetPlugins(2) |
|
724 |
//------------------------------------------------------------------------------ |
|
725 |
void MT_CHSPSConfigurationIf::GetPlugins_2_L() |
|
726 |
{ |
|
727 |
// Pre conditions |
|
728 |
// Set active configuration to Minimal configuration |
|
729 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
730 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
731 |
// Attach to HSPS |
|
732 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
733 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
734 |
||
735 |
// Test step 1 |
|
736 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
737 |
RunTestStepSyncL( |
|
738 |
( TUint8* )getplugins_2_ts_1_method, |
|
739 |
( TUint8* )getplugins_2_ts_1_input, |
|
740 |
( TUint8* )getplugins_2_ts_1_output ); |
|
741 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
742 |
} |
|
743 |
||
744 |
//------------------------------------------------------------------------------ |
|
745 |
// Test case: GetPlugins(3) |
|
746 |
//------------------------------------------------------------------------------ |
|
747 |
void MT_CHSPSConfigurationIf::GetPlugins_3_L() |
|
748 |
{ |
|
749 |
// Pre conditions |
|
750 |
// Set active configuration to Minimal configuration |
|
751 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
752 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
753 |
// Attach to HSPS |
|
754 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
755 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
756 |
||
757 |
// Test step 1 |
|
758 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
759 |
RunTestStepSyncL( |
|
760 |
( TUint8* )getplugins_3_ts_1_method, |
|
761 |
( TUint8* )getplugins_3_ts_1_input, |
|
762 |
( TUint8* )getplugins_3_ts_1_output ); |
|
763 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
764 |
} |
|
765 |
||
766 |
//------------------------------------------------------------------------------ |
|
767 |
// Test case: GetPlugins(4) |
|
768 |
//------------------------------------------------------------------------------ |
|
769 |
void MT_CHSPSConfigurationIf::GetPlugins_4_L() |
|
770 |
{ |
|
771 |
// Pre conditions |
|
772 |
// Set active configuration to Minimal configuration |
|
773 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
774 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
775 |
// Attach to HSPS |
|
776 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
777 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
778 |
||
779 |
// Test step 1 |
|
780 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
781 |
RunTestStepSyncL( |
|
782 |
( TUint8* )getplugins_4_ts_1_method, |
|
783 |
( TUint8* )getplugins_4_ts_1_input, |
|
784 |
( TUint8* )getplugins_4_ts_1_output ); |
|
785 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
786 |
} |
|
787 |
||
788 |
//------------------------------------------------------------------------------ |
|
789 |
// Test case: GetPlugins(5) |
|
790 |
//------------------------------------------------------------------------------ |
|
791 |
void MT_CHSPSConfigurationIf::GetPlugins_5_L() |
|
792 |
{ |
|
793 |
// Pre conditions |
|
794 |
// Set active configuration to Minimal configuration |
|
795 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
796 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
797 |
// Attach to HSPS |
|
798 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
799 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
800 |
||
801 |
// Test step 1 |
|
802 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
803 |
RunTestStepSyncL( |
|
804 |
( TUint8* )getplugins_5_ts_1_method, |
|
805 |
( TUint8* )getplugins_5_ts_1_input, |
|
806 |
( TUint8* )getplugins_5_ts_1_output ); |
|
807 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
808 |
} |
|
809 |
||
810 |
//------------------------------------------------------------------------------ |
|
811 |
// Test case: GetPlugins(6) |
|
812 |
//------------------------------------------------------------------------------ |
|
813 |
void MT_CHSPSConfigurationIf::GetPlugins_6_L() |
|
814 |
{ |
|
815 |
// Pre conditions |
|
816 |
// Set active configuration to Minimal configuration |
|
817 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
818 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
819 |
// Attach to HSPS |
|
820 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
821 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
822 |
||
823 |
// Test step 1 |
|
824 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
825 |
RunTestStepSyncL( |
|
826 |
( TUint8* )getplugins_6_ts_1_method, |
|
827 |
( TUint8* )getplugins_6_ts_1_input, |
|
828 |
( TUint8* )getplugins_6_ts_1_output ); |
|
829 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
830 |
} |
|
831 |
||
832 |
//------------------------------------------------------------------------------ |
|
833 |
// Test case: GetPlugins(7) |
|
834 |
//------------------------------------------------------------------------------ |
|
835 |
void MT_CHSPSConfigurationIf::GetPlugins_7_L() |
|
836 |
{ |
|
837 |
// Pre conditions |
|
838 |
// Set active configuration to Minimal configuration |
|
839 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
840 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
841 |
// Attach to HSPS |
|
842 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
843 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
844 |
||
845 |
// Test step 1 |
|
846 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
847 |
RunTestStepSyncL( |
|
848 |
( TUint8* )getplugins_7_ts_1_method, |
|
849 |
( TUint8* )getplugins_7_ts_1_input, |
|
850 |
( TUint8* )getplugins_7_ts_1_output ); |
|
851 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
852 |
} |
|
853 |
||
854 |
//------------------------------------------------------------------------------ |
|
855 |
// Test case: GetPlugins(8) |
|
856 |
//------------------------------------------------------------------------------ |
|
857 |
void MT_CHSPSConfigurationIf::GetPlugins_8_L() |
|
858 |
{ |
|
859 |
// Pre conditions |
|
860 |
// Set active configuration to Minimal configuration |
|
861 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Operator" ) ); |
|
862 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfOperator ); |
|
863 |
// Attach to HSPS |
|
864 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
865 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
866 |
||
867 |
// Test step 1: fetch widget plugins and copy logos files |
|
868 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
869 |
RunTestStepSyncL( |
|
870 |
( TUint8* )getplugins_8_ts_1_method, |
|
871 |
( TUint8* )getplugins_8_ts_1_input, |
|
872 |
( TUint8* )getplugins_8_ts_1_output ); |
|
873 |
||
874 |
EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
875 |
ResetResources(); |
|
876 |
// Check that the logo file was copied |
|
877 |
AddResourceL( KFinnishMifLogo, 4608 ); |
|
878 |
CheckResourcesL(); |
|
879 |
EUNIT_PRINT( _L8( "post condition check for resource copy passed" ) ); |
|
880 |
||
881 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
882 |
} |
|
883 |
||
884 |
//------------------------------------------------------------------------------ |
|
885 |
// Test case: GetPluginList(1) |
|
886 |
//------------------------------------------------------------------------------ |
|
887 |
void MT_CHSPSConfigurationIf::GetPluginList_1_L() |
|
888 |
{ |
|
889 |
||
890 |
// Pre conditions |
|
891 |
// Set active configuration to Minimal configuration |
|
892 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
893 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
894 |
// Attach to HSPS |
|
895 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
896 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
897 |
||
898 |
// Test step 1 |
|
899 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
900 |
RunTestStepSyncL( |
|
901 |
( TUint8* )getpluginlist_1_ts_1_method, |
|
902 |
( TUint8* )getpluginlist_1_ts_1_input, |
|
903 |
( TUint8* )getpluginlist_1_ts_1_output, |
|
904 |
ETrue ); |
|
905 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
906 |
} |
|
907 |
||
908 |
//------------------------------------------------------------------------------ |
|
909 |
// Test case: GetPluginList(2) |
|
910 |
//------------------------------------------------------------------------------ |
|
911 |
void MT_CHSPSConfigurationIf::GetPluginList_2_L() |
|
912 |
{ |
|
913 |
||
914 |
// Pre conditions |
|
915 |
// Set active configuration to Minimal configuration |
|
916 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
917 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
918 |
// Attach to HSPS |
|
919 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
920 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
921 |
||
922 |
// Test step 1 |
|
923 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
924 |
RunTestStepSyncL( |
|
925 |
( TUint8* )getpluginlist_2_ts_1_method, |
|
926 |
( TUint8* )getpluginlist_2_ts_1_input, |
|
927 |
( TUint8* )getpluginlist_2_ts_1_output ); |
|
928 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
929 |
} |
|
930 |
||
931 |
//------------------------------------------------------------------------------ |
|
932 |
// Test case: GetPluginList(3) |
|
933 |
//------------------------------------------------------------------------------ |
|
934 |
void MT_CHSPSConfigurationIf::GetPluginList_3_L() |
|
935 |
{ |
|
936 |
||
937 |
// Pre conditions |
|
938 |
// Set active configuration to Minimal configuration |
|
939 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
940 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
941 |
// Attach to HSPS |
|
942 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
943 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
944 |
||
945 |
// Test step 1 |
|
946 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
947 |
RunTestStepSyncL( |
|
948 |
( TUint8* )getpluginlist_3_ts_1_method, |
|
949 |
( TUint8* )getpluginlist_3_ts_1_input, |
|
950 |
( TUint8* )getpluginlist_3_ts_1_output ); |
|
951 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
952 |
} |
|
953 |
||
954 |
//------------------------------------------------------------------------------ |
|
955 |
// Test case: GetPluginList(4) |
|
956 |
//------------------------------------------------------------------------------ |
|
957 |
void MT_CHSPSConfigurationIf::GetPluginList_4_L() |
|
958 |
{ |
|
959 |
||
960 |
// Pre conditions |
|
961 |
// Set active configuration to Minimal configuration |
|
962 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
963 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
964 |
// Attach to HSPS |
|
965 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
966 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
967 |
||
968 |
// Test step 1 |
|
969 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
970 |
RunTestStepSyncL( |
|
971 |
( TUint8* )getpluginlist_4_ts_1_method, |
|
972 |
( TUint8* )getpluginlist_4_ts_1_input, |
|
973 |
( TUint8* )getpluginlist_4_ts_1_output ); |
|
974 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
975 |
} |
|
976 |
||
977 |
//------------------------------------------------------------------------------ |
|
978 |
// Test case: GetPluginList(5) |
|
979 |
//------------------------------------------------------------------------------ |
|
980 |
void MT_CHSPSConfigurationIf::GetPluginList_5_L() |
|
981 |
{ |
|
982 |
||
983 |
// Pre conditions |
|
984 |
// Set active configuration to Minimal configuration |
|
985 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
986 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
987 |
// Attach to HSPS |
|
988 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
989 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
990 |
||
991 |
// Test step 1 |
|
992 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
993 |
RunTestStepSyncL( |
|
994 |
( TUint8* )getpluginlist_5_ts_1_method, |
|
995 |
( TUint8* )getpluginlist_5_ts_1_input, |
|
996 |
( TUint8* )getpluginlist_5_ts_1_output ); |
|
997 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
998 |
} |
|
999 |
||
1000 |
//------------------------------------------------------------------------------ |
|
1001 |
// Test case: GetPluginList(6) |
|
1002 |
//------------------------------------------------------------------------------ |
|
1003 |
void MT_CHSPSConfigurationIf::GetPluginList_6_L() |
|
1004 |
{ |
|
1005 |
||
1006 |
// Pre conditions |
|
1007 |
// Set active configuration to Minimal configuration |
|
1008 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1009 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1010 |
// Attach to HSPS |
|
1011 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1012 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1013 |
||
1014 |
// Test step 1 |
|
1015 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1016 |
RunTestStepSyncL( |
|
1017 |
( TUint8* )getpluginlist_6_ts_1_method, |
|
1018 |
( TUint8* )getpluginlist_6_ts_1_input, |
|
1019 |
( TUint8* )getpluginlist_6_ts_1_output ); |
|
1020 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1021 |
} |
|
1022 |
||
1023 |
//------------------------------------------------------------------------------ |
|
1024 |
// Test case: GetPluginList(7) |
|
1025 |
//------------------------------------------------------------------------------ |
|
1026 |
void MT_CHSPSConfigurationIf::GetPluginList_7_L() |
|
1027 |
{ |
|
1028 |
||
1029 |
// Pre conditions |
|
1030 |
// Set active configuration to Minimal configuration |
|
1031 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Operator" ) ); |
|
1032 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfOperator ); |
|
1033 |
// Attach to HSPS |
|
1034 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1035 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1036 |
||
1037 |
// Test step 1 |
|
1038 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1039 |
RunTestStepSyncL( |
|
1040 |
( TUint8* )getpluginlist_7_ts_1_method, |
|
1041 |
( TUint8* )getpluginlist_7_ts_1_input, |
|
1042 |
( TUint8* )getpluginlist_7_ts_1_output ); |
|
1043 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1044 |
} |
|
1045 |
||
1046 |
//------------------------------------------------------------------------------ |
|
1047 |
// Test case: GetPluginList(8) |
|
1048 |
//------------------------------------------------------------------------------ |
|
1049 |
void MT_CHSPSConfigurationIf::GetPluginList_8_L() |
|
1050 |
{ |
|
1051 |
||
1052 |
// Pre conditions |
|
1053 |
// Set active configuration to Minimal configuration |
|
1054 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Operator" ) ); |
|
1055 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfOperator ); |
|
1056 |
// Attach to HSPS |
|
1057 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1058 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1059 |
||
1060 |
// Test step 1 |
|
1061 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1062 |
RunTestStepSyncL( |
|
1063 |
( TUint8* )getpluginlist_8_ts_1_method, |
|
1064 |
( TUint8* )getpluginlist_8_ts_1_input, |
|
1065 |
( TUint8* )getpluginlist_8_ts_1_output ); |
|
1066 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1067 |
} |
|
1068 |
||
1069 |
//------------------------------------------------------------------------------ |
|
1070 |
// Test case: AddPlugin(1) |
|
1071 |
//------------------------------------------------------------------------------ |
|
1072 |
void MT_CHSPSConfigurationIf::AddPlugin_1_L() |
|
1073 |
{ |
|
1074 |
// Pre conditions |
|
1075 |
// Set active configuration to Typical configuration |
|
1076 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1077 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1078 |
// Attach to HSPS |
|
1079 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1080 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1081 |
||
1082 |
// Test step 1 |
|
1083 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1084 |
RunTestStepSyncL( |
|
1085 |
( TUint8* )addplugin_1_ts_1_method, |
|
1086 |
( TUint8* )addplugin_1_ts_1_input, |
|
1087 |
( TUint8* )addplugin_1_ts_1_output, |
|
1088 |
ETrue ); |
|
1089 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1090 |
||
1091 |
// Test step 2 |
|
1092 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1093 |
RunTestStepSyncL( |
|
1094 |
( TUint8* )addplugin_1_ts_2_method, |
|
1095 |
( TUint8* )addplugin_1_ts_2_input, |
|
1096 |
( TUint8* )addplugin_1_ts_2_output ); |
|
1097 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1098 |
||
1099 |
// Test step 3 |
|
1100 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1101 |
RunTestStepSyncL( |
|
1102 |
( TUint8* )addplugin_1_ts_3_method, |
|
1103 |
( TUint8* )addplugin_1_ts_3_input, |
|
1104 |
( TUint8* )addplugin_1_ts_3_output ); |
|
1105 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1106 |
||
1107 |
// Test step 4 |
|
1108 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1109 |
RunTestStepSyncL( |
|
1110 |
( TUint8* )addplugin_1_ts_4_method, |
|
1111 |
( TUint8* )addplugin_1_ts_4_input, |
|
1112 |
( TUint8* )addplugin_1_ts_4_output, |
|
1113 |
ETrue ); |
|
1114 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1115 |
||
1116 |
// Test step 5 |
|
1117 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
1118 |
RunTestStepSyncL( |
|
1119 |
( TUint8* )addplugin_1_ts_5_method, |
|
1120 |
( TUint8* )addplugin_1_ts_5_input, |
|
1121 |
( TUint8* )addplugin_1_ts_5_output ); |
|
1122 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1123 |
} |
|
1124 |
||
1125 |
//------------------------------------------------------------------------------ |
|
1126 |
// Test case: AddPlugin(2) |
|
1127 |
//------------------------------------------------------------------------------ |
|
1128 |
void MT_CHSPSConfigurationIf::AddPlugin_2_L() |
|
1129 |
{ |
|
1130 |
// Pre conditions |
|
1131 |
//---------------------------------------------------------------- |
|
1132 |
ResetClientFolderL(); // affects performance testing |
|
1133 |
||
1134 |
// Set active configuration to Typical configuration |
|
1135 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1136 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1137 |
// Attach to HSPS |
|
1138 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1139 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1140 |
||
1141 |
// Test step 1 |
|
1142 |
//---------------------------------------------------------------- |
|
1143 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1144 |
RunTestStepSyncL( |
|
1145 |
( TUint8* )addplugin_2_ts_1_method, |
|
1146 |
( TUint8* )addplugin_2_ts_1_input, |
|
1147 |
( TUint8* )addplugin_2_ts_1_output ); |
|
1148 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1149 |
||
1150 |
// post condition check: verify that resources of the application configuration have been copied |
|
1151 |
EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
1152 |
ResetResources(); |
|
1153 |
// Typical - Root |
|
1154 |
AddResourceL( _L("c:\\private\\20000fb1\\536874929\\270513751\\536916240\\1.0\\sources\\root.bmp"), 165450 ); |
|
1155 |
// Typical - View1 |
|
1156 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\view1.bmp"), 9354 ); |
|
1157 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\hs_logoz.jpg"), 19519 ); |
|
1158 |
// Typical - View2 |
|
1159 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916242\\1.0\\sources\\view2.bmp"), 183654 ); |
|
1160 |
// Typical - Widget |
|
1161 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg"), 18179 ); |
|
1162 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp"), 6446 ); |
|
1163 |
CheckResourcesL( ); |
|
1164 |
// Minimal - Widget |
|
1165 |
EUNIT_PRINT( _L8( "post condition check for resource copy passed" ) ); |
|
1166 |
||
1167 |
// Test step 2 |
|
1168 |
//---------------------------------------------------------------- |
|
1169 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1170 |
RunTestStepSyncL( |
|
1171 |
( TUint8* )addplugin_2_ts_2_method, |
|
1172 |
( TUint8* )addplugin_2_ts_2_input, |
|
1173 |
( TUint8* )addplugin_2_ts_2_output ); |
|
1174 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1175 |
||
1176 |
// Test step 3 |
|
1177 |
//---------------------------------------------------------------- |
|
1178 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1179 |
RunTestStepSyncL( |
|
1180 |
( TUint8* )addplugin_2_ts_3_method, |
|
1181 |
( TUint8* )addplugin_2_ts_3_input, |
|
1182 |
( TUint8* )addplugin_2_ts_3_output ); |
|
1183 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1184 |
||
1185 |
// Test step 4 |
|
1186 |
//---------------------------------------------------------------- |
|
1187 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1188 |
RunTestStepSyncL( |
|
1189 |
( TUint8* )addplugin_2_ts_4_method, |
|
1190 |
( TUint8* )addplugin_2_ts_4_input, |
|
1191 |
( TUint8* )addplugin_2_ts_4_output ); |
|
1192 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1193 |
||
1194 |
// Test step 5 |
|
1195 |
//---------------------------------------------------------------- |
|
1196 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
1197 |
RunTestStepSyncL( |
|
1198 |
( TUint8* )addplugin_2_ts_5_method, |
|
1199 |
( TUint8* )addplugin_2_ts_5_input, |
|
1200 |
( TUint8* )addplugin_2_ts_5_output ); |
|
1201 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1202 |
} |
|
1203 |
||
1204 |
//------------------------------------------------------------------------------ |
|
1205 |
// Test case: AddPlugin(3) |
|
1206 |
//------------------------------------------------------------------------------ |
|
1207 |
void MT_CHSPSConfigurationIf::AddPlugin_3_L() |
|
1208 |
{ |
|
1209 |
// Pre conditions |
|
1210 |
// Set active configuration to Minimal configuration |
|
1211 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
1212 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
1213 |
// Attach to HSPS |
|
1214 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1215 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1216 |
||
1217 |
// Test step 1 |
|
1218 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1219 |
RunTestStepSyncL( |
|
1220 |
( TUint8* )addplugin_3_ts_1_method, |
|
1221 |
( TUint8* )addplugin_3_ts_1_input, |
|
1222 |
( TUint8* )addplugin_3_ts_1_output ); |
|
1223 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1224 |
||
1225 |
// Test step 2 |
|
1226 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1227 |
RunTestStepSyncL( |
|
1228 |
( TUint8* )addplugin_3_ts_2_method, |
|
1229 |
( TUint8* )addplugin_3_ts_2_input, |
|
1230 |
( TUint8* )addplugin_3_ts_2_output ); |
|
1231 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1232 |
} |
|
1233 |
||
1234 |
//------------------------------------------------------------------------------ |
|
1235 |
// Test case: AddPlugin(4) |
|
1236 |
//------------------------------------------------------------------------------ |
|
1237 |
void MT_CHSPSConfigurationIf::AddPlugin_4_L() |
|
1238 |
{ |
|
1239 |
// Pre conditions |
|
1240 |
// Set active configuration to Minimal configuration |
|
1241 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
1242 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
1243 |
// Attach to HSPS |
|
1244 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1245 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1246 |
||
1247 |
// Test step 1 |
|
1248 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1249 |
RunTestStepSyncL( |
|
1250 |
( TUint8* )addplugin_4_ts_1_method, |
|
1251 |
( TUint8* )addplugin_4_ts_1_input, |
|
1252 |
( TUint8* )addplugin_4_ts_1_output ); |
|
1253 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1254 |
} |
|
1255 |
||
1256 |
//------------------------------------------------------------------------------ |
|
1257 |
// Test case: AddPlugin(5) |
|
1258 |
//------------------------------------------------------------------------------ |
|
1259 |
void MT_CHSPSConfigurationIf::AddPlugin_5_L() |
|
1260 |
{ |
|
1261 |
// Pre conditions |
|
1262 |
// Set active configuration to Minimal configuration |
|
1263 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
1264 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
1265 |
// Attach to HSPS |
|
1266 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1267 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1268 |
||
1269 |
// Test step 1 |
|
1270 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1271 |
RunTestStepSyncL( |
|
1272 |
( TUint8* )addplugin_5_ts_1_method, |
|
1273 |
( TUint8* )addplugin_5_ts_1_input, |
|
1274 |
( TUint8* )addplugin_5_ts_1_output ); |
|
1275 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1276 |
} |
|
1277 |
||
1278 |
//------------------------------------------------------------------------------ |
|
1279 |
// Test case: AddPlugin(6) |
|
1280 |
//------------------------------------------------------------------------------ |
|
1281 |
void MT_CHSPSConfigurationIf::AddPlugin_6_L() |
|
1282 |
{ |
|
1283 |
// Pre conditions |
|
1284 |
// Set active configuration to Operator configuration |
|
1285 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Operator" ) ); |
|
1286 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfOperator ); |
|
1287 |
// Attach to HSPS |
|
1288 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1289 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1290 |
||
1291 |
// Test step 1 |
|
1292 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1293 |
RunTestStepSyncL( |
|
1294 |
( TUint8* )addplugin_6_ts_1_method, |
|
1295 |
( TUint8* )addplugin_6_ts_1_input, |
|
1296 |
( TUint8* )addplugin_6_ts_1_output ); |
|
1297 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1298 |
||
1299 |
// Test step 2 |
|
1300 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1301 |
RunTestStepSyncL( |
|
1302 |
( TUint8* )addplugin_6_ts_2_method, |
|
1303 |
( TUint8* )addplugin_6_ts_2_input, |
|
1304 |
( TUint8* )addplugin_6_ts_2_output ); |
|
1305 |
ResetResources(); |
|
1306 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916273\\1.0\\sources\\dummy.mif"), 4608 ); |
|
1307 |
CheckResourcesL( ); |
|
1308 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1309 |
||
1310 |
// Test step 3 |
|
1311 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1312 |
RunTestStepSyncL( |
|
1313 |
( TUint8* )addplugin_6_ts_3_method, |
|
1314 |
( TUint8* )addplugin_6_ts_3_input, |
|
1315 |
( TUint8* )addplugin_6_ts_3_output ); |
|
1316 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1317 |
||
1318 |
// Test step 4 |
|
1319 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1320 |
RunTestStepSyncL( |
|
1321 |
( TUint8* )addplugin_6_ts_4_method, |
|
1322 |
( TUint8* )addplugin_6_ts_4_input, |
|
1323 |
( TUint8* )addplugin_6_ts_4_output ); |
|
1324 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1325 |
||
1326 |
// Test step 5 |
|
1327 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
1328 |
RunTestStepSyncL( |
|
1329 |
( TUint8* )addplugin_6_ts_5_method, |
|
1330 |
( TUint8* )addplugin_6_ts_5_input, |
|
1331 |
( TUint8* )addplugin_6_ts_5_output ); |
|
1332 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1333 |
} |
|
1334 |
||
1335 |
//------------------------------------------------------------------------------ |
|
1336 |
// Test case: AddPlugin(7) |
|
1337 |
//------------------------------------------------------------------------------ |
|
1338 |
void MT_CHSPSConfigurationIf::AddPlugin_7_L() |
|
1339 |
{ |
|
1340 |
// Pre conditions |
|
1341 |
// Set active configuration to Operator configuration |
|
1342 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1343 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1344 |
// Attach to HSPS |
|
1345 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1346 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1347 |
||
1348 |
// Test step 1 |
|
1349 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1350 |
RunTestStepSyncL( |
|
1351 |
( TUint8* )addplugin_7_ts_1_method, |
|
1352 |
( TUint8* )addplugin_7_ts_1_input, |
|
1353 |
( TUint8* )addplugin_7_ts_1_output ); |
|
1354 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1355 |
||
1356 |
// Test step 2 |
|
1357 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1358 |
RunTestStepSyncL( |
|
1359 |
( TUint8* )addplugin_7_ts_2_method, |
|
1360 |
( TUint8* )addplugin_7_ts_2_input, |
|
1361 |
( TUint8* )addplugin_7_ts_2_output ); |
|
1362 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1363 |
||
1364 |
// Test step 3 |
|
1365 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1366 |
RunTestStepSyncL( |
|
1367 |
( TUint8* )addplugin_7_ts_3_method, |
|
1368 |
( TUint8* )addplugin_7_ts_3_input, |
|
1369 |
( TUint8* )addplugin_7_ts_3_output ); |
|
1370 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1371 |
||
1372 |
// Test step 4 |
|
1373 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1374 |
RunTestStepSyncL( |
|
1375 |
( TUint8* )addplugin_7_ts_4_method, |
|
1376 |
( TUint8* )addplugin_7_ts_4_input, |
|
1377 |
( TUint8* )addplugin_7_ts_4_output ); |
|
1378 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1379 |
} |
|
1380 |
||
1381 |
//------------------------------------------------------------------------------ |
|
1382 |
// Test case: AddPlugin(8) |
|
1383 |
//------------------------------------------------------------------------------ |
|
1384 |
void MT_CHSPSConfigurationIf::AddPlugin_8_L() |
|
1385 |
{ |
|
1386 |
// Pre conditions |
|
1387 |
//---------------------------------------------------------------- |
|
1388 |
ResetClientFolderL(); // affects performance testing |
|
1389 |
||
1390 |
// Active device language is ELangEnglish(=1) |
|
1391 |
// in \epoc32\RELEASE\WINSCW\udeb\Z\resource\BootData\Languages.txt |
|
1392 |
||
1393 |
// Set active configuration to Minimal configuration |
|
1394 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
1395 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
1396 |
||
1397 |
// Attach to HSPS |
|
1398 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1399 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1400 |
||
1401 |
// Test step 1: add widget with english locale to unlocalized configuration |
|
1402 |
//---------------------------------------------------------------- |
|
1403 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1404 |
RunTestStepSyncL( |
|
1405 |
( TUint8* )addplugin_8_ts_1_method, |
|
1406 |
( TUint8* )addplugin_8_ts_1_input, |
|
1407 |
( TUint8* )addplugin_8_ts_1_output ); |
|
1408 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1409 |
||
1410 |
// Test step 2: get added plugin configuration |
|
1411 |
//---------------------------------------------------------------- |
|
1412 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1413 |
RunTestStepSyncL( |
|
1414 |
( TUint8* )addplugin_8_ts_2_method, |
|
1415 |
( TUint8* )addplugin_8_ts_2_input, |
|
1416 |
( TUint8* )addplugin_8_ts_2_output ); |
|
1417 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1418 |
||
1419 |
// post condition check: verify that resources of the application configuration have been copied |
|
1420 |
//---------------------------------------------------------------- |
|
1421 |
EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
1422 |
// Minimal - Root |
|
1423 |
// Minimal - View |
|
1424 |
ResetResources(); |
|
1425 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\main.xml"), 136 ); |
|
1426 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\picture.jpeg"), 18 ); |
|
1427 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\resource.file"), 17 ); |
|
1428 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916225\\1.0\\sources\\viewnavigationrules.xml"), 17 ); |
|
1429 |
// Minimal - Widget |
|
1430 |
// Typical - View1 |
|
1431 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\view1.bmp"), 9354 ); |
|
1432 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\hs_logoz.jpg"), 19519 ); |
|
1433 |
// Typical - Widget |
|
1434 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg"), 18179 ); |
|
1435 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp"), 6446 ); |
|
1436 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp"), 6446 ); |
|
1437 |
CheckResourcesL(); |
|
1438 |
EUNIT_PRINT( _L8( "post condition check for resource copy passed" ) ); |
|
1439 |
||
1440 |
// Test step 3: restore configuration by removing the plugin |
|
1441 |
//---------------------------------------------------------------- |
|
1442 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1443 |
RunTestStepSyncL( |
|
1444 |
( TUint8* )addplugin_8_ts_3_method, |
|
1445 |
( TUint8* )addplugin_8_ts_3_input, |
|
1446 |
( TUint8* )addplugin_8_ts_3_output ); |
|
1447 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1448 |
} |
|
1449 |
||
1450 |
//------------------------------------------------------------------------------ |
|
1451 |
// Test case: AddPlugin(9) |
|
1452 |
//------------------------------------------------------------------------------ |
|
1453 |
void MT_CHSPSConfigurationIf::AddPlugin_9_L() |
|
1454 |
{ |
|
1455 |
// Pre conditions |
|
1456 |
//---------------------------------------------------------------- |
|
1457 |
ResetClientFolderL(); // affects performance testing |
|
1458 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1459 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1460 |
||
1461 |
// Attach to HSPS |
|
1462 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1463 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1464 |
||
1465 |
// Test step 1: add widget with a finnish locale only |
|
1466 |
//---------------------------------------------------------------- |
|
1467 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1468 |
RunTestStepSyncL( |
|
1469 |
( TUint8* )addplugin_9_ts_1_method, |
|
1470 |
( TUint8* )addplugin_9_ts_1_input, |
|
1471 |
( TUint8* )addplugin_9_ts_1_output ); |
|
1472 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1473 |
||
1474 |
// Test step 2: get added plugin configuration |
|
1475 |
//---------------------------------------------------------------- |
|
1476 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1477 |
RunTestStepSyncL( |
|
1478 |
( TUint8* )addplugin_9_ts_2_method, |
|
1479 |
( TUint8* )addplugin_9_ts_2_input, |
|
1480 |
( TUint8* )addplugin_9_ts_2_output ); |
|
1481 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1482 |
||
1483 |
// post condition check: verify that resources of the application configuration have been copied |
|
1484 |
//---------------------------------------------------------------- |
|
1485 |
EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
1486 |
ResetResources(); |
|
1487 |
// Typical - Root |
|
1488 |
// Typical - View1 |
|
1489 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\view1.bmp"), 9354 ); |
|
1490 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916241\\1.0\\sources\\hs_logoz.jpg"), 19519 ); |
|
1491 |
// Typical - View2 |
|
1492 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916242\\1.0\\sources\\view2.bmp"), 183654 ); |
|
1493 |
// Typical - Widget |
|
1494 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg"), 18179 ); |
|
1495 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp"), 6446 ); |
|
1496 |
// Typical - Widget |
|
1497 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg"), 18179 ); |
|
1498 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp"), 6446 ); |
|
1499 |
// Typical - FinnishWidget |
|
1500 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916274\\1.0\\sources\\common.jpg"), 19465 ); |
|
1501 |
AddResourceL( _L("c:\\private\\20000fb1\\2456\\270513751\\536916274\\1.0\\sources\\localizedbg.jpg"), 1214 ); |
|
1502 |
CheckResourcesL(); |
|
1503 |
EUNIT_PRINT( _L8( "post condition check for resource copy passed" ) ); |
|
1504 |
||
1505 |
// Test step 3: restore configuration by removing the plugin |
|
1506 |
//---------------------------------------------------------------- |
|
1507 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1508 |
RunTestStepSyncL( |
|
1509 |
( TUint8* )addplugin_9_ts_3_method, |
|
1510 |
( TUint8* )addplugin_9_ts_3_input, |
|
1511 |
( TUint8* )addplugin_9_ts_3_output ); |
|
1512 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1513 |
} |
|
1514 |
||
1515 |
//------------------------------------------------------------------------------ |
|
1516 |
// Test case: AddPlugin(10) |
|
1517 |
//------------------------------------------------------------------------------ |
|
1518 |
void MT_CHSPSConfigurationIf::AddPlugin_10_L() |
|
1519 |
{ |
|
1520 |
// Pre conditions |
|
1521 |
||
1522 |
// Attach to HSPS |
|
1523 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1524 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1525 |
||
1526 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1527 |
RunTestStepSyncL( |
|
1528 |
( TUint8* )addplugin_10_ts_1_method, |
|
1529 |
( TUint8* )addplugin_10_ts_1_input, |
|
1530 |
( TUint8* )addplugin_10_ts_1_output ); |
|
1531 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1532 |
||
1533 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1534 |
RunTestStepSyncL( |
|
1535 |
( TUint8* )addplugin_10_ts_2_method, |
|
1536 |
( TUint8* )addplugin_10_ts_2_input, |
|
1537 |
( TUint8* )addplugin_10_ts_2_output ); |
|
1538 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1539 |
||
1540 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1541 |
RunTestStepSyncL( |
|
1542 |
( TUint8* )addplugin_10_ts_3_method, |
|
1543 |
( TUint8* )addplugin_10_ts_3_input, |
|
1544 |
( TUint8* )addplugin_10_ts_3_output ); |
|
1545 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1546 |
||
1547 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1548 |
RunTestStepSyncL( |
|
1549 |
( TUint8* )addplugin_10_ts_4_method, |
|
1550 |
( TUint8* )addplugin_10_ts_4_input, |
|
1551 |
( TUint8* )addplugin_10_ts_4_output ); |
|
1552 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1553 |
||
1554 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
1555 |
RunTestStepSyncL( |
|
1556 |
( TUint8* )addplugin_10_ts_5_method, |
|
1557 |
( TUint8* )addplugin_10_ts_5_input, |
|
1558 |
( TUint8* )addplugin_10_ts_5_output ); |
|
1559 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1560 |
||
1561 |
EUNIT_PRINT( _L8( "Test step 6" ) ); |
|
1562 |
RunTestStepSyncL( |
|
1563 |
( TUint8* )addplugin_10_ts_6_method, |
|
1564 |
( TUint8* )addplugin_10_ts_6_input, |
|
1565 |
( TUint8* )addplugin_10_ts_6_output ); |
|
1566 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1567 |
||
1568 |
EUNIT_PRINT( _L8( "Test step 7" ) ); |
|
1569 |
RunTestStepSyncL( |
|
1570 |
( TUint8* )addplugin_10_ts_7_method, |
|
1571 |
( TUint8* )addplugin_10_ts_7_input, |
|
1572 |
( TUint8* )addplugin_10_ts_7_output ); |
|
1573 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1574 |
||
1575 |
EUNIT_PRINT( _L8( "Test step 8" ) ); |
|
1576 |
RunTestStepSyncL( |
|
1577 |
( TUint8* )addplugin_10_ts_8_method, |
|
1578 |
( TUint8* )addplugin_10_ts_8_input, |
|
1579 |
( TUint8* )addplugin_10_ts_8_output ); |
|
1580 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1581 |
} |
|
1582 |
||
1583 |
//------------------------------------------------------------------------------ |
|
1584 |
// Test case: AddPlugin(11) |
|
1585 |
//------------------------------------------------------------------------------ |
|
1586 |
void MT_CHSPSConfigurationIf::AddPlugin_11_L() |
|
1587 |
{ |
|
1588 |
// Pre conditions |
|
1589 |
// Set active configuration to Typical configuration |
|
1590 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1591 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1592 |
||
1593 |
// Uninstall Widget Conf #1 |
|
1594 |
MT_CHspsInstallationService* installationService = MT_CHspsInstallationService::NewL(); |
|
1595 |
CleanupStack::PushL( installationService ); |
|
1596 |
installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSMinimalWidgetConf ); |
|
1597 |
CleanupStack::PopAndDestroy( installationService ); |
|
1598 |
||
1599 |
// Attach to HSPS |
|
1600 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1601 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1602 |
||
1603 |
// Test step 1 |
|
1604 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1605 |
RunTestStepSyncL( |
|
1606 |
( TUint8* )addplugin_11_ts_1_method, |
|
1607 |
( TUint8* )addplugin_11_ts_1_input, |
|
1608 |
( TUint8* )addplugin_11_ts_1_output, |
|
1609 |
ETrue ); |
|
1610 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1611 |
||
1612 |
// Test step 2 |
|
1613 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1614 |
RunTestStepSyncL( |
|
1615 |
( TUint8* )addplugin_11_ts_2_method, |
|
1616 |
( TUint8* )addplugin_11_ts_2_input, |
|
1617 |
( TUint8* )addplugin_11_ts_2_output ); |
|
1618 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1619 |
} |
|
1620 |
||
1621 |
//------------------------------------------------------------------------------ |
|
1622 |
// Test case: RemovePlugin(1) |
|
1623 |
//------------------------------------------------------------------------------ |
|
1624 |
void MT_CHSPSConfigurationIf::RemovePlugin_1_L() |
|
1625 |
{ |
|
1626 |
// Pre conditions |
|
1627 |
// Set active configuration to Typical configuration |
|
1628 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1629 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1630 |
// Attach to HSPS |
|
1631 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1632 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1633 |
||
1634 |
// Test step 1 |
|
1635 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1636 |
RunTestStepSyncL( |
|
1637 |
( TUint8* )removeplugin_1_ts_1_method, |
|
1638 |
( TUint8* )removeplugin_1_ts_1_input, |
|
1639 |
( TUint8* )removeplugin_1_ts_1_output ); |
|
1640 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1641 |
||
1642 |
// Test step 2 |
|
1643 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1644 |
RunTestStepSyncL( |
|
1645 |
( TUint8* )removeplugin_1_ts_2_method, |
|
1646 |
( TUint8* )removeplugin_1_ts_2_input, |
|
1647 |
( TUint8* )removeplugin_1_ts_2_output ); |
|
1648 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1649 |
} |
|
1650 |
||
1651 |
//------------------------------------------------------------------------------ |
|
1652 |
// Test case: RemovePlugin(2) |
|
1653 |
//------------------------------------------------------------------------------ |
|
1654 |
void MT_CHSPSConfigurationIf::RemovePlugin_2_L() |
|
1655 |
{ |
|
1656 |
// Pre conditions |
|
1657 |
||
1658 |
// Attach to HSPS |
|
1659 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1660 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1661 |
||
1662 |
// Test step 1 |
|
1663 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1664 |
RunTestStepSyncL( |
|
1665 |
( TUint8* )removeplugin_2_ts_1_method, |
|
1666 |
( TUint8* )removeplugin_2_ts_1_input, |
|
1667 |
( TUint8* )removeplugin_2_ts_1_output ); |
|
1668 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1669 |
||
1670 |
// Test step 2 |
|
1671 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1672 |
RunTestStepSyncL( |
|
1673 |
( TUint8* )removeplugin_2_ts_2_method, |
|
1674 |
( TUint8* )removeplugin_2_ts_2_input, |
|
1675 |
( TUint8* )removeplugin_2_ts_2_output ); |
|
1676 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1677 |
||
1678 |
// Test step 3 |
|
1679 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1680 |
RunTestStepSyncL( |
|
1681 |
( TUint8* )removeplugin_2_ts_3_method, |
|
1682 |
( TUint8* )removeplugin_2_ts_3_input, |
|
1683 |
( TUint8* )removeplugin_2_ts_3_output ); |
|
1684 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1685 |
||
1686 |
// Test step 4 |
|
1687 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
1688 |
RunTestStepSyncL( |
|
1689 |
( TUint8* )removeplugin_2_ts_4_method, |
|
1690 |
( TUint8* )removeplugin_2_ts_4_input, |
|
1691 |
( TUint8* )removeplugin_2_ts_4_output ); |
|
1692 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1693 |
||
1694 |
// Test step 5 |
|
1695 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
1696 |
RunTestStepSyncL( |
|
1697 |
( TUint8* )removeplugin_2_ts_5_method, |
|
1698 |
( TUint8* )removeplugin_2_ts_5_input, |
|
1699 |
( TUint8* )removeplugin_2_ts_5_output ); |
|
1700 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1701 |
} |
|
1702 |
||
1703 |
//------------------------------------------------------------------------------ |
|
1704 |
// Test case: RemovePlugin(3) |
|
1705 |
//------------------------------------------------------------------------------ |
|
1706 |
void MT_CHSPSConfigurationIf::RemovePlugin_3_L() |
|
1707 |
{ |
|
1708 |
// Pre conditions |
|
1709 |
// Set active configuration to Typical configuration |
|
1710 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1711 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1712 |
// Attach to HSPS |
|
1713 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1714 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1715 |
||
1716 |
// Test step 1 |
|
1717 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1718 |
RunTestStepSyncL( |
|
1719 |
( TUint8* )removeplugin_3_ts_1_method, |
|
1720 |
( TUint8* )removeplugin_3_ts_1_input, |
|
1721 |
( TUint8* )removeplugin_3_ts_1_output ); |
|
1722 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1723 |
||
1724 |
// Test step 2 |
|
1725 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1726 |
RunTestStepSyncL( |
|
1727 |
( TUint8* )removeplugin_3_ts_2_method, |
|
1728 |
( TUint8* )removeplugin_3_ts_2_input, |
|
1729 |
( TUint8* )removeplugin_3_ts_2_output ); |
|
1730 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1731 |
} |
|
1732 |
||
1733 |
//------------------------------------------------------------------------------ |
|
1734 |
// Test case: RemovePlugin(4) |
|
1735 |
//------------------------------------------------------------------------------ |
|
1736 |
void MT_CHSPSConfigurationIf::RemovePlugin_4_L() |
|
1737 |
{ |
|
1738 |
// Pre conditions |
|
1739 |
// Set active configuration to Typical configuration |
|
1740 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1741 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1742 |
// Attach to HSPS |
|
1743 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1744 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1745 |
||
1746 |
// Test step 1 |
|
1747 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1748 |
RunTestStepSyncL( |
|
1749 |
( TUint8* )removeplugin_4_ts_1_method, |
|
1750 |
( TUint8* )removeplugin_4_ts_1_input, |
|
1751 |
( TUint8* )removeplugin_4_ts_1_output ); |
|
1752 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1753 |
||
1754 |
// Test step 2 |
|
1755 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1756 |
RunTestStepSyncL( |
|
1757 |
( TUint8* )removeplugin_4_ts_2_method, |
|
1758 |
( TUint8* )removeplugin_4_ts_2_input, |
|
1759 |
( TUint8* )removeplugin_4_ts_2_output ); |
|
1760 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1761 |
} |
|
1762 |
||
1763 |
//------------------------------------------------------------------------------ |
|
1764 |
// Test case: SetPluginSettings(1) |
|
1765 |
//------------------------------------------------------------------------------ |
|
1766 |
void MT_CHSPSConfigurationIf::SetPluginSettings_1_L() |
|
1767 |
{ |
|
1768 |
// Pre conditions |
|
1769 |
// Set active configuration to Typical configuration |
|
1770 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
1771 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
1772 |
// Attach to HSPS |
|
1773 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1774 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1775 |
||
1776 |
// Test step 1 |
|
1777 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1778 |
RunTestStepSyncL( |
|
1779 |
( TUint8* )setpluginsettings_1_ts_1_method, |
|
1780 |
( TUint8* )setpluginsettings_1_ts_1_input, |
|
1781 |
( TUint8* )setpluginsettings_1_ts_1_output, |
|
1782 |
ETrue ); |
|
1783 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1784 |
||
1785 |
// Test step 2 |
|
1786 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1787 |
RunTestStepSyncL( |
|
1788 |
( TUint8* )setpluginsettings_1_ts_2_method, |
|
1789 |
( TUint8* )setpluginsettings_1_ts_2_input, |
|
1790 |
( TUint8* )setpluginsettings_1_ts_2_output ); |
|
1791 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1792 |
||
1793 |
// Test step 3 |
|
1794 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1795 |
RunTestStepSyncL( |
|
1796 |
( TUint8* )setpluginsettings_1_ts_3_method, |
|
1797 |
( TUint8* )setpluginsettings_1_ts_3_input, |
|
1798 |
( TUint8* )setpluginsettings_1_ts_3_output ); |
|
1799 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1800 |
} |
|
1801 |
||
1802 |
//------------------------------------------------------------------------------ |
|
1803 |
// Test case: SetPluginSettings(2) |
|
1804 |
//------------------------------------------------------------------------------ |
|
1805 |
void MT_CHSPSConfigurationIf::SetPluginSettings_2_L() |
|
1806 |
{ |
|
1807 |
// Pre conditions |
|
1808 |
// Set active configuration to Typical configuration |
|
1809 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1810 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1811 |
// Attach to HSPS |
|
1812 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1813 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1814 |
||
1815 |
// Test step 1 |
|
1816 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1817 |
RunTestStepSyncL( |
|
1818 |
( TUint8* )setpluginsettings_2_ts_1_method, |
|
1819 |
( TUint8* )setpluginsettings_2_ts_1_input, |
|
1820 |
( TUint8* )setpluginsettings_2_ts_1_output ); |
|
1821 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1822 |
||
1823 |
// Test step 2 |
|
1824 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
1825 |
RunTestStepSyncL( |
|
1826 |
( TUint8* )setpluginsettings_2_ts_2_method, |
|
1827 |
( TUint8* )setpluginsettings_2_ts_2_input, |
|
1828 |
( TUint8* )setpluginsettings_2_ts_2_output ); |
|
1829 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1830 |
||
1831 |
// Test step 2 |
|
1832 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
1833 |
RunTestStepSyncL( |
|
1834 |
( TUint8* )setpluginsettings_2_ts_3_method, |
|
1835 |
( TUint8* )setpluginsettings_2_ts_3_input, |
|
1836 |
( TUint8* )setpluginsettings_2_ts_3_output ); |
|
1837 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1838 |
} |
|
1839 |
||
1840 |
//------------------------------------------------------------------------------ |
|
1841 |
// Test case: SetPluginSettings(3) |
|
1842 |
//------------------------------------------------------------------------------ |
|
1843 |
void MT_CHSPSConfigurationIf::SetPluginSettings_3_L() |
|
1844 |
{ |
|
1845 |
// Pre conditions |
|
1846 |
// Set active configuration to Typical configuration |
|
1847 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1848 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1849 |
// Attach to HSPS |
|
1850 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1851 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1852 |
||
1853 |
// Test step 1 |
|
1854 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1855 |
RunTestStepSyncL( |
|
1856 |
( TUint8* )setpluginsettings_3_ts_1_method, |
|
1857 |
( TUint8* )setpluginsettings_3_ts_1_input, |
|
1858 |
( TUint8* )setpluginsettings_3_ts_1_output ); |
|
1859 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1860 |
} |
|
1861 |
||
1862 |
//------------------------------------------------------------------------------ |
|
1863 |
// Test case: SetPluginSettings(4) |
|
1864 |
//------------------------------------------------------------------------------ |
|
1865 |
void MT_CHSPSConfigurationIf::SetPluginSettings_4_L() |
|
1866 |
{ |
|
1867 |
// Pre conditions |
|
1868 |
// Set active configuration to Typical configuration |
|
1869 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1870 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1871 |
// Attach to HSPS |
|
1872 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1873 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1874 |
||
1875 |
// Test step 1 |
|
1876 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1877 |
RunTestStepSyncL( |
|
1878 |
( TUint8* )setpluginsettings_4_ts_1_method, |
|
1879 |
( TUint8* )setpluginsettings_4_ts_1_input, |
|
1880 |
( TUint8* )setpluginsettings_4_ts_1_output ); |
|
1881 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1882 |
} |
|
1883 |
||
1884 |
//------------------------------------------------------------------------------ |
|
1885 |
// Test case: SetPluginSettings(5) |
|
1886 |
//------------------------------------------------------------------------------ |
|
1887 |
void MT_CHSPSConfigurationIf::SetPluginSettings_5_L() |
|
1888 |
{ |
|
1889 |
// Pre conditions |
|
1890 |
// Set active configuration to Typical configuration |
|
1891 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1892 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1893 |
// Attach to HSPS |
|
1894 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1895 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1896 |
||
1897 |
// Test step 1 |
|
1898 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1899 |
RunTestStepSyncL( |
|
1900 |
( TUint8* )setpluginsettings_5_ts_1_method, |
|
1901 |
( TUint8* )setpluginsettings_5_ts_1_input, |
|
1902 |
( TUint8* )setpluginsettings_5_ts_1_output ); |
|
1903 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1904 |
} |
|
1905 |
||
1906 |
//------------------------------------------------------------------------------ |
|
1907 |
// Test case: SetPluginSettings(6) |
|
1908 |
//------------------------------------------------------------------------------ |
|
1909 |
void MT_CHSPSConfigurationIf::SetPluginSettings_6_L() |
|
1910 |
{ |
|
1911 |
// Pre conditions |
|
1912 |
// Set active configuration to Typical configuration |
|
1913 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1914 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1915 |
// Attach to HSPS |
|
1916 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1917 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1918 |
||
1919 |
// Test step 1 |
|
1920 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1921 |
RunTestStepSyncL( |
|
1922 |
( TUint8* )setpluginsettings_6_ts_1_method, |
|
1923 |
( TUint8* )setpluginsettings_6_ts_1_input, |
|
1924 |
( TUint8* )setpluginsettings_6_ts_1_output ); |
|
1925 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1926 |
} |
|
1927 |
||
1928 |
//------------------------------------------------------------------------------ |
|
1929 |
// Test case: GetPluginSettings(1) |
|
1930 |
//------------------------------------------------------------------------------ |
|
1931 |
void MT_CHSPSConfigurationIf::GetPluginSettings_1_L() |
|
1932 |
{ |
|
1933 |
// Pre conditions |
|
1934 |
// Set active configuration to Typical configuration |
|
1935 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1936 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1937 |
// Attach to HSPS |
|
1938 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1939 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1940 |
||
1941 |
// Test step 1 |
|
1942 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1943 |
RunTestStepSyncL( |
|
1944 |
( TUint8* )getpluginsettings_1_ts_1_method, |
|
1945 |
( TUint8* )getpluginsettings_1_ts_1_input, |
|
1946 |
( TUint8* )getpluginsettings_1_ts_1_output, |
|
1947 |
ETrue ); |
|
1948 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1949 |
} |
|
1950 |
||
1951 |
//------------------------------------------------------------------------------ |
|
1952 |
// Test case: GetPluginSettings(2) |
|
1953 |
//------------------------------------------------------------------------------ |
|
1954 |
void MT_CHSPSConfigurationIf::GetPluginSettings_2_L() |
|
1955 |
{ |
|
1956 |
// Pre conditions |
|
1957 |
// Set active configuration to Typical configuration |
|
1958 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1959 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1960 |
// Attach to HSPS |
|
1961 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1962 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1963 |
||
1964 |
// Test step 1 |
|
1965 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1966 |
RunTestStepSyncL( |
|
1967 |
( TUint8* )getpluginsettings_2_ts_1_method, |
|
1968 |
( TUint8* )getpluginsettings_2_ts_1_input, |
|
1969 |
( TUint8* )getpluginsettings_2_ts_1_output ); |
|
1970 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1971 |
} |
|
1972 |
||
1973 |
//------------------------------------------------------------------------------ |
|
1974 |
// Test case: GetPluginSettings(3) |
|
1975 |
//------------------------------------------------------------------------------ |
|
1976 |
void MT_CHSPSConfigurationIf::GetPluginSettings_3_L() |
|
1977 |
{ |
|
1978 |
// Pre conditions |
|
1979 |
// Set active configuration to Typical configuration |
|
1980 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
1981 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
1982 |
// Attach to HSPS |
|
1983 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
1984 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
1985 |
||
1986 |
// Test step 1 |
|
1987 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
1988 |
RunTestStepSyncL( |
|
1989 |
( TUint8* )getpluginsettings_3_ts_1_method, |
|
1990 |
( TUint8* )getpluginsettings_3_ts_1_input, |
|
1991 |
( TUint8* )getpluginsettings_3_ts_1_output ); |
|
1992 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
1993 |
} |
|
1994 |
||
1995 |
//------------------------------------------------------------------------------ |
|
1996 |
// Test case: MovePlugins(1) |
|
1997 |
//------------------------------------------------------------------------------ |
|
1998 |
void MT_CHSPSConfigurationIf::MovePlugins_1_L() |
|
1999 |
{ |
|
2000 |
// Pre conditions |
|
2001 |
// Set active configuration to Typical configuration |
|
2002 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2003 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2004 |
||
2005 |
// Attach to HSPS |
|
2006 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2007 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2008 |
||
2009 |
// Test step 1 |
|
2010 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2011 |
RunTestStepSyncL( |
|
2012 |
( TUint8* )moveplugins_1_ts_1_method, |
|
2013 |
( TUint8* )moveplugins_1_ts_1_input, |
|
2014 |
( TUint8* )moveplugins_1_ts_1_output, |
|
2015 |
ETrue ); |
|
2016 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2017 |
||
2018 |
// Test step 2 |
|
2019 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2020 |
RunTestStepSyncL( |
|
2021 |
( TUint8* )moveplugins_1_ts_2_method, |
|
2022 |
( TUint8* )moveplugins_1_ts_2_input, |
|
2023 |
( TUint8* )moveplugins_1_ts_2_output ); |
|
2024 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2025 |
||
2026 |
// Test step 3 |
|
2027 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
2028 |
RunTestStepSyncL( |
|
2029 |
( TUint8* )moveplugins_1_ts_3_method, |
|
2030 |
( TUint8* )moveplugins_1_ts_3_input, |
|
2031 |
( TUint8* )moveplugins_1_ts_3_output ); |
|
2032 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2033 |
||
2034 |
// Test step 4 |
|
2035 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
2036 |
RunTestStepSyncL( |
|
2037 |
( TUint8* )moveplugins_1_ts_4_method, |
|
2038 |
( TUint8* )moveplugins_1_ts_4_input, |
|
2039 |
( TUint8* )moveplugins_1_ts_4_output ); |
|
2040 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2041 |
} |
|
2042 |
||
2043 |
//------------------------------------------------------------------------------ |
|
2044 |
// Test case: MovePlugins(2) |
|
2045 |
//------------------------------------------------------------------------------ |
|
2046 |
void MT_CHSPSConfigurationIf::MovePlugins_2_L() |
|
2047 |
{ |
|
2048 |
// Pre conditions |
|
2049 |
// Set active configuration to Typical configuration |
|
2050 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2051 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2052 |
||
2053 |
// Attach to HSPS |
|
2054 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2055 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2056 |
||
2057 |
// Test step 1 |
|
2058 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2059 |
RunTestStepSyncL( |
|
2060 |
( TUint8* )moveplugins_2_ts_1_method, |
|
2061 |
( TUint8* )moveplugins_2_ts_1_input, |
|
2062 |
( TUint8* )moveplugins_2_ts_1_output ); |
|
2063 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2064 |
} |
|
2065 |
||
2066 |
//------------------------------------------------------------------------------ |
|
2067 |
// Test case: MovePlugins(3) |
|
2068 |
//------------------------------------------------------------------------------ |
|
2069 |
void MT_CHSPSConfigurationIf::MovePlugins_3_L() |
|
2070 |
{ |
|
2071 |
// Pre conditions |
|
2072 |
// Set active configuration to Typical configuration |
|
2073 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2074 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2075 |
||
2076 |
// Attach to HSPS |
|
2077 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2078 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2079 |
||
2080 |
// Test step 1 |
|
2081 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2082 |
RunTestStepSyncL( |
|
2083 |
( TUint8* )moveplugins_3_ts_1_method, |
|
2084 |
( TUint8* )moveplugins_3_ts_1_input, |
|
2085 |
( TUint8* )moveplugins_3_ts_1_output ); |
|
2086 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2087 |
} |
|
2088 |
||
2089 |
//------------------------------------------------------------------------------ |
|
2090 |
// Test case: MovePlugins(4) |
|
2091 |
//------------------------------------------------------------------------------ |
|
2092 |
void MT_CHSPSConfigurationIf::MovePlugins_4_L() |
|
2093 |
{ |
|
2094 |
// Pre conditions |
|
2095 |
// Set active configuration to Typical configuration |
|
2096 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2097 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2098 |
||
2099 |
// Attach to HSPS |
|
2100 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2101 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2102 |
||
2103 |
// Test step 1 |
|
2104 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2105 |
RunTestStepSyncL( |
|
2106 |
( TUint8* )moveplugins_4_ts_1_method, |
|
2107 |
( TUint8* )moveplugins_4_ts_1_input, |
|
2108 |
( TUint8* )moveplugins_4_ts_1_output ); |
|
2109 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2110 |
} |
|
2111 |
||
2112 |
//------------------------------------------------------------------------------ |
|
2113 |
// Test case: MovePlugins(5) |
|
2114 |
//------------------------------------------------------------------------------ |
|
2115 |
void MT_CHSPSConfigurationIf::MovePlugins_5_L() |
|
2116 |
{ |
|
2117 |
// Pre conditions |
|
2118 |
// Set active configuration to Typical configuration |
|
2119 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2120 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2121 |
||
2122 |
// Attach to HSPS |
|
2123 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2124 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2125 |
||
2126 |
// Test step 1 |
|
2127 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2128 |
RunTestStepSyncL( |
|
2129 |
( TUint8* )moveplugins_5_ts_1_method, |
|
2130 |
( TUint8* )moveplugins_5_ts_1_input, |
|
2131 |
( TUint8* )moveplugins_5_ts_1_output ); |
|
2132 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2133 |
} |
|
2134 |
||
2135 |
//------------------------------------------------------------------------------ |
|
2136 |
// Test case: MovePlugins(6) |
|
2137 |
//------------------------------------------------------------------------------ |
|
2138 |
void MT_CHSPSConfigurationIf::MovePlugins_6_L() |
|
2139 |
{ |
|
2140 |
// Pre conditions |
|
2141 |
||
2142 |
// Attach to HSPS |
|
2143 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2144 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2145 |
||
2146 |
// Test step 1 |
|
2147 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2148 |
RunTestStepSyncL( |
|
2149 |
( TUint8* )moveplugins_6_ts_1_method, |
|
2150 |
( TUint8* )moveplugins_6_ts_1_input, |
|
2151 |
( TUint8* )moveplugins_6_ts_1_output ); |
|
2152 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2153 |
||
2154 |
// Test step 2 |
|
2155 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2156 |
RunTestStepSyncL( |
|
2157 |
( TUint8* )moveplugins_6_ts_2_method, |
|
2158 |
( TUint8* )moveplugins_6_ts_2_input, |
|
2159 |
( TUint8* )moveplugins_6_ts_2_output ); |
|
2160 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2161 |
||
2162 |
// Test step 3 |
|
2163 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
2164 |
RunTestStepSyncL( |
|
2165 |
( TUint8* )moveplugins_6_ts_3_method, |
|
2166 |
( TUint8* )moveplugins_6_ts_3_input, |
|
2167 |
( TUint8* )moveplugins_6_ts_3_output ); |
|
2168 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2169 |
||
2170 |
// Test step 4 |
|
2171 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
2172 |
RunTestStepSyncL( |
|
2173 |
( TUint8* )moveplugins_6_ts_4_method, |
|
2174 |
( TUint8* )moveplugins_6_ts_4_input, |
|
2175 |
( TUint8* )moveplugins_6_ts_4_output ); |
|
2176 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2177 |
||
2178 |
// Test step 5 |
|
2179 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
2180 |
RunTestStepSyncL( |
|
2181 |
( TUint8* )moveplugins_6_ts_5_method, |
|
2182 |
( TUint8* )moveplugins_6_ts_5_input, |
|
2183 |
( TUint8* )moveplugins_6_ts_5_output ); |
|
2184 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2185 |
} |
|
2186 |
||
2187 |
//------------------------------------------------------------------------------ |
|
2188 |
// Test case: ReplacePlugin_1_L(1) |
|
2189 |
//------------------------------------------------------------------------------ |
|
2190 |
void MT_CHSPSConfigurationIf::ReplacePlugin_1_L() |
|
2191 |
{ |
|
2192 |
// Pre conditions |
|
2193 |
||
2194 |
// Set active configuration to Typical configuration |
|
2195 |
EUNIT_PRINT( _L8( "Pre conditions: active configuration is Typical" ) ); |
|
2196 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2197 |
||
2198 |
// Attach to HSPS |
|
2199 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2200 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2201 |
||
2202 |
// Test step 1 |
|
2203 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2204 |
RunTestStepSyncL( |
|
2205 |
( TUint8* )replaceplugin_1_ts_1_method, |
|
2206 |
( TUint8* )replaceplugin_1_ts_1_input, |
|
2207 |
( TUint8* )replaceplugin_1_ts_1_output ); |
|
2208 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2209 |
||
2210 |
// Test step 2 |
|
2211 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2212 |
RunTestStepSyncL( |
|
2213 |
( TUint8* )replaceplugin_1_ts_2_method, |
|
2214 |
( TUint8* )replaceplugin_1_ts_2_input, |
|
2215 |
( TUint8* )replaceplugin_1_ts_2_output ); |
|
2216 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2217 |
||
2218 |
// Test step 3 |
|
2219 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
2220 |
RunTestStepSyncL( |
|
2221 |
( TUint8* )replaceplugin_1_ts_3_method, |
|
2222 |
( TUint8* )replaceplugin_1_ts_3_input, |
|
2223 |
( TUint8* )replaceplugin_1_ts_3_output ); |
|
2224 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2225 |
||
2226 |
// Test step 4 |
|
2227 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
2228 |
RunTestStepSyncL( |
|
2229 |
( TUint8* )replaceplugin_1_ts_4_method, |
|
2230 |
( TUint8* )replaceplugin_1_ts_4_input, |
|
2231 |
( TUint8* )replaceplugin_1_ts_4_output ); |
|
2232 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2233 |
||
2234 |
// Test step 5 |
|
2235 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
2236 |
RunTestStepSyncL( |
|
2237 |
( TUint8* )replaceplugin_1_ts_5_method, |
|
2238 |
( TUint8* )replaceplugin_1_ts_5_input, |
|
2239 |
( TUint8* )replaceplugin_1_ts_5_output ); |
|
2240 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2241 |
||
2242 |
// Test step 6 |
|
2243 |
EUNIT_PRINT( _L8( "Test step 6" ) ); |
|
2244 |
RunTestStepSyncL( |
|
2245 |
( TUint8* )replaceplugin_1_ts_6_method, |
|
2246 |
( TUint8* )replaceplugin_1_ts_6_input, |
|
2247 |
( TUint8* )replaceplugin_1_ts_6_output ); |
|
2248 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2249 |
||
2250 |
// Test step 7 |
|
2251 |
EUNIT_PRINT( _L8( "Test step 7" ) ); |
|
2252 |
RunTestStepSyncL( |
|
2253 |
( TUint8* )replaceplugin_1_ts_7_method, |
|
2254 |
( TUint8* )replaceplugin_1_ts_7_input, |
|
2255 |
( TUint8* )replaceplugin_1_ts_7_output ); |
|
2256 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2257 |
||
2258 |
// Test step 8 |
|
2259 |
EUNIT_PRINT( _L8( "Test step 8" ) ); |
|
2260 |
RunTestStepSyncL( |
|
2261 |
( TUint8* )replaceplugin_1_ts_8_method, |
|
2262 |
( TUint8* )replaceplugin_1_ts_8_input, |
|
2263 |
( TUint8* )replaceplugin_1_ts_8_output ); |
|
2264 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2265 |
||
2266 |
// Test step 9 |
|
2267 |
EUNIT_PRINT( _L8( "Test step 9" ) ); |
|
2268 |
RunTestStepSyncL( |
|
2269 |
( TUint8* )replaceplugin_1_ts_9_method, |
|
2270 |
( TUint8* )replaceplugin_1_ts_9_input, |
|
2271 |
( TUint8* )replaceplugin_1_ts_9_output ); |
|
2272 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2273 |
||
2274 |
// Make sure resources of the typical-widget are removed |
|
2275 |
// from client's private folder, should be restored in next step |
|
2276 |
if ( BaflUtils::FileExists( iFileserver, _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg" ) ) |
|
2277 |
|| BaflUtils::FileExists( iFileserver, _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp" ) ) ) |
|
2278 |
{ |
|
2279 |
CFileMan* fileManager = CFileMan::NewL( iFileserver ); |
|
2280 |
CleanupStack::PushL( fileManager ); |
|
2281 |
User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg" ) ) ); |
|
2282 |
User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp" ) ) ); |
|
2283 |
CleanupStack::PopAndDestroy( fileManager ); |
|
2284 |
if ( BaflUtils::FileExists( iFileserver, _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg" )) |
|
2285 |
|| BaflUtils::FileExists( iFileserver, _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp" ) ) ) |
|
2286 |
{ |
|
2287 |
User::Leave( KErrGeneral ); |
|
2288 |
} |
|
2289 |
} |
|
2290 |
||
2291 |
// Test step 10 |
|
2292 |
EUNIT_PRINT( _L8( "Test step 10" ) ); |
|
2293 |
RunTestStepSyncL( |
|
2294 |
( TUint8* )replaceplugin_1_ts_10_method, |
|
2295 |
( TUint8* )replaceplugin_1_ts_10_input, |
|
2296 |
( TUint8* )replaceplugin_1_ts_10_output ); |
|
2297 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2298 |
||
2299 |
// Test step 11 |
|
2300 |
EUNIT_PRINT( _L8( "Test step 11" ) ); |
|
2301 |
RunTestStepSyncL( |
|
2302 |
( TUint8* )replaceplugin_1_ts_11_method, |
|
2303 |
( TUint8* )replaceplugin_1_ts_11_input, |
|
2304 |
( TUint8* )replaceplugin_1_ts_11_output ); |
|
2305 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2306 |
||
2307 |
EUNIT_PRINT( _L8( "post condition check for resource file copy" ) ); |
|
2308 |
ResetResources(); |
|
2309 |
AddResourceL( _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\hs_logo.jpg" ), 18179 ); |
|
2310 |
AddResourceL( _L( "c:\\private\\20000fb1\\2456\\270513751\\536916256\\1.0\\sources\\widget.bmp" ), 6446 ); |
|
2311 |
CheckResourcesL(); |
|
2312 |
EUNIT_PRINT( _L8( "post condition check for resource file copy passed" ) ); |
|
2313 |
} |
|
2314 |
||
2315 |
//------------------------------------------------------------------------------ |
|
2316 |
// Test case: GetAppConfs(1) |
|
2317 |
//------------------------------------------------------------------------------ |
|
2318 |
void MT_CHSPSConfigurationIf::GetAppConfs_1_L() |
|
2319 |
{ |
|
2320 |
// Pre conditions |
|
2321 |
// Set active configuration to Typical configuration |
|
2322 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2323 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2324 |
||
2325 |
// Attach to HSPS |
|
2326 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2327 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2328 |
||
2329 |
// Test step 1 |
|
2330 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2331 |
RunTestStepSyncL( |
|
2332 |
( TUint8* )getappconfs_1_ts_1_method, |
|
2333 |
( TUint8* )getappconfs_1_ts_1_input, |
|
2334 |
( TUint8* )getappconfs_1_ts_1_output, |
|
2335 |
ETrue ); |
|
2336 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2337 |
} |
|
2338 |
||
2339 |
//------------------------------------------------------------------------------ |
|
2340 |
// Test case: SetActiveAppConf(1) |
|
2341 |
//------------------------------------------------------------------------------ |
|
2342 |
void MT_CHSPSConfigurationIf::SetActiveAppConf_1_L() |
|
2343 |
{ |
|
2344 |
// Pre conditions |
|
2345 |
// Set active configuration to Typical configuration |
|
2346 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2347 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2348 |
||
2349 |
// Attach to HSPS |
|
2350 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2351 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2352 |
||
2353 |
// Test step 1 |
|
2354 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2355 |
RunTestStepSyncL( |
|
2356 |
( TUint8* )setactiveappconf_1_ts_1_method, |
|
2357 |
( TUint8* )setactiveappconf_1_ts_1_input, |
|
2358 |
( TUint8* )setactiveappconf_1_ts_1_output, |
|
2359 |
ETrue ); |
|
2360 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2361 |
||
2362 |
// Test step 2 |
|
2363 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2364 |
RunTestStepSyncL( |
|
2365 |
( TUint8* )setactiveappconf_1_ts_2_method, |
|
2366 |
( TUint8* )setactiveappconf_1_ts_2_input, |
|
2367 |
( TUint8* )setactiveappconf_1_ts_2_output ); |
|
2368 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2369 |
} |
|
2370 |
||
2371 |
//------------------------------------------------------------------------------ |
|
2372 |
// Test case: SetActiveAppConf(2) |
|
2373 |
//------------------------------------------------------------------------------ |
|
2374 |
void MT_CHSPSConfigurationIf::SetActiveAppConf_2_L() |
|
2375 |
{ |
|
2376 |
// Pre conditions |
|
2377 |
// Set active configuration to Typical configuration |
|
2378 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2379 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2380 |
||
2381 |
// Attach to HSPS |
|
2382 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2383 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2384 |
||
2385 |
// Test step 1 |
|
2386 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2387 |
RunTestStepSyncL( |
|
2388 |
( TUint8* )setactiveappconf_2_ts_1_method, |
|
2389 |
( TUint8* )setactiveappconf_2_ts_1_input, |
|
2390 |
( TUint8* )setactiveappconf_2_ts_1_output ); |
|
2391 |
||
2392 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2393 |
||
2394 |
// Test step 2 |
|
2395 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2396 |
||
2397 |
RunTestStepSyncL( |
|
2398 |
( TUint8* )setactiveappconf_2_ts_2_method, |
|
2399 |
( TUint8* )setactiveappconf_2_ts_2_input, |
|
2400 |
( TUint8* )setactiveappconf_2_ts_2_output ); |
|
2401 |
||
2402 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2403 |
} |
|
2404 |
||
2405 |
//------------------------------------------------------------------------------ |
|
2406 |
// Test case: SetActiveAppConf(3) |
|
2407 |
//------------------------------------------------------------------------------ |
|
2408 |
void MT_CHSPSConfigurationIf::SetActiveAppConf_3_L() |
|
2409 |
{ |
|
2410 |
// Pre conditions |
|
2411 |
// Set active configuration to Typical configuration |
|
2412 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2413 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2414 |
||
2415 |
// Attach to HSPS |
|
2416 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2417 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2418 |
||
2419 |
// Test step 1 |
|
2420 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2421 |
RunTestStepSyncL( |
|
2422 |
( TUint8* )setactiveappconf_3_ts_1_method, |
|
2423 |
( TUint8* )setactiveappconf_3_ts_1_input, |
|
2424 |
( TUint8* )setactiveappconf_3_ts_1_output ); |
|
2425 |
||
2426 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2427 |
||
2428 |
// Test step 2 |
|
2429 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2430 |
||
2431 |
RunTestStepSyncL( |
|
2432 |
( TUint8* )setactiveappconf_3_ts_2_method, |
|
2433 |
( TUint8* )setactiveappconf_3_ts_2_input, |
|
2434 |
( TUint8* )setactiveappconf_3_ts_2_output ); |
|
2435 |
||
2436 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2437 |
} |
|
2438 |
||
2439 |
//------------------------------------------------------------------------------ |
|
2440 |
// Test case: SetActiveAppConf(4) |
|
2441 |
//------------------------------------------------------------------------------ |
|
2442 |
void MT_CHSPSConfigurationIf::SetActiveAppConf_4_L() |
|
2443 |
{ |
|
2444 |
// Pre conditions |
|
2445 |
// Set active configuration to Typical configuration |
|
2446 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2447 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2448 |
||
2449 |
// Attach to HSPS |
|
2450 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2451 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2452 |
||
2453 |
// Test step 1 |
|
2454 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2455 |
RunTestStepSyncL( |
|
2456 |
( TUint8* )setactiveappconf_4_ts_1_method, |
|
2457 |
( TUint8* )setactiveappconf_4_ts_1_input, |
|
2458 |
( TUint8* )setactiveappconf_4_ts_1_output ); |
|
2459 |
||
2460 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2461 |
||
2462 |
// Test step 2 |
|
2463 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2464 |
||
2465 |
RunTestStepSyncL( |
|
2466 |
( TUint8* )setactiveappconf_4_ts_2_method, |
|
2467 |
( TUint8* )setactiveappconf_4_ts_2_input, |
|
2468 |
( TUint8* )setactiveappconf_4_ts_2_output ); |
|
2469 |
||
2470 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2471 |
} |
|
2472 |
||
2473 |
//------------------------------------------------------------------------------ |
|
2474 |
// Test case: RequestNotify(1) |
|
2475 |
//------------------------------------------------------------------------------ |
|
2476 |
void MT_CHSPSConfigurationIf::RequestNotify_1_L() |
|
2477 |
{ |
|
2478 |
// Pre conditions |
|
2479 |
// Set active configuration to Typical configuration |
|
2480 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2481 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2482 |
||
2483 |
// Test step 1 |
|
2484 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2485 |
RunTestStepAsyncL( |
|
2486 |
( TUint8* )requestnotify_1_ts_1_method, |
|
2487 |
( TUint8* )requestnotify_1_ts_1_input, |
|
2488 |
( TUint8* )requestnotify_1_ts_1_output, |
|
2489 |
( TInt ) requestnotify_1_ts_1_trigger ); |
|
2490 |
||
2491 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2492 |
} |
|
2493 |
||
2494 |
//------------------------------------------------------------------------------ |
|
2495 |
// Test case: RequestNotify(2) |
|
2496 |
//------------------------------------------------------------------------------ |
|
2497 |
void MT_CHSPSConfigurationIf::RequestNotify_2_L() |
|
2498 |
{ |
|
2499 |
// Pre conditions |
|
2500 |
// Set active configuration to Typical configuration |
|
2501 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2502 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2503 |
||
2504 |
// Test step 1 |
|
2505 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2506 |
RunTestStepAsyncL( |
|
2507 |
( TUint8* )requestnotify_2_ts_1_method, |
|
2508 |
( TUint8* )requestnotify_2_ts_1_input, |
|
2509 |
( TUint8* )requestnotify_2_ts_1_output, |
|
2510 |
( TInt ) requestnotify_2_ts_1_trigger ); |
|
2511 |
||
2512 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2513 |
} |
|
2514 |
||
2515 |
//------------------------------------------------------------------------------ |
|
2516 |
// Test case: RequestNotify(3) |
|
2517 |
//------------------------------------------------------------------------------ |
|
2518 |
void MT_CHSPSConfigurationIf::RequestNotify_3_L() |
|
2519 |
{ |
|
2520 |
// Pre conditions |
|
2521 |
// Set active configuration to Typical configuration |
|
2522 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2523 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2524 |
||
2525 |
// Test step 1 |
|
2526 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2527 |
RunTestStepAsyncL( |
|
2528 |
( TUint8* )requestnotify_3_ts_1_method, |
|
2529 |
( TUint8* )requestnotify_3_ts_1_input, |
|
2530 |
( TUint8* )requestnotify_3_ts_1_output, |
|
2531 |
( TInt ) requestnotify_3_ts_1_trigger ); |
|
2532 |
||
2533 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2534 |
} |
|
2535 |
||
2536 |
//------------------------------------------------------------------------------ |
|
2537 |
// Test case: RequestNotify(4) |
|
2538 |
//------------------------------------------------------------------------------ |
|
2539 |
void MT_CHSPSConfigurationIf::RequestNotify_4_L() |
|
2540 |
{ |
|
2541 |
// Pre conditions |
|
2542 |
// Set active configuration to Typical configuration |
|
2543 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2544 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2545 |
||
2546 |
// Test step 1 |
|
2547 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2548 |
RunTestStepAsyncL( |
|
2549 |
( TUint8* )requestnotify_4_ts_1_method, |
|
2550 |
( TUint8* )requestnotify_4_ts_1_input, |
|
2551 |
( TUint8* )requestnotify_4_ts_1_output, |
|
2552 |
( TInt ) requestnotify_4_ts_1_trigger ); |
|
2553 |
||
2554 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2555 |
||
2556 |
// Test step 2 |
|
2557 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2558 |
RunTestStepAsyncL( |
|
2559 |
( TUint8* )requestnotify_4_ts_2_method, |
|
2560 |
( TUint8* )requestnotify_4_ts_2_input, |
|
2561 |
( TUint8* )requestnotify_4_ts_2_output, |
|
2562 |
( TInt ) requestnotify_4_ts_2_trigger ); |
|
2563 |
||
2564 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2565 |
} |
|
2566 |
||
2567 |
//------------------------------------------------------------------------------ |
|
2568 |
// Test case: RequestNotify(5) |
|
2569 |
//------------------------------------------------------------------------------ |
|
2570 |
void MT_CHSPSConfigurationIf::RequestNotify_5_L() |
|
2571 |
{ |
|
2572 |
// Pre conditions |
|
2573 |
// Set active configuration to Typical configuration |
|
2574 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
2575 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2576 |
||
2577 |
// Test step 1 |
|
2578 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2579 |
RunTestStepAsyncL( |
|
2580 |
( TUint8* )requestnotify_5_ts_1_method, |
|
2581 |
( TUint8* )requestnotify_5_ts_1_input, |
|
2582 |
( TUint8* )requestnotify_5_ts_1_output, |
|
2583 |
( TInt ) requestnotify_5_ts_1_trigger ); |
|
2584 |
||
2585 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2586 |
} |
|
2587 |
||
2588 |
//------------------------------------------------------------------------------ |
|
2589 |
// Test case: RequestNotify(6) |
|
2590 |
//------------------------------------------------------------------------------ |
|
2591 |
void MT_CHSPSConfigurationIf::RequestNotify_6_L() |
|
2592 |
{ |
|
2593 |
// Pre conditions |
|
2594 |
// Set active configuration to Minimal configuration |
|
2595 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
2596 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2597 |
||
2598 |
// Test step 1: install a SISX package and check output from received notifiction |
|
2599 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2600 |
RunTestStepAsyncL( |
|
2601 |
( TUint8* )requestnotify_6_ts_1_method, |
|
2602 |
( TUint8* )requestnotify_6_ts_1_input, |
|
2603 |
( TUint8* )requestnotify_6_ts_1_output, |
|
2604 |
( TInt ) requestnotify_6_ts_1_trigger ); |
|
2605 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2606 |
||
2607 |
// Test step 2: update the SISX package and check output from received notifiction |
|
2608 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2609 |
RunTestStepAsyncL( |
|
2610 |
( TUint8* )requestnotify_6_ts_2_method, |
|
2611 |
( TUint8* )requestnotify_6_ts_2_input, |
|
2612 |
( TUint8* )requestnotify_6_ts_2_output, |
|
2613 |
( TInt ) requestnotify_6_ts_2_trigger ); |
|
2614 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2615 |
||
2616 |
// Attach to HSPS, get active app configuration which generates full application configuration with IDs |
|
2617 |
EUNIT_PRINT( _L8( "Attach to HSPS service IConfiguration interface" ) ); |
|
2618 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2619 |
||
2620 |
// Test step 3: add the installed v2 plugin to 1st view in the Minimal root configuration |
|
2621 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
2622 |
RunTestStepSyncL( |
|
2623 |
( TUint8* )requestnotify_6_ts_3_method, |
|
2624 |
( TUint8* )requestnotify_6_ts_3_input, |
|
2625 |
( TUint8* )requestnotify_6_ts_3_output ); |
|
2626 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2627 |
||
2628 |
// Detach so that the next Typical app configuration gets read |
|
2629 |
TRAP_IGNORE( DetachServiceL() ); |
|
2630 |
||
2631 |
// Set active configuration to Typical configuration |
|
2632 |
EUNIT_PRINT( _L8( "Set Active configuration Typical" ) ); |
|
2633 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
2634 |
||
2635 |
// Attach to HSPS, get active app configuration which generates full application configuration with IDs |
|
2636 |
EUNIT_PRINT( _L8( "Attach to HSPS service IConfiguration interface" ) ); |
|
2637 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2638 |
||
2639 |
// Test step 4: add the installed v2 plugin to 1st view in the Typical root configuration |
|
2640 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
2641 |
RunTestStepSyncL( |
|
2642 |
( TUint8* )requestnotify_6_ts_4_method, |
|
2643 |
( TUint8* )requestnotify_6_ts_4_input, |
|
2644 |
( TUint8* )requestnotify_6_ts_4_output ); |
|
2645 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2646 |
||
2647 |
TRAP_IGNORE( DetachServiceL() ); |
|
2648 |
||
2649 |
// Test step 5: uninstall the SISX package and check output from received notification |
|
2650 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
2651 |
RunTestStepAsyncL( |
|
2652 |
( TUint8* )requestnotify_6_ts_5_method, |
|
2653 |
( TUint8* )requestnotify_6_ts_5_input, |
|
2654 |
( TUint8* )requestnotify_6_ts_5_output, |
|
2655 |
( TInt ) requestnotify_6_ts_5_trigger ); |
|
2656 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2657 |
||
2658 |
EUNIT_PRINT( _L8( "Set Active configuration Minimal" ) ); |
|
2659 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
2660 |
||
2661 |
// Attach to HSPS, get active app configuration which generates full application configuration with IDs |
|
2662 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2663 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2664 |
||
2665 |
// Test step 6: get plugin conf from the plugin instance in the Minimal root configuration |
|
2666 |
EUNIT_PRINT( _L8( "Test step 6" ) ); |
|
2667 |
RunTestStepSyncL( |
|
2668 |
( TUint8* )requestnotify_6_ts_6_method, |
|
2669 |
( TUint8* )requestnotify_6_ts_6_input, |
|
2670 |
( TUint8* )requestnotify_6_ts_6_output ); |
|
2671 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2672 |
} |
|
2673 |
||
2674 |
||
2675 |
//------------------------------------------------------------------------------ |
|
2676 |
// Test case: SisxUpgrade(1) |
|
2677 |
//------------------------------------------------------------------------------ |
|
2678 |
void MT_CHSPSConfigurationIf::SisxUpgrade_1_L() |
|
2679 |
{ |
|
2680 |
// Pre conditions |
|
2681 |
||
2682 |
// Attach to HSPS |
|
2683 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2684 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2685 |
||
2686 |
// Test step 1: |
|
2687 |
EUNIT_PRINT( _L8( "Test step 1: simulate installation of a SISX package" ) ); |
|
2688 |
||
2689 |
CFileMan* fileManager = CFileMan::NewL( iFileserver ); |
|
2690 |
CleanupStack::PushL( fileManager ); |
|
2691 |
||
2692 |
// Copy installation files to c\private\200159c0\import |
|
2693 |
User::LeaveIfError( fileManager->Copy( |
|
2694 |
_L( "c:\\data\\mt_hsps\\installed_widget\\0\\" ), |
|
2695 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\0\\" ), |
|
2696 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2697 |
User::LeaveIfError( fileManager->Copy( |
|
2698 |
_L( "c:\\data\\mt_hsps\\installed_widget\\1\\" ), |
|
2699 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\1\\" ), |
|
2700 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2701 |
User::LeaveIfError( fileManager->Copy( |
|
2702 |
_L( "c:\\data\\mt_hsps\\installed_widget\\9\\" ), |
|
2703 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\9\\" ), |
|
2704 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2705 |
User::LeaveIfError( fileManager->Copy( |
|
2706 |
_L( "c:\\data\\mt_hsps\\installed_widget\\widgetconfiguration.xml" ), |
|
2707 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2708 |
CFileMan::EOverWrite ) ); |
|
2709 |
User::LeaveIfError( fileManager->Copy( |
|
2710 |
_L( "c:\\data\\mt_hsps\\installed_widget\\manifest.dat" ), |
|
2711 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2712 |
CFileMan::EOverWrite ) ); |
|
2713 |
User::LeaveIfError( fileManager->Copy( |
|
2714 |
_L( "c:\\data\\mt_hsps\\installed_widget\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2715 |
_L( "c:\\private\\200159c0\\import\\" ), |
|
2716 |
CFileMan::EOverWrite ) ); |
|
2717 |
||
2718 |
// Wait until configuration is installed |
|
2719 |
User::After( 4000000 ); |
|
2720 |
||
2721 |
// Make sure "InstalledWidget" is installed |
|
2722 |
if ( !BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2723 |
{ |
|
2724 |
// Installation failed - remove imports to be able to re-run the test again |
|
2725 |
// The ChspsThemeServer::HandleConfigurationImportsL does handle newly |
|
2726 |
// added files only |
|
2727 |
User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2728 |
fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133.dat" ), |
|
2729 |
0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2730 |
User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2731 |
||
2732 |
// Leave - the test was not successfull |
|
2733 |
User::Leave( KErrGeneral ); |
|
2734 |
} |
|
2735 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2736 |
||
2737 |
// Test step 1: |
|
2738 |
EUNIT_PRINT( _L8( "Test step 2: simulate upgrade to v2 of a SISX package" ) ); |
|
2739 |
// Copy installation files to c\private\200159c0\import |
|
2740 |
User::LeaveIfError( fileManager->Copy( |
|
2741 |
_L( "c:\\data\\mt_hsps\\installed_widget_v2\\0\\" ), |
|
2742 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\2.0\\0\\" ), |
|
2743 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2744 |
User::LeaveIfError( fileManager->Copy( |
|
2745 |
_L( "c:\\data\\mt_hsps\\installed_widget_v2\\1\\" ), |
|
2746 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\2.0\\1\\" ), |
|
2747 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2748 |
User::LeaveIfError( fileManager->Copy( |
|
2749 |
_L( "c:\\data\\mt_hsps\\installed_widget_v2\\9\\" ), |
|
2750 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\2.0\\9\\" ), |
|
2751 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2752 |
User::LeaveIfError( fileManager->Copy( |
|
2753 |
_L( "c:\\data\\mt_hsps\\installed_widget_v2\\widgetconfiguration.xml" ), |
|
2754 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\2.0\\" ), |
|
2755 |
CFileMan::EOverWrite ) ); |
|
2756 |
User::LeaveIfError( fileManager->Copy( |
|
2757 |
_L( "c:\\data\\mt_hsps\\installed_widget_v2\\manifest.dat" ), |
|
2758 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\2.0\\" ), |
|
2759 |
CFileMan::EOverWrite ) ); |
|
2760 |
User::LeaveIfError( fileManager->Copy( |
|
2761 |
_L( "c:\\data\\mt_hsps\\installed_widget_v2\\plugin_0998_101FB657_2000B133_2.0.dat" ), |
|
2762 |
_L( "c:\\private\\200159c0\\import\\" ), |
|
2763 |
CFileMan::EOverWrite ) ); |
|
2764 |
||
2765 |
// Wait until configuration is installed |
|
2766 |
User::After( 4000000 ); |
|
2767 |
||
2768 |
// Make sure "InstalledWidget v1" is removed |
|
2769 |
if ( BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2770 |
{ |
|
2771 |
// Installation failed - remove imports to be able to re-run the test again |
|
2772 |
// The ChspsThemeServer::HandleConfigurationImportsL does handle newly |
|
2773 |
// added files only |
|
2774 |
User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2775 |
fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2776 |
0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2777 |
fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_2.0.dat" ), |
|
2778 |
0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2779 |
||
2780 |
User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2781 |
User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_2.0.dat" ) ) ); |
|
2782 |
// Leave - the test was not successfull |
|
2783 |
User::Leave( KErrGeneral ); |
|
2784 |
} |
|
2785 |
||
2786 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2787 |
||
2788 |
||
2789 |
// Test step 3: |
|
2790 |
EUNIT_PRINT( _L8( "Test step 3: simulate uninstalation of a SISX package" ) ); |
|
2791 |
// Remove installation files to c\private\200159c0\import |
|
2792 |
User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2793 |
fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2794 |
0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2795 |
fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_2.0.dat" ), |
|
2796 |
0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2797 |
User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2798 |
User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_2.0.dat" ) ) ); |
|
2799 |
||
2800 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2801 |
User::After( 4000000 ); |
|
2802 |
||
2803 |
// check |
|
2804 |
// Copy installation files to c\private\200159c0\import |
|
2805 |
EUNIT_PRINT( _L8( "Test step 4: simulate installation of a SISX package" ) ); |
|
2806 |
User::LeaveIfError( fileManager->Copy( |
|
2807 |
_L( "c:\\data\\mt_hsps\\installed_widget\\0\\" ), |
|
2808 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\0\\" ), |
|
2809 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2810 |
User::LeaveIfError( fileManager->Copy( |
|
2811 |
_L( "c:\\data\\mt_hsps\\installed_widget\\1\\" ), |
|
2812 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\1\\" ), |
|
2813 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2814 |
User::LeaveIfError( fileManager->Copy( |
|
2815 |
_L( "c:\\data\\mt_hsps\\installed_widget\\9\\" ), |
|
2816 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\9\\" ), |
|
2817 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2818 |
User::LeaveIfError( fileManager->Copy( |
|
2819 |
_L( "c:\\data\\mt_hsps\\installed_widget\\widgetconfiguration.xml" ), |
|
2820 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2821 |
CFileMan::EOverWrite ) ); |
|
2822 |
User::LeaveIfError( fileManager->Copy( |
|
2823 |
_L( "c:\\data\\mt_hsps\\installed_widget\\manifest.dat" ), |
|
2824 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2825 |
CFileMan::EOverWrite ) ); |
|
2826 |
User::LeaveIfError( fileManager->Copy( |
|
2827 |
_L( "c:\\data\\mt_hsps\\installed_widget\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2828 |
_L( "c:\\private\\200159c0\\import\\" ), |
|
2829 |
CFileMan::EOverWrite ) ); |
|
2830 |
||
2831 |
// Wait until configuration is installed |
|
2832 |
User::After( 4000000 ); |
|
2833 |
||
2834 |
// Make sure "InstalledWidget" is installed |
|
2835 |
if ( !BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2836 |
{ |
|
2837 |
// Installation failed - remove imports to be able to re-run the test again |
|
2838 |
// The ChspsThemeServer::HandleConfigurationImportsL does handle newly |
|
2839 |
// added files only |
|
2840 |
User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2841 |
fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2842 |
0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2843 |
User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2844 |
||
2845 |
// Leave - the test was not successfull |
|
2846 |
User::Leave( KErrGeneral ); |
|
2847 |
} |
|
2848 |
||
2849 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2850 |
||
2851 |
// Test step 2: |
|
2852 |
EUNIT_PRINT( _L8( "Test step 5: simulate un-installation of the SISX package" ) ); |
|
2853 |
||
2854 |
// Remove installation files from c\private\200159c0\import |
|
2855 |
User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2856 |
fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133.dat" ), |
|
2857 |
0, |
|
2858 |
KEntryAttReadOnly, |
|
2859 |
TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2860 |
User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2861 |
// Removing of *.dat file causes configuration uninstallation |
|
2862 |
// Wait until configuration is uninstalled |
|
2863 |
User::After( 4000000 ); |
|
2864 |
||
2865 |
// Make sure "InstalledWidget" is uninstalled |
|
2866 |
if ( BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2867 |
{ |
|
2868 |
User::Leave( KErrGeneral ); |
|
2869 |
} |
|
2870 |
||
2871 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2872 |
||
2873 |
CleanupStack::PopAndDestroy( fileManager ); |
|
2874 |
}; |
|
2875 |
||
2876 |
||
2877 |
||
2878 |
||
2879 |
//------------------------------------------------------------------------------ |
|
2880 |
// Test case: SisxInstallation(1) |
|
2881 |
//------------------------------------------------------------------------------ |
|
2882 |
void MT_CHSPSConfigurationIf::SisxInstallation_1_L() |
|
2883 |
{ |
|
2884 |
// Pre conditions |
|
2885 |
// Attach to HSPS |
|
2886 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2887 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2888 |
||
2889 |
// Test step 1: |
|
2890 |
EUNIT_PRINT( _L8( "Test step 1: simulate installation of a SISX package" ) ); |
|
2891 |
||
2892 |
CFileMan* fileManager = CFileMan::NewL( iFileserver ); |
|
2893 |
CleanupStack::PushL( fileManager ); |
|
2894 |
||
2895 |
// Copy installation files to c\private\200159c0\import |
|
2896 |
User::LeaveIfError( fileManager->Copy( |
|
2897 |
_L( "c:\\data\\mt_hsps\\installed_widget\\0\\" ), |
|
2898 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\0\\" ), |
|
2899 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2900 |
User::LeaveIfError( fileManager->Copy( |
|
2901 |
_L( "c:\\data\\mt_hsps\\installed_widget\\1\\" ), |
|
2902 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\1\\" ), |
|
2903 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2904 |
User::LeaveIfError( fileManager->Copy( |
|
2905 |
_L( "c:\\data\\mt_hsps\\installed_widget\\9\\" ), |
|
2906 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\9\\" ), |
|
2907 |
CFileMan::ERecurse|CFileMan::EOverWrite ) ); |
|
2908 |
User::LeaveIfError( fileManager->Copy( |
|
2909 |
_L( "c:\\data\\mt_hsps\\installed_widget\\widgetconfiguration.xml" ), |
|
2910 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2911 |
CFileMan::EOverWrite ) ); |
|
2912 |
User::LeaveIfError( fileManager->Copy( |
|
2913 |
_L( "c:\\data\\mt_hsps\\installed_widget\\manifest.dat" ), |
|
2914 |
_L( "c:\\private\\200159c0\\import\\0998\\101FB657\\2000B133\\1.0\\" ), |
|
2915 |
CFileMan::EOverWrite ) ); |
|
2916 |
User::LeaveIfError( fileManager->Copy( |
|
2917 |
_L( "c:\\data\\mt_hsps\\installed_widget\\plugin_0998_101FB657_2000B133_1.0.dat" ), |
|
2918 |
_L( "c:\\private\\200159c0\\import\\" ), |
|
2919 |
CFileMan::EOverWrite ) ); |
|
2920 |
||
2921 |
// Wait until configuration is installed |
|
2922 |
User::After( 8000000 ); |
|
2923 |
||
2924 |
// Make sure "InstalledWidget" is installed |
|
2925 |
if ( !BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2926 |
{ |
|
2927 |
// Installation failed - remove imports to be able to re-run the test again |
|
2928 |
// The ChspsThemeServer::HandleConfigurationImportsL does handle newly |
|
2929 |
// added files only |
|
2930 |
User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2931 |
fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133.dat" ), |
|
2932 |
0, KEntryAttReadOnly, TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2933 |
User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2934 |
||
2935 |
// Leave - the test was not successfull |
|
2936 |
User::Leave( KErrGeneral ); |
|
2937 |
} |
|
2938 |
||
2939 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2940 |
||
2941 |
// Test step 2: |
|
2942 |
EUNIT_PRINT( _L8( "Test step 2: simulate un-installation of the SISX package" ) ); |
|
2943 |
||
2944 |
// Remove installation files from c\private\200159c0\import |
|
2945 |
User::LeaveIfError( fileManager->RmDir( _L( "c:\\private\\200159c0\\import\\0998\\" ) ) ); |
|
2946 |
fileManager->Attribs( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133.dat" ), |
|
2947 |
0, |
|
2948 |
KEntryAttReadOnly, |
|
2949 |
TTime( 0 ) ); // TTime(0) = preserve original time stamp. |
|
2950 |
User::LeaveIfError( fileManager->Delete( _L( "c:\\private\\200159c0\\import\\plugin_0998_101FB657_2000B133_1.0.dat" ) ) ); |
|
2951 |
// Removing of *.dat file causes configuration uninstallation |
|
2952 |
// Wait until configuration is uninstalled |
|
2953 |
User::After( 8000000 ); |
|
2954 |
||
2955 |
// Make sure "InstalledWidget" is uninstalled |
|
2956 |
if ( BaflUtils::FileExists( iFileserver, _L( "c:\\private\\200159c0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000" ) ) ) |
|
2957 |
{ |
|
2958 |
User::Leave( KErrGeneral ); |
|
2959 |
} |
|
2960 |
||
2961 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2962 |
||
2963 |
||
2964 |
CleanupStack::PopAndDestroy( fileManager ); |
|
2965 |
} |
|
2966 |
||
2967 |
//------------------------------------------------------------------------------ |
|
2968 |
// Test case: NativeInstallation(1) |
|
2969 |
//------------------------------------------------------------------------------ |
|
2970 |
void MT_CHSPSConfigurationIf::NativeInstallation_1_L() |
|
2971 |
{ |
|
2972 |
// Pre conditions |
|
2973 |
_LIT(KFileThemes, "c:\\private\\200159C0\\themes\\2456\\270513751\\536916275\\1.0\\InstallWidgetConf.o0000"); |
|
2974 |
||
2975 |
// Attach to HSPS |
|
2976 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
2977 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
2978 |
||
2979 |
MT_CHspsInstallationService* installationService = MT_CHspsInstallationService::NewL(); |
|
2980 |
CleanupStack::PushL( installationService ); |
|
2981 |
||
2982 |
// Test step 1: |
|
2983 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
2984 |
installationService->InstallConfigurationL( KHSPSInstallInstalledWidgetConf ); |
|
2985 |
if ( !BaflUtils::FileExists( iFileserver, KFileThemes) ) |
|
2986 |
{ |
|
2987 |
User::Leave( KErrGeneral ); |
|
2988 |
} |
|
2989 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2990 |
||
2991 |
// Test step 2: |
|
2992 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
2993 |
installationService->UninstallConfigurationL( KHSPSMTInterfaceUid, KHSPSInstalledWidgetConf ); |
|
2994 |
if ( BaflUtils::FileExists( iFileserver, KFileThemes) ) |
|
2995 |
{ |
|
2996 |
User::Leave( KErrGeneral ); |
|
2997 |
} |
|
2998 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
2999 |
||
3000 |
CleanupStack::PopAndDestroy( installationService ); |
|
3001 |
} |
|
3002 |
||
3003 |
//------------------------------------------------------------------------------ |
|
3004 |
// Test case: SetActivePlugin(1) |
|
3005 |
//------------------------------------------------------------------------------ |
|
3006 |
void MT_CHSPSConfigurationIf::SetActivePlugin_1_L() |
|
3007 |
{ |
|
3008 |
// Pre conditions |
|
3009 |
// Set active configuration to Typical configuration |
|
3010 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3011 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3012 |
// Attach to HSPS |
|
3013 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3014 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3015 |
||
3016 |
// Test step 1 |
|
3017 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3018 |
RunTestStepSyncL( |
|
3019 |
( TUint8* )setactiveplugin_1_ts_1_method, |
|
3020 |
( TUint8* )setactiveplugin_1_ts_1_input, |
|
3021 |
( TUint8* )setactiveplugin_1_ts_1_output ); |
|
3022 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3023 |
||
3024 |
// Test step 2 |
|
3025 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3026 |
RunTestStepSyncL( |
|
3027 |
( TUint8* )setactiveplugin_1_ts_2_method, |
|
3028 |
( TUint8* )setactiveplugin_1_ts_2_input, |
|
3029 |
( TUint8* )setactiveplugin_1_ts_2_output ); |
|
3030 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3031 |
} |
|
3032 |
||
3033 |
//------------------------------------------------------------------------------ |
|
3034 |
// Test case: SetActivePlugin(2) |
|
3035 |
//------------------------------------------------------------------------------ |
|
3036 |
void MT_CHSPSConfigurationIf::SetActivePlugin_2_L() |
|
3037 |
{ |
|
3038 |
// Pre conditions |
|
3039 |
// Set active configuration to Typical configuration |
|
3040 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3041 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3042 |
// Attach to HSPS |
|
3043 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3044 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3045 |
||
3046 |
// Test step 1 |
|
3047 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3048 |
RunTestStepSyncL( |
|
3049 |
( TUint8* )setactiveplugin_2_ts_1_method, |
|
3050 |
( TUint8* )setactiveplugin_2_ts_1_input, |
|
3051 |
( TUint8* )setactiveplugin_2_ts_1_output ); |
|
3052 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3053 |
||
3054 |
// Test step 2 |
|
3055 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3056 |
RunTestStepSyncL( |
|
3057 |
( TUint8* )setactiveplugin_2_ts_2_method, |
|
3058 |
( TUint8* )setactiveplugin_2_ts_2_input, |
|
3059 |
( TUint8* )setactiveplugin_2_ts_2_output ); |
|
3060 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3061 |
} |
|
3062 |
||
3063 |
//------------------------------------------------------------------------------ |
|
3064 |
// Test case: SetActivePlugin(3) |
|
3065 |
//------------------------------------------------------------------------------ |
|
3066 |
void MT_CHSPSConfigurationIf::SetActivePlugin_3_L() |
|
3067 |
{ |
|
3068 |
// Pre conditions |
|
3069 |
// Set active configuration to Typical configuration |
|
3070 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3071 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3072 |
// Attach to HSPS |
|
3073 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3074 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3075 |
||
3076 |
// Test step 1 |
|
3077 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3078 |
RunTestStepSyncL( |
|
3079 |
( TUint8* )setactiveplugin_3_ts_1_method, |
|
3080 |
( TUint8* )setactiveplugin_3_ts_1_input, |
|
3081 |
( TUint8* )setactiveplugin_3_ts_1_output ); |
|
3082 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3083 |
||
3084 |
// Test step 2 |
|
3085 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3086 |
RunTestStepSyncL( |
|
3087 |
( TUint8* )setactiveplugin_3_ts_2_method, |
|
3088 |
( TUint8* )setactiveplugin_3_ts_2_input, |
|
3089 |
( TUint8* )setactiveplugin_3_ts_2_output ); |
|
3090 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3091 |
} |
|
3092 |
||
3093 |
//------------------------------------------------------------------------------ |
|
3094 |
// Test case: SetActivePlugin(4) |
|
3095 |
//------------------------------------------------------------------------------ |
|
3096 |
void MT_CHSPSConfigurationIf::SetActivePlugin_4_L() |
|
3097 |
{ |
|
3098 |
// Pre conditions |
|
3099 |
// Set active configuration to Typical configuration |
|
3100 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3101 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3102 |
// Attach to HSPS |
|
3103 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3104 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3105 |
||
3106 |
// Test step 1 |
|
3107 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3108 |
RunTestStepSyncL( |
|
3109 |
( TUint8* )setactiveplugin_4_ts_1_method, |
|
3110 |
( TUint8* )setactiveplugin_4_ts_1_input, |
|
3111 |
( TUint8* )setactiveplugin_4_ts_1_output ); |
|
3112 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3113 |
||
3114 |
// Test step 2 |
|
3115 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3116 |
RunTestStepSyncL( |
|
3117 |
( TUint8* )setactiveplugin_4_ts_2_method, |
|
3118 |
( TUint8* )setactiveplugin_4_ts_2_input, |
|
3119 |
( TUint8* )setactiveplugin_4_ts_2_output ); |
|
3120 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3121 |
} |
|
3122 |
||
3123 |
//------------------------------------------------------------------------------ |
|
3124 |
// Test case: SetActivePlugin(5) |
|
3125 |
//------------------------------------------------------------------------------ |
|
3126 |
void MT_CHSPSConfigurationIf::SetActivePlugin_5_L() |
|
3127 |
{ |
|
3128 |
// Pre conditions |
|
3129 |
// Set active configuration to Typical configuration |
|
3130 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3131 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3132 |
// Attach to HSPS |
|
3133 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3134 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3135 |
||
3136 |
// Test step 1 |
|
3137 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3138 |
RunTestStepSyncL( |
|
3139 |
( TUint8* )setactiveplugin_5_ts_1_method, |
|
3140 |
( TUint8* )setactiveplugin_5_ts_1_input, |
|
3141 |
( TUint8* )setactiveplugin_5_ts_1_output ); |
|
3142 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3143 |
} |
|
3144 |
||
3145 |
//------------------------------------------------------------------------------ |
|
3146 |
// Test case: SetActivePlugin(6) |
|
3147 |
//------------------------------------------------------------------------------ |
|
3148 |
void MT_CHSPSConfigurationIf::SetActivePlugin_6_L() |
|
3149 |
{ |
|
3150 |
// Pre conditions |
|
3151 |
// Set active configuration to Typical configuration |
|
3152 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3153 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3154 |
// Attach to HSPS |
|
3155 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3156 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3157 |
||
3158 |
// Test step 1 |
|
3159 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3160 |
RunTestStepSyncL( |
|
3161 |
( TUint8* )setactiveplugin_6_ts_1_method, |
|
3162 |
( TUint8* )setactiveplugin_6_ts_1_input, |
|
3163 |
( TUint8* )setactiveplugin_6_ts_1_output ); |
|
3164 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3165 |
} |
|
3166 |
||
3167 |
//------------------------------------------------------------------------------ |
|
3168 |
// Test case table |
|
3169 |
//------------------------------------------------------------------------------ |
|
3170 |
void MT_CHSPSConfigurationIf::RestoreConfigurations_1_L() |
|
3171 |
{ |
|
3172 |
// Pre conditions |
|
3173 |
// Set active configuration to Typical configuration |
|
3174 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Typical" ) ); |
|
3175 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfTypical ); |
|
3176 |
// Attach to HSPS |
|
3177 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3178 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3179 |
||
3180 |
// Test step 1 |
|
3181 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3182 |
RunTestStepSyncL( |
|
3183 |
( TUint8* )restoreconfigurations_1_ts_1_method, |
|
3184 |
( TUint8* )restoreconfigurations_1_ts_1_input, |
|
3185 |
( TUint8* )restoreconfigurations_1_ts_1_output ); |
|
3186 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3187 |
||
3188 |
// Test step 2 |
|
3189 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3190 |
RunTestStepSyncL( |
|
3191 |
( TUint8* )restoreconfigurations_1_ts_2_method, |
|
3192 |
( TUint8* )restoreconfigurations_1_ts_2_input, |
|
3193 |
( TUint8* )restoreconfigurations_1_ts_2_output ); |
|
3194 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3195 |
||
3196 |
// Test step 3 |
|
3197 |
EUNIT_PRINT( _L8( "Test step 3" ) ); |
|
3198 |
RunTestStepSyncL( |
|
3199 |
( TUint8* )restoreconfigurations_1_ts_3_method, |
|
3200 |
( TUint8* )restoreconfigurations_1_ts_3_input, |
|
3201 |
( TUint8* )restoreconfigurations_1_ts_3_output ); |
|
3202 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3203 |
||
3204 |
// Test step 4 |
|
3205 |
EUNIT_PRINT( _L8( "Test step 4" ) ); |
|
3206 |
RunTestStepSyncL( |
|
3207 |
( TUint8* )restoreconfigurations_1_ts_4_method, |
|
3208 |
( TUint8* )restoreconfigurations_1_ts_4_input, |
|
3209 |
( TUint8* )restoreconfigurations_1_ts_4_output ); |
|
3210 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3211 |
||
3212 |
// Test step 5 |
|
3213 |
EUNIT_PRINT( _L8( "Test step 5" ) ); |
|
3214 |
RunTestStepSyncL( |
|
3215 |
( TUint8* )restoreconfigurations_1_ts_5_method, |
|
3216 |
( TUint8* )restoreconfigurations_1_ts_5_input, |
|
3217 |
( TUint8* )restoreconfigurations_1_ts_5_output ); |
|
3218 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3219 |
||
3220 |
// Test step 6 |
|
3221 |
EUNIT_PRINT( _L8( "Test step 6" ) ); |
|
3222 |
RunTestStepSyncL( |
|
3223 |
( TUint8* )restoreconfigurations_1_ts_6_method, |
|
3224 |
( TUint8* )restoreconfigurations_1_ts_6_input, |
|
3225 |
( TUint8* )restoreconfigurations_1_ts_6_output ); |
|
3226 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3227 |
||
3228 |
// Test step 7 |
|
3229 |
EUNIT_PRINT( _L8( "Test step 7" ) ); |
|
3230 |
RunTestStepSyncL( |
|
3231 |
( TUint8* )restoreconfigurations_1_ts_6_method, |
|
3232 |
( TUint8* )restoreconfigurations_1_ts_6_input, |
|
3233 |
( TUint8* )restoreconfigurations_1_ts_6_output ); |
|
3234 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3235 |
} |
|
3236 |
||
3237 |
//------------------------------------------------------------------------------ |
|
3238 |
// Test case: Customization(1) |
|
3239 |
//------------------------------------------------------------------------------ |
|
3240 |
void MT_CHSPSConfigurationIf::Customization_1_L() |
|
3241 |
{ |
|
3242 |
// Pre conditions |
|
31
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3243 |
// There is minimal configuration and a D drive present in emulator |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3244 |
// Outcome: |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3245 |
// The original configuration file is bypassed by a new one placed on the D |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3246 |
// drive |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3247 |
// Possible problems: |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3248 |
// There is no E drive (EMMC) in emulator. The data are copied to the D |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3249 |
// drive. In case there is the E drive,please check all possible references |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3250 |
// to the D drive and change, if needed. This is important for HW testing. |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3251 |
// Remark: hspsServerUtil::FindFile() determines which drives are searched. |
30 | 3252 |
|
3253 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
3254 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
3255 |
||
3256 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3257 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3258 |
||
3259 |
// Simulate customization by copying configuration files to D drive ("ROM" stuff is on C) |
|
3260 |
CFileMan* fileManager = CFileMan::NewL( iFileserver ); |
|
3261 |
CleanupStack::PushL( fileManager ); |
|
31
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3262 |
|
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3263 |
// Find MMC drive, if not found copy it to the D drive |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3264 |
TInt drive = GetEmmcDrivePath(); |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3265 |
if ( drive == KErrNotFound ) |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3266 |
{ |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3267 |
drive = EDriveD; // Set D drive |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3268 |
} |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3269 |
_LIT( Kconfigdir, "d:\\data\\mt_hsps\\installed_widget\\widgetconfiguration.xml" ); |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3270 |
TBuf<200> confdir; |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3271 |
confdir.Append( Kconfigdir ); |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3272 |
confdir[0] = ( TInt16 )drive + KletterA; // see ACII table |
30 | 3273 |
User::LeaveIfError( |
3274 |
fileManager->Copy( |
|
31
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3275 |
_L( "c:\\data\\mt_hsps\\installed_widget\\widgetconfiguration_customized.xml" ), |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3276 |
confdir, |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3277 |
CFileMan::ERecurse|CFileMan::EOverWrite ) |
30 | 3278 |
); |
31
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
3279 |
|
30 | 3280 |
CleanupStack::PopAndDestroy( fileManager ); |
3281 |
||
3282 |
MT_CHspsInstallationService* installationService = MT_CHspsInstallationService::NewL(); |
|
3283 |
CleanupStack::PushL( installationService ); |
|
3284 |
||
3285 |
// Test step 1: install installed_widget which has customized content in D drive |
|
3286 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3287 |
installationService->InstallConfigurationL( KHSPSInstallInstalledWidgetConf ); |
|
3288 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3289 |
||
3290 |
// Test step 2: check settings from the installed_widget, it should hold |
|
3291 |
// settings from the widgetconfiguration_customized.xml file |
|
3292 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3293 |
RunTestStepSyncL( |
|
3294 |
( TUint8* )customization_1_ts_2_method, |
|
3295 |
( TUint8* )customization_1_ts_2_input, |
|
3296 |
( TUint8* )customization_1_ts_2_output ); |
|
3297 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3298 |
||
3299 |
CleanupStack::PopAndDestroy( installationService ); |
|
3300 |
} |
|
3301 |
||
3302 |
//------------------------------------------------------------------------------ |
|
3303 |
// Test case: RestoreActiveAppConf(1) |
|
3304 |
//------------------------------------------------------------------------------ |
|
3305 |
void MT_CHSPSConfigurationIf::RestoreActiveAppConf_1_L() |
|
3306 |
{ |
|
3307 |
// Pre conditions: activate configuration which hasn't got statuslicenceerestorable status |
|
3308 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Minimal" ) ); |
|
3309 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfMinimal ); |
|
3310 |
||
3311 |
// Get ODT and fill in the plugin DOMs |
|
3312 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3313 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3314 |
||
3315 |
// Test step 1: invalidate state of the active application configuration |
|
3316 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3317 |
RunTestStepSyncL( |
|
3318 |
( TUint8* )restoreactiveappconf_1_ts_1_method, |
|
3319 |
( TUint8* )restoreactiveappconf_1_ts_1_input, |
|
3320 |
( TUint8* )restoreactiveappconf_1_ts_1_output ); |
|
3321 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3322 |
||
3323 |
// Test step 2: retrieve the app conf, Operator configuration should be now active |
|
3324 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3325 |
RunTestStepSyncL( |
|
3326 |
( TUint8* )restoreactiveappconf_1_ts_2_method, |
|
3327 |
( TUint8* )restoreactiveappconf_1_ts_2_input, |
|
3328 |
( TUint8* )restoreactiveappconf_1_ts_2_output ); |
|
3329 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3330 |
} |
|
3331 |
||
3332 |
||
3333 |
//------------------------------------------------------------------------------ |
|
3334 |
// Test case: RestoreActiveAppConfL(2) |
|
3335 |
//------------------------------------------------------------------------------ |
|
3336 |
void MT_CHSPSConfigurationIf::RestoreActiveAppConf_2_L() |
|
3337 |
{ |
|
3338 |
// Pre conditions: activate configuration with a statuslicenceerestorable status |
|
3339 |
EUNIT_PRINT( _L8( "Pre conditions: Set Active configuration Operator" ) ); |
|
3340 |
SetActiveConfigurationL( KHSPSTestAppUid, KHSPSActiveConfOperator ); |
|
3341 |
||
3342 |
// Get ODT and fill in the plugin DOMs |
|
3343 |
EUNIT_PRINT( _L8( "Pre conditions: Attach to HSPS service IConfiguration interface" ) ); |
|
3344 |
AttachServiceL( KHSPS, KHSPSConfigurationIf, KHSPSTestAppUid ); |
|
3345 |
||
3346 |
// Test step 1: invalidate state of the active application configuration |
|
3347 |
EUNIT_PRINT( _L8( "Test step 1" ) ); |
|
3348 |
RunTestStepSyncL( |
|
3349 |
( TUint8* )restoreactiveappconf_2_ts_1_method, |
|
3350 |
( TUint8* )restoreactiveappconf_2_ts_1_input, |
|
3351 |
( TUint8* )restoreactiveappconf_2_ts_1_output ); |
|
3352 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3353 |
||
3354 |
// Test step 2: retrieve the app conf, we should fail installing the Operator |
|
3355 |
// configuration as it is not in ROM |
|
3356 |
EUNIT_PRINT( _L8( "Test step 2" ) ); |
|
3357 |
RunTestStepSyncL( |
|
3358 |
( TUint8* )restoreactiveappconf_2_ts_2_method, |
|
3359 |
( TUint8* )restoreactiveappconf_2_ts_2_input, |
|
3360 |
( TUint8* )restoreactiveappconf_2_ts_2_output ); |
|
3361 |
EUNIT_PRINT( _L8( "Test step passed" ) ); |
|
3362 |
} |
|
3363 |
||
3364 |
//------------------------------------------------------------------------------ |
|
3365 |
// Test case table |
|
3366 |
//------------------------------------------------------------------------------ |
|
3367 |
EUNIT_BEGIN_TEST_TABLE( |
|
3368 |
MT_CHSPSConfigurationIf, |
|
3369 |
"This is a test suite for HSPS configuration interface.", |
|
3370 |
"UNIT" ) |
|
3371 |
||
3372 |
// Get configuration test group |
|
3373 |
EUNIT_TEST( |
|
3374 |
"GetActiveAppConf(1)", |
|
3375 |
"IConfiguration", |
|
3376 |
"GetActiveAppConf", |
|
3377 |
"FUNCTIONALITY", |
|
3378 |
SetupL, GetActiveAppConf_1_L, Teardown ) |
|
3379 |
||
3380 |
EUNIT_TEST( |
|
3381 |
"GetActiveAppConf(2)", |
|
3382 |
"IConfiguration", |
|
3383 |
"GetActiveAppConf", |
|
3384 |
"FUNCTIONALITY", |
|
3385 |
SetupL, GetActiveAppConf_2_L, Teardown ) |
|
3386 |
||
3387 |
EUNIT_TEST( |
|
3388 |
"GetActiveAppConf(3)", |
|
3389 |
"IConfiguration", |
|
3390 |
"GetActiveAppConf", |
|
3391 |
"FUNCTIONALITY", |
|
3392 |
SetupL, GetActiveAppConf_3_L, Teardown ) |
|
3393 |
||
3394 |
EUNIT_TEST( |
|
3395 |
"GetPluginConf(1)", |
|
3396 |
"IConfiguration", |
|
3397 |
"GetPluginConf", |
|
3398 |
"FUNCTIONALITY", |
|
3399 |
SetupL, GetPluginConf_1_L, Teardown ) |
|
3400 |
||
3401 |
EUNIT_TEST( |
|
3402 |
"GetPluginConf(2)", |
|
3403 |
"IConfiguration", |
|
3404 |
"GetPluginConf", |
|
3405 |
"FUNCTIONALITY", |
|
3406 |
SetupL, GetPluginConf_2_L, Teardown ) |
|
3407 |
||
3408 |
EUNIT_TEST( |
|
3409 |
"GetPluginConf(3)", |
|
3410 |
"IConfiguration", |
|
3411 |
"GetPluginConf", |
|
3412 |
"FUNCTIONALITY", |
|
3413 |
SetupL, GetPluginConf_3_L, Teardown ) |
|
3414 |
||
3415 |
EUNIT_TEST( |
|
3416 |
"GetPluginConf(4)", |
|
3417 |
"IConfiguration", |
|
3418 |
"GetPluginConf", |
|
3419 |
"FUNCTIONALITY", |
|
3420 |
SetupL, GetPluginConf_4_L, Teardown ) |
|
3421 |
||
3422 |
EUNIT_TEST( |
|
3423 |
"GetPluginConf(5)", |
|
3424 |
"IConfiguration", |
|
3425 |
"GetPluginConf", |
|
3426 |
"FUNCTIONALITY", |
|
3427 |
SetupL, GetPluginConf_5_L, Teardown ) |
|
3428 |
||
3429 |
// Modify Configuration test group |
|
3430 |
EUNIT_TEST( |
|
3431 |
"GetPlugins(1)", |
|
3432 |
"IConfiguration", |
|
3433 |
"GetPlugins", |
|
3434 |
"FUNCTIONALITY", |
|
3435 |
SetupL, GetPlugins_1_L, Teardown ) |
|
3436 |
||
3437 |
EUNIT_TEST( |
|
3438 |
"GetPlugins(2)", |
|
3439 |
"IConfiguration", |
|
3440 |
"GetPlugins", |
|
3441 |
"FUNCTIONALITY", |
|
3442 |
SetupL, GetPlugins_2_L, Teardown ) |
|
3443 |
||
3444 |
EUNIT_TEST( |
|
3445 |
"GetPlugins(3)", |
|
3446 |
"IConfiguration", |
|
3447 |
"GetPlugins", |
|
3448 |
"FUNCTIONALITY", |
|
3449 |
SetupL, GetPlugins_3_L, Teardown ) |
|
3450 |
||
3451 |
EUNIT_TEST( |
|
3452 |
"GetPlugins(4)", |
|
3453 |
"IConfiguration", |
|
3454 |
"GetPlugins", |
|
3455 |
"FUNCTIONALITY", |
|
3456 |
SetupL, GetPlugins_4_L, Teardown ) |
|
3457 |
||
3458 |
EUNIT_TEST( |
|
3459 |
"GetPlugins(5)", |
|
3460 |
"IConfiguration", |
|
3461 |
"GetPlugins", |
|
3462 |
"FUNCTIONALITY", |
|
3463 |
SetupL, GetPlugins_5_L, Teardown ) |
|
3464 |
||
3465 |
EUNIT_TEST( |
|
3466 |
"GetPlugins(6)", |
|
3467 |
"IConfiguration", |
|
3468 |
"GetPlugins", |
|
3469 |
"FUNCTIONALITY", |
|
3470 |
SetupL, GetPlugins_6_L, Teardown ) |
|
3471 |
||
3472 |
EUNIT_TEST( |
|
3473 |
"GetPlugins(7)", |
|
3474 |
"IConfiguration", |
|
3475 |
"GetPlugins", |
|
3476 |
"FUNCTIONALITY", |
|
3477 |
SetupL, GetPlugins_7_L, Teardown ) |
|
3478 |
||
3479 |
EUNIT_TEST( |
|
3480 |
"GetPlugins(8)", |
|
3481 |
"IConfiguration", |
|
3482 |
"GetPlugins", |
|
3483 |
"FUNCTIONALITY", |
|
3484 |
SetupL, GetPlugins_8_L, Teardown ) |
|
3485 |
||
3486 |
EUNIT_TEST( |
|
3487 |
"GetPluginList(1)", |
|
3488 |
"IConfiguration", |
|
3489 |
"GetPluginList", |
|
3490 |
"FUNCTIONALITY", |
|
3491 |
SetupL, GetPluginList_1_L, Teardown ) |
|
3492 |
||
3493 |
EUNIT_TEST( |
|
3494 |
"GetPluginList(2)", |
|
3495 |
"IConfiguration", |
|
3496 |
"GetPluginList", |
|
3497 |
"FUNCTIONALITY", |
|
3498 |
SetupL, GetPluginList_2_L, Teardown ) |
|
3499 |
||
3500 |
EUNIT_TEST( |
|
3501 |
"GetPluginList(3)", |
|
3502 |
"IConfiguration", |
|
3503 |
"GetPluginList", |
|
3504 |
"FUNCTIONALITY", |
|
3505 |
SetupL, GetPluginList_3_L, Teardown ) |
|
3506 |
||
3507 |
EUNIT_TEST( |
|
3508 |
"GetPluginList(4)", |
|
3509 |
"IConfiguration", |
|
3510 |
"GetPluginList", |
|
3511 |
"FUNCTIONALITY", |
|
3512 |
SetupL, GetPluginList_4_L, Teardown ) |
|
3513 |
||
3514 |
EUNIT_TEST( |
|
3515 |
"GetPluginList(5)", |
|
3516 |
"IConfiguration", |
|
3517 |
"GetPluginList", |
|
3518 |
"FUNCTIONALITY", |
|
3519 |
SetupL, GetPluginList_5_L, Teardown ) |
|
3520 |
||
3521 |
EUNIT_TEST( |
|
3522 |
"GetPluginList(6)", |
|
3523 |
"IConfiguration", |
|
3524 |
"GetPluginList", |
|
3525 |
"FUNCTIONALITY", |
|
3526 |
SetupL, GetPluginList_6_L, Teardown ) |
|
3527 |
||
3528 |
EUNIT_TEST( |
|
3529 |
"GetPluginList(7)", |
|
3530 |
"IConfiguration", |
|
3531 |
"GetPluginList", |
|
3532 |
"FUNCTIONALITY", |
|
3533 |
SetupL, GetPluginList_7_L, Teardown ) |
|
3534 |
||
3535 |
EUNIT_TEST( |
|
3536 |
"GetPluginList(8)", |
|
3537 |
"IConfiguration", |
|
3538 |
"GetPluginList", |
|
3539 |
"FUNCTIONALITY", |
|
3540 |
SetupL, GetPluginList_8_L, Teardown ) |
|
3541 |
||
3542 |
EUNIT_TEST( |
|
3543 |
"AddPlugin(1)", |
|
3544 |
"IConfiguration", |
|
3545 |
"AddPlugin", |
|
3546 |
"FUNCTIONALITY", |
|
3547 |
SetupL, AddPlugin_1_L, Teardown ) |
|
3548 |
||
3549 |
EUNIT_TEST( |
|
3550 |
"AddPlugin(2)", |
|
3551 |
"IConfiguration", |
|
3552 |
"AddPlugin", |
|
3553 |
"FUNCTIONALITY", |
|
3554 |
SetupL, AddPlugin_2_L, Teardown ) |
|
3555 |
||
3556 |
EUNIT_TEST( |
|
3557 |
"AddPlugin(3)", |
|
3558 |
"IConfiguration", |
|
3559 |
"AddPlugin", |
|
3560 |
"FUNCTIONALITY", |
|
3561 |
SetupL, AddPlugin_3_L, Teardown ) |
|
3562 |
||
3563 |
EUNIT_TEST( |
|
3564 |
"AddPlugin(4)", |
|
3565 |
"IConfiguration", |
|
3566 |
"AddPlugin", |
|
3567 |
"FUNCTIONALITY", |
|
3568 |
SetupL, AddPlugin_4_L, Teardown ) |
|
3569 |
||
3570 |
EUNIT_TEST( |
|
3571 |
"AddPlugin(5)", |
|
3572 |
"IConfiguration", |
|
3573 |
"AddPlugin", |
|
3574 |
"FUNCTIONALITY", |
|
3575 |
SetupL, AddPlugin_5_L, Teardown ) |
|
3576 |
||
3577 |
EUNIT_TEST( |
|
3578 |
"AddPlugin(6)", |
|
3579 |
"IConfiguration", |
|
3580 |
"AddPlugin", |
|
3581 |
"FUNCTIONALITY", |
|
3582 |
SetupL, AddPlugin_6_L, Teardown ) |
|
3583 |
||
3584 |
EUNIT_TEST( |
|
3585 |
"AddPlugin(7)", |
|
3586 |
"IConfiguration", |
|
3587 |
"AddPlugin", |
|
3588 |
"FUNCTIONALITY", |
|
3589 |
SetupL, AddPlugin_7_L, Teardown ) |
|
3590 |
||
3591 |
EUNIT_TEST( |
|
3592 |
"AddPlugin(8)", |
|
3593 |
"IConfiguration", |
|
3594 |
"AddPlugin", |
|
3595 |
"FUNCTIONALITY", |
|
3596 |
SetupL, AddPlugin_8_L, Teardown ) |
|
3597 |
||
3598 |
EUNIT_TEST( |
|
3599 |
"AddPlugin(9)", |
|
3600 |
"IConfiguration", |
|
3601 |
"AddPlugin", |
|
3602 |
"FUNCTIONALITY", |
|
3603 |
SetupL, AddPlugin_9_L, Teardown ) |
|
3604 |
||
3605 |
EUNIT_TEST( |
|
3606 |
"AddPlugin(10)", |
|
3607 |
"IConfiguration", |
|
3608 |
"AddPlugin", |
|
3609 |
"FUNCTIONALITY", |
|
3610 |
SetupL, AddPlugin_10_L, Teardown ) |
|
3611 |
||
3612 |
EUNIT_TEST( |
|
3613 |
"AddPlugin(11)", |
|
3614 |
"IConfiguration", |
|
3615 |
"AddPlugin", |
|
3616 |
"FUNCTIONALITY", |
|
3617 |
SetupL, AddPlugin_11_L, Teardown ) |
|
3618 |
||
3619 |
EUNIT_TEST( |
|
3620 |
"RemovePlugin(1)", |
|
3621 |
"IConfiguration", |
|
3622 |
"RemovePlugin", |
|
3623 |
"FUNCTIONALITY", |
|
3624 |
SetupL, RemovePlugin_1_L, Teardown ) |
|
3625 |
||
3626 |
EUNIT_TEST( |
|
3627 |
"RemovePlugin(2)", |
|
3628 |
"IConfiguration", |
|
3629 |
"RemovePlugin", |
|
3630 |
"FUNCTIONALITY", |
|
3631 |
SetupL, RemovePlugin_2_L, Teardown ) |
|
3632 |
||
3633 |
EUNIT_TEST( |
|
3634 |
"RemovePlugin(3)", |
|
3635 |
"IConfiguration", |
|
3636 |
"RemovePlugin", |
|
3637 |
"FUNCTIONALITY", |
|
3638 |
SetupL, RemovePlugin_3_L, Teardown ) |
|
3639 |
||
3640 |
EUNIT_TEST( |
|
3641 |
"RemovePlugin(4)", |
|
3642 |
"IConfiguration", |
|
3643 |
"RemovePlugin", |
|
3644 |
"FUNCTIONALITY", |
|
3645 |
SetupL, RemovePlugin_4_L, Teardown ) |
|
3646 |
||
3647 |
EUNIT_TEST( |
|
3648 |
"SetPluginSettings(1)", |
|
3649 |
"IConfiguration", |
|
3650 |
"SetPluginSettings", |
|
3651 |
"FUNCTIONALITY", |
|
3652 |
SetupL, SetPluginSettings_1_L, Teardown ) |
|
3653 |
||
3654 |
EUNIT_TEST( |
|
3655 |
"SetPluginSettings(2)", |
|
3656 |
"IConfiguration", |
|
3657 |
"SetPluginSettings", |
|
3658 |
"FUNCTIONALITY", |
|
3659 |
SetupL, SetPluginSettings_2_L, Teardown ) |
|
3660 |
||
3661 |
EUNIT_TEST( |
|
3662 |
"SetPluginSettings(3)", |
|
3663 |
"IConfiguration", |
|
3664 |
"SetPluginSettings", |
|
3665 |
"FUNCTIONALITY", |
|
3666 |
SetupL, SetPluginSettings_3_L, Teardown ) |
|
3667 |
||
3668 |
EUNIT_TEST( |
|
3669 |
"SetPluginSettings(4)", |
|
3670 |
"IConfiguration", |
|
3671 |
"SetPluginSettings", |
|
3672 |
"FUNCTIONALITY", |
|
3673 |
SetupL, SetPluginSettings_4_L, Teardown ) |
|
3674 |
||
3675 |
EUNIT_TEST( |
|
3676 |
"SetPluginSettings(5)", |
|
3677 |
"IConfiguration", |
|
3678 |
"SetPluginSettings", |
|
3679 |
"FUNCTIONALITY", |
|
3680 |
SetupL, SetPluginSettings_5_L, Teardown ) |
|
3681 |
||
3682 |
EUNIT_TEST( |
|
3683 |
"SetPluginSettings(6)", |
|
3684 |
"IConfiguration", |
|
3685 |
"SetPluginSettings", |
|
3686 |
"FUNCTIONALITY", |
|
3687 |
SetupL, SetPluginSettings_6_L, Teardown ) |
|
3688 |
||
3689 |
EUNIT_TEST( |
|
3690 |
"GetPluginSettings(1)", |
|
3691 |
"IConfiguration", |
|
3692 |
"GetPluginSettings", |
|
3693 |
"FUNCTIONALITY", |
|
3694 |
SetupL, GetPluginSettings_1_L, Teardown ) |
|
3695 |
||
3696 |
EUNIT_TEST( |
|
3697 |
"GetPluginSettings(2)", |
|
3698 |
"IConfiguration", |
|
3699 |
"GetPluginSettings", |
|
3700 |
"FUNCTIONALITY", |
|
3701 |
SetupL, GetPluginSettings_2_L, Teardown ) |
|
3702 |
||
3703 |
EUNIT_TEST( |
|
3704 |
"GetPluginSettings(3)", |
|
3705 |
"IConfiguration", |
|
3706 |
"GetPluginSettings", |
|
3707 |
"FUNCTIONALITY", |
|
3708 |
SetupL, GetPluginSettings_3_L, Teardown ) |
|
3709 |
||
3710 |
EUNIT_TEST( |
|
3711 |
"MovePlugins(1)", |
|
3712 |
"IConfiguration", |
|
3713 |
"MovePlugins", |
|
3714 |
"FUNCTIONALITY", |
|
3715 |
SetupL, MovePlugins_1_L, Teardown ) |
|
3716 |
||
3717 |
EUNIT_TEST( |
|
3718 |
"MovePlugins(2)", |
|
3719 |
"IConfiguration", |
|
3720 |
"MovePlugins", |
|
3721 |
"FUNCTIONALITY", |
|
3722 |
SetupL, MovePlugins_2_L, Teardown ) |
|
3723 |
||
3724 |
EUNIT_TEST( |
|
3725 |
"MovePlugins(3)", |
|
3726 |
"IConfiguration", |
|
3727 |
"MovePlugins", |
|
3728 |
"FUNCTIONALITY", |
|
3729 |
SetupL, MovePlugins_3_L, Teardown ) |
|
3730 |
||
3731 |
EUNIT_TEST( |
|
3732 |
"MovePlugins(4)", |
|
3733 |
"IConfiguration", |
|
3734 |
"MovePlugins", |
|
3735 |
"FUNCTIONALITY", |
|
3736 |
SetupL, MovePlugins_4_L, Teardown ) |
|
3737 |
||
3738 |
EUNIT_TEST( |
|
3739 |
"MovePlugins(5)", |
|
3740 |
"IConfiguration", |
|
3741 |
"MovePlugins", |
|
3742 |
"FUNCTIONALITY", |
|
3743 |
SetupL, MovePlugins_5_L, Teardown ) |
|
3744 |
||
3745 |
EUNIT_TEST( |
|
3746 |
"MovePlugins(6)", |
|
3747 |
"IConfiguration", |
|
3748 |
"MovePlugins", |
|
3749 |
"FUNCTIONALITY", |
|
3750 |
SetupL, MovePlugins_6_L, Teardown ) |
|
3751 |
||
3752 |
EUNIT_TEST( |
|
3753 |
"ReplacePlugin(1)", |
|
3754 |
"IConfiguration", |
|
3755 |
"ReplacePlugin", |
|
3756 |
"FUNCTIONALITY", |
|
3757 |
SetupL, ReplacePlugin_1_L, Teardown ) |
|
3758 |
||
3759 |
EUNIT_TEST( |
|
3760 |
"GetAppConfs(1)", |
|
3761 |
"IConfiguration", |
|
3762 |
"GetAppConfs", |
|
3763 |
"FUNCTIONALITY", |
|
3764 |
SetupL, GetAppConfs_1_L, Teardown ) |
|
3765 |
||
3766 |
EUNIT_TEST( |
|
3767 |
"SetActiveAppConf(1)", |
|
3768 |
"IConfiguration", |
|
3769 |
"SetActiveAppConf", |
|
3770 |
"FUNCTIONALITY", |
|
3771 |
SetupL, SetActiveAppConf_1_L, Teardown ) |
|
3772 |
||
3773 |
EUNIT_TEST( |
|
3774 |
"SetActiveAppConf(2)", |
|
3775 |
"IConfiguration", |
|
3776 |
"SetActiveAppConf", |
|
3777 |
"FUNCTIONALITY", |
|
3778 |
SetupL, SetActiveAppConf_2_L, Teardown ) |
|
3779 |
||
3780 |
EUNIT_TEST( |
|
3781 |
"SetActiveAppConf(3)", |
|
3782 |
"IConfiguration", |
|
3783 |
"SetActiveAppConf", |
|
3784 |
"FUNCTIONALITY", |
|
3785 |
SetupL, SetActiveAppConf_3_L, Teardown ) |
|
3786 |
||
3787 |
EUNIT_TEST( |
|
3788 |
"SetActiveAppConf(4)", |
|
3789 |
"IConfiguration", |
|
3790 |
"SetActiveAppConf", |
|
3791 |
"FUNCTIONALITY", |
|
3792 |
SetupL, SetActiveAppConf_4_L, Teardown ) |
|
3793 |
||
3794 |
// EUNIT_TEST( |
|
3795 |
// "RequestNotify(1)", |
|
3796 |
// "IConfiguration", |
|
3797 |
// "RequestNotify", |
|
3798 |
// "FUNCTIONALITY", |
|
3799 |
// SetupL, RequestNotify_1_L, Teardown ) |
|
3800 |
||
3801 |
// EUNIT_TEST( |
|
3802 |
// "RequestNotify(2)", |
|
3803 |
// "IConfiguration", |
|
3804 |
// "RequestNotify", |
|
3805 |
// "FUNCTIONALITY", |
|
3806 |
// SetupL, RequestNotify_2_L, Teardown ) |
|
3807 |
||
3808 |
EUNIT_TEST( |
|
3809 |
"RequestNotify(3)", |
|
3810 |
"IConfiguration", |
|
3811 |
"RequestNotify", |
|
3812 |
"FUNCTIONALITY", |
|
3813 |
SetupL, RequestNotify_3_L, Teardown ) |
|
3814 |
||
3815 |
EUNIT_TEST( |
|
3816 |
"RequestNotify(4)", |
|
3817 |
"IConfiguration", |
|
3818 |
"RequestNotify", |
|
3819 |
"FUNCTIONALITY", |
|
3820 |
SetupL, RequestNotify_4_L, Teardown ) |
|
3821 |
||
3822 |
// EUNIT_TEST( |
|
3823 |
// "RequestNotify(5)", |
|
3824 |
// "IConfiguration", |
|
3825 |
// "RequestNotify", |
|
3826 |
// "FUNCTIONALITY", |
|
3827 |
// SetupL, RequestNotify_5_L, Teardown ) |
|
3828 |
||
3829 |
EUNIT_TEST( |
|
3830 |
"RequestNotify(6)", |
|
3831 |
"IConfiguration", |
|
3832 |
"RequestNotify", |
|
3833 |
"FUNCTIONALITY", |
|
3834 |
SetupL, RequestNotify_6_L, Teardown ) |
|
3835 |
||
3836 |
EUNIT_TEST( |
|
3837 |
"SisxUpgrade(1)", |
|
3838 |
"IConfiguration", |
|
3839 |
"SisxUpgrade", |
|
3840 |
"FUNCTIONALITY", |
|
3841 |
SetupL, SisxUpgrade_1_L, Teardown ) |
|
3842 |
||
3843 |
EUNIT_TEST( |
|
3844 |
"SisxInstallation(1)", |
|
3845 |
"IConfiguration", |
|
3846 |
"SisxInstallation", |
|
3847 |
"FUNCTIONALITY", |
|
3848 |
SetupL, SisxInstallation_1_L, Teardown ) |
|
3849 |
||
3850 |
EUNIT_TEST( |
|
3851 |
"NativeInstallation(1)", |
|
3852 |
"IConfiguration", |
|
3853 |
"NativeInstallation", |
|
3854 |
"FUNCTIONALITY", |
|
3855 |
SetupL, NativeInstallation_1_L, Teardown ) |
|
3856 |
||
3857 |
EUNIT_TEST( |
|
3858 |
"SetActivePlugin(1)", |
|
3859 |
"IConfiguration", |
|
3860 |
"SetActivePlugin", |
|
3861 |
"FUNCTIONALITY", |
|
3862 |
SetupL, SetActivePlugin_1_L, Teardown ) |
|
3863 |
||
3864 |
EUNIT_TEST( |
|
3865 |
"SetActivePlugin(2)", |
|
3866 |
"IConfiguration", |
|
3867 |
"SetActivePlugin", |
|
3868 |
"FUNCTIONALITY", |
|
3869 |
SetupL, SetActivePlugin_2_L, Teardown ) |
|
3870 |
||
3871 |
EUNIT_TEST( |
|
3872 |
"SetActivePlugin(3)", |
|
3873 |
"IConfiguration", |
|
3874 |
"SetActivePlugin", |
|
3875 |
"FUNCTIONALITY", |
|
3876 |
SetupL, SetActivePlugin_3_L, Teardown ) |
|
3877 |
||
3878 |
EUNIT_TEST( |
|
3879 |
"SetActivePlugin(4)", |
|
3880 |
"IConfiguration", |
|
3881 |
"SetActivePlugin", |
|
3882 |
"FUNCTIONALITY", |
|
3883 |
SetupL, SetActivePlugin_4_L, Teardown ) |
|
3884 |
||
3885 |
EUNIT_TEST( |
|
3886 |
"SetActivePlugin(5)", |
|
3887 |
"IConfiguration", |
|
3888 |
"SetActivePlugin", |
|
3889 |
"FUNCTIONALITY", |
|
3890 |
SetupL, SetActivePlugin_5_L, Teardown ) |
|
3891 |
||
3892 |
EUNIT_TEST( |
|
3893 |
"SetActivePlugin(6)", |
|
3894 |
"IConfiguration", |
|
3895 |
"SetActivePlugin", |
|
3896 |
"FUNCTIONALITY", |
|
3897 |
SetupL, SetActivePlugin_6_L, Teardown ) |
|
3898 |
||
3899 |
EUNIT_TEST( |
|
3900 |
"RestoreConfigurations(1)", |
|
3901 |
"IConfiguration", |
|
3902 |
"SetActivePlugin", |
|
3903 |
"FUNCTIONALITY", |
|
3904 |
SetupL, RestoreConfigurations_1_L, Teardown ) |
|
3905 |
||
3906 |
EUNIT_TEST( |
|
3907 |
"Customization(1)", |
|
3908 |
"IConfiguration", |
|
3909 |
"SetActivePlugin", |
|
3910 |
"FUNCTIONALITY", |
|
3911 |
SetupL, Customization_1_L, Teardown ) |
|
3912 |
||
3913 |
EUNIT_TEST( |
|
3914 |
"RestoreActiveAppConfL(1)", |
|
3915 |
"IConfiguration", |
|
3916 |
"SetActivePlugin", |
|
3917 |
"FUNCTIONALITY", |
|
3918 |
SetupL, RestoreActiveAppConf_1_L, Teardown ) |
|
3919 |
||
3920 |
EUNIT_TEST( |
|
3921 |
"RestoreActiveAppConfL(2)", |
|
3922 |
"IConfiguration", |
|
3923 |
"SetActivePlugin", |
|
3924 |
"FUNCTIONALITY", |
|
3925 |
SetupL, RestoreActiveAppConf_2_L, Teardown ) |
|
3926 |
||
3927 |
EUNIT_END_TEST_TABLE |
|
3928 |
||
3929 |
// END OF FILE |