equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2009 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 |
22 |
23 #include "T_StartAppStep.h" |
23 #include "T_StartAppStep.h" |
24 #include "tstapp.h" |
24 #include "tstapp.h" |
25 #include "TRApaLsSessionStartAppTest.h" |
25 #include "TRApaLsSessionStartAppTest.h" |
26 #include <apacmdln.h> |
26 #include <apacmdln.h> |
27 #include "T_SisFileInstaller.h" |
|
28 |
27 |
29 _LIT(KCompleted, "Completed."); |
28 _LIT(KCompleted, "Completed."); |
30 _LIT8(KLitPlainText,"text/plain"); |
29 _LIT8(KLitPlainText,"text/plain"); |
31 |
|
32 _LIT(KUnprotectedAppSisFile, "z:\\apparctest\\apparctestsisfiles\\UnProctectedUidApp.sis"); |
|
33 _LIT(KUnprotectedAppComponent, "UnProctectedUidApp"); |
|
34 |
|
35 _LIT(KRApaLsSessionStartAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TRApaLsSessionStartAppTestApp_v2.sis"); |
|
36 _LIT(KRApaLsSessionStartAppComponent, "TRApaLsSessionStartAppTestApp_v2"); |
|
37 |
|
38 |
30 |
39 const TInt KTUnProtectedAppTestPassed = 1234; |
31 const TInt KTUnProtectedAppTestPassed = 1234; |
40 |
32 |
41 class RIpcApparcFuzzTest : public RSessionBase |
33 class RIpcApparcFuzzTest : public RSessionBase |
42 { |
34 { |
114 @return - TVerdict code |
106 @return - TVerdict code |
115 Override of base class virtual |
107 Override of base class virtual |
116 */ |
108 */ |
117 TVerdict CT_StartAppTestStep::doTestStepPreambleL() |
109 TVerdict CT_StartAppTestStep::doTestStepPreambleL() |
118 { |
110 { |
119 CSisFileInstaller sisFileInstaller; |
|
120 |
|
121 INFO_PRINTF2(_L("Installing sis file from -> %S"), &KUnprotectedAppSisFile); |
|
122 sisFileInstaller.InstallSisL(KUnprotectedAppSisFile); |
|
123 INFO_PRINTF2(_L("Installing sis file from -> %S"), &KRApaLsSessionStartAppSisFile); |
|
124 sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KRApaLsSessionStartAppSisFile); |
|
125 |
|
126 SetTestStepResult(EPass); |
111 SetTestStepResult(EPass); |
127 TInt error = iApaLsSession.Connect(); |
112 TInt error = iApaLsSession.Connect(); |
128 TEST(error==KErrNone); |
113 TEST(error==KErrNone); |
129 return TestStepResult(); |
114 return TestStepResult(); |
130 } |
115 } |
133 @return - TVerdict code |
118 @return - TVerdict code |
134 Override of base class virtual |
119 Override of base class virtual |
135 */ |
120 */ |
136 TVerdict CT_StartAppTestStep::doTestStepPostambleL() |
121 TVerdict CT_StartAppTestStep::doTestStepPostambleL() |
137 { |
122 { |
138 CSisFileInstaller sisFileInstaller; |
|
139 |
|
140 sisFileInstaller.UninstallSisL(KUnprotectedAppComponent); |
|
141 sisFileInstaller.UninstallSisL(KRApaLsSessionStartAppComponent); |
|
142 |
|
143 return TestStepResult(); |
123 return TestStepResult(); |
144 } |
124 } |
145 |
125 |
146 |
126 |
147 TVerdict CT_StartAppTestStep::doTestStepL() |
127 TVerdict CT_StartAppTestStep::doTestStepL() |