equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-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". |
22 @internalComponent - Internal Symbian test code |
22 @internalComponent - Internal Symbian test code |
23 */ |
23 */ |
24 |
24 |
25 #include "T_CmdlnStep.h" |
25 #include "T_CmdlnStep.h" |
26 #include "testableapalssession.h" |
26 #include "testableapalssession.h" |
|
27 #include "T_SisFileInstaller.h" |
|
28 |
|
29 _LIT(KTEnvSlotsAppSisFile, "z:\\apparctest\\apparctestsisfiles\\T_EnvSlots.sis"); |
|
30 _LIT(KTEnvSlotsAppComponent, "T_EnvSlots"); |
27 |
31 |
28 /** |
32 /** |
29 @SYMTestCaseID T-CmdlnStep-testSecureCmdLinesL |
33 @SYMTestCaseID T-CmdlnStep-testSecureCmdLinesL |
30 |
34 |
31 @SYMPREQ 280 - File Handle Support |
35 @SYMPREQ 280 - File Handle Support |
636 /** |
640 /** |
637 @return - TVerdict code |
641 @return - TVerdict code |
638 Override of base class virtual |
642 Override of base class virtual |
639 */ |
643 */ |
640 { |
644 { |
|
645 CSisFileInstaller sisFileInstaller; |
|
646 INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTEnvSlotsAppSisFile); |
|
647 sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTEnvSlotsAppSisFile); |
|
648 |
641 SetTestStepResult(EPass); |
649 SetTestStepResult(EPass); |
642 return TestStepResult(); |
650 return TestStepResult(); |
643 } |
651 } |
644 |
652 |
645 TVerdict CT_CmdlnStep::doTestStepPostambleL() |
653 TVerdict CT_CmdlnStep::doTestStepPostambleL() |
646 /** |
654 /** |
647 @return - TVerdict code |
655 @return - TVerdict code |
648 Override of base class virtual |
656 Override of base class virtual |
649 */ |
657 */ |
650 { |
658 { |
|
659 CSisFileInstaller sisFileInstaller; |
|
660 sisFileInstaller.UninstallSisL(KTEnvSlotsAppComponent); |
|
661 |
651 return TestStepResult(); |
662 return TestStepResult(); |
652 } |
663 } |
653 |
664 |
654 |
665 |
655 // need to also test CApaCommandLine - SetServerNotRequiredL/SetServerRequiredL/ServerRequired |
666 // need to also test CApaCommandLine - SetServerNotRequiredL/SetServerRequiredL/ServerRequired |