equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-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". |
23 #include <apaserverapp.h> |
23 #include <apaserverapp.h> |
24 #include <w32std.h> |
24 #include <w32std.h> |
25 #include "appfwk_test.h" |
25 #include "appfwk_test.h" |
26 #include "testableapalssession.h" |
26 #include "testableapalssession.h" |
27 #include "../tef/TNonNative/TNNApp1.h" |
27 #include "../tef/TNonNative/TNNApp1.h" |
|
28 #include "T_SisFileInstaller.h" |
|
29 |
|
30 _LIT(KTNNA1AppSisFile, "z:\\apparctest\\apparctestsisfiles\\TNNApp1.sis"); |
|
31 _LIT(KTNNA1AppComponent, "TNNApp1"); |
28 |
32 |
29 TInt PanicTest(TAny* aOption); |
33 TInt PanicTest(TAny* aOption); |
30 |
34 |
31 // RTstServiceApp |
35 // RTstServiceApp |
32 |
36 |
461 SetTestStepName(KT_ServiceBaseStep); |
465 SetTestStepName(KT_ServiceBaseStep); |
462 } |
466 } |
463 |
467 |
464 TVerdict CT_ServiceBaseStep::doTestStepPreambleL() |
468 TVerdict CT_ServiceBaseStep::doTestStepPreambleL() |
465 { |
469 { |
|
470 CSisFileInstaller sisFileInstaller; |
|
471 INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTNNA1AppSisFile); |
|
472 sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTNNA1AppSisFile); |
|
473 |
466 SetTestStepResult(EPass); |
474 SetTestStepResult(EPass); |
467 return TestStepResult(); |
475 return TestStepResult(); |
468 } |
476 } |
469 |
477 |
470 TVerdict CT_ServiceBaseStep::doTestStepPostambleL() |
478 TVerdict CT_ServiceBaseStep::doTestStepPostambleL() |
471 { |
479 { |
|
480 CSisFileInstaller sisFileInstaller; |
|
481 sisFileInstaller.UninstallSisL(KTNNA1AppComponent); |
|
482 |
472 return TestStepResult(); |
483 return TestStepResult(); |
473 } |
484 } |
474 |
485 |
475 TVerdict CT_ServiceBaseStep::doTestStepL() |
486 TVerdict CT_ServiceBaseStep::doTestStepL() |
476 { |
487 { |