equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
25 #include <apgwgnam.h> |
25 #include <apgwgnam.h> |
26 |
26 |
27 #include "appfwk_test.h" |
27 #include "appfwk_test.h" |
28 #include "T_EndTaskStep.h" |
28 #include "T_EndTaskStep.h" |
29 #include "TEndTaskTestApp/EndTaskTestAppExternalInterface.h" |
29 #include "TEndTaskTestApp/EndTaskTestAppExternalInterface.h" |
|
30 #include "T_SisFileInstaller.h" |
|
31 |
|
32 _LIT(KEndTaskAppSisFile, "z:\\apparctest\\apparctestsisfiles\\EndTaskTestApp.sis"); |
|
33 _LIT(KEndTaskAppComponent, "EndTaskTestApp"); |
30 |
34 |
31 CTEndTaskStep::CTEndTaskStep() |
35 CTEndTaskStep::CTEndTaskStep() |
32 { |
36 { |
33 // Call base class method to set up the human readable name for logging |
37 // Call base class method to set up the human readable name for logging |
34 SetTestStepName(KT_EndTaskStep); |
38 SetTestStepName(KT_EndTaskStep); |
269 User::WaitForRequest(status); |
273 User::WaitForRequest(status); |
270 CleanupStack::PopAndDestroy(cmdLn); |
274 CleanupStack::PopAndDestroy(cmdLn); |
271 return result; |
275 return result; |
272 } |
276 } |
273 |
277 |
|
278 /** |
|
279 * @return - TVerdict code |
|
280 * Override of base class virtual |
|
281 */ |
|
282 TVerdict CTEndTaskStep::doTestStepPreambleL() |
|
283 { |
|
284 CSisFileInstaller sisFileInstaller; |
|
285 INFO_PRINTF2(_L("Installing sis file from -> %S"), &KEndTaskAppSisFile); |
|
286 sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KEndTaskAppSisFile); |
|
287 |
|
288 SetTestStepResult(EPass); |
|
289 return TestStepResult(); |
|
290 } |
|
291 |
|
292 /** |
|
293 * @return - TVerdict code |
|
294 * Override of base class virtual |
|
295 */ |
|
296 TVerdict CTEndTaskStep::doTestStepPostambleL() |
|
297 { |
|
298 CSisFileInstaller sisFileInstaller; |
|
299 sisFileInstaller.UninstallSisL(KEndTaskAppComponent); |
|
300 |
|
301 return TestStepResult(); |
|
302 } |
|
303 |
274 TVerdict CTEndTaskStep::doTestStepL() |
304 TVerdict CTEndTaskStep::doTestStepL() |
275 { |
305 { |
276 INFO_PRINTF1(_L("TEndTaskStep test started....")); |
306 INFO_PRINTF1(_L("TEndTaskStep test started....")); |
277 |
307 |
278 __UHEAP_MARK; |
308 __UHEAP_MARK; |