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". |
21 @internalComponent - Internal Symbian test code |
21 @internalComponent - Internal Symbian test code |
22 */ |
22 */ |
23 |
23 |
24 #include <apgcli.h> |
24 #include <apgcli.h> |
25 #include "T_AppList.h" |
25 #include "T_AppList.h" |
26 #include "T_SisFileInstaller.h" |
|
27 |
|
28 _LIT(KApparcTestAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TApparcTestApp.sis"); |
|
29 _LIT(KApparcTestAppComponent, "TApparcTestApp"); |
|
30 |
|
31 |
|
32 |
26 |
33 CTestAppListStep::CTestAppListStep() |
27 CTestAppListStep::CTestAppListStep() |
34 { |
28 { |
35 } |
29 } |
36 |
30 |
64 TInt ret = iApaLsSession.GetAppInfo(appInfo,uid); |
58 TInt ret = iApaLsSession.GetAppInfo(appInfo,uid); |
65 INFO_PRINTF2(_L(" Call to GetAppInfo returned : %d "), ret); |
59 INFO_PRINTF2(_L(" Call to GetAppInfo returned : %d "), ret); |
66 TEST(ret==KErrNone); |
60 TEST(ret==KErrNone); |
67 } |
61 } |
68 |
62 |
69 TVerdict CTestAppListStep::doTestStepPreambleL() |
|
70 { |
|
71 CSisFileInstaller sisFileInstaller; |
|
72 INFO_PRINTF2(_L("Installing sis file from -> %S"), &KApparcTestAppSisFile); |
|
73 sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KApparcTestAppSisFile); |
|
74 |
|
75 SetTestStepResult(EPass); |
|
76 return TestStepResult(); |
|
77 } |
|
78 |
|
79 TVerdict CTestAppListStep::doTestStepPostambleL() |
|
80 { |
|
81 CSisFileInstaller sisFileInstaller; |
|
82 sisFileInstaller.UninstallSisL(KApparcTestAppComponent); |
|
83 |
|
84 return TestStepResult(); |
|
85 } |
|
86 |
63 |
87 TVerdict CTestAppListStep::doTestStepL() |
64 TVerdict CTestAppListStep::doTestStepL() |
88 { |
65 { |
89 INFO_PRINTF1(_L("Test T_AppList Started")); |
66 INFO_PRINTF1(_L("Test T_AppList Started")); |
90 |
67 |
96 HEAP_TEST_LS_SESSION(iApaLsSession, 0, DONT_CHECK, TestAppList(), NO_CLEANUP); |
73 HEAP_TEST_LS_SESSION(iApaLsSession, 0, DONT_CHECK, TestAppList(), NO_CLEANUP); |
97 |
74 |
98 INFO_PRINTF1(_L("Test Finished")); |
75 INFO_PRINTF1(_L("Test Finished")); |
99 return TestStepResult(); |
76 return TestStepResult(); |
100 } |
77 } |
101 |
|
102 |
|