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". |
28 #include <apaidpartner.h> |
28 #include <apaidpartner.h> |
29 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
29 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
30 #include "T_groupNametest_ver1.h" |
30 #include "T_groupNametest_ver1.h" |
31 #include "apparctestserver.h" |
31 #include "apparctestserver.h" |
32 #include <test/testexecutestepbase.h> |
32 #include <test/testexecutestepbase.h> |
|
33 #include "T_SisFileInstaller.h" |
|
34 |
|
35 _LIT(KGroupNameVer1AppSisFile, "z:\\apparctest\\apparctestsisfiles\\T_groupname_ver1.sis"); |
|
36 _LIT(KGroupNameVer1AppComponent, "T_groupname_ver1"); |
33 |
37 |
34 // CT_GroupNameStep_ver1 |
38 // CT_GroupNameStep_ver1 |
35 |
39 |
36 const TUid KUidTGroupName={0x10208183}; |
40 const TUid KUidTGroupName={0x10208183}; |
37 |
41 |
88 _LIT(KGroupname,"Reg_groupname"); |
92 _LIT(KGroupname,"Reg_groupname"); |
89 |
93 |
90 TEST(capability.iGroupName == KGroupname); |
94 TEST(capability.iGroupName == KGroupname); |
91 } |
95 } |
92 |
96 |
|
97 TVerdict CT_GroupNameStep_ver1::doTestStepPreambleL() |
|
98 { |
|
99 CSisFileInstaller sisFileInstaller; |
|
100 INFO_PRINTF2(_L("Installing sis file from -> %S"), &KGroupNameVer1AppSisFile); |
|
101 sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KGroupNameVer1AppSisFile); |
|
102 |
|
103 SetTestStepResult(EPass); |
|
104 return TestStepResult(); |
|
105 } |
|
106 |
|
107 TVerdict CT_GroupNameStep_ver1::doTestStepPostambleL() |
|
108 { |
|
109 CSisFileInstaller sisFileInstaller; |
|
110 sisFileInstaller.UninstallSisL(KGroupNameVer1AppComponent); |
|
111 |
|
112 return TestStepResult(); |
|
113 } |
|
114 |
93 /** |
115 /** |
94 @return - TVerdict code |
116 @return - TVerdict code |
95 Override of base class virtual |
117 Override of base class virtual |
96 */ |
118 */ |
97 TVerdict CT_GroupNameStep_ver1::doTestStepL() |
119 TVerdict CT_GroupNameStep_ver1::doTestStepL() |