30 #include "tswisserver.h" |
30 #include "tswisserver.h" |
31 #include "tuiscriptadaptors.h" |
31 #include "tuiscriptadaptors.h" |
32 #include <swi/sistruststatus.h> |
32 #include <swi/sistruststatus.h> |
33 |
33 |
34 #include <e32base.h> |
34 #include <e32base.h> |
|
35 |
|
36 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
35 #ifndef SWI_TEXTSHELL_ROM |
37 #ifndef SWI_TEXTSHELL_ROM |
36 #include <apsidchecker.h> |
38 #include <apsidchecker.h> |
37 #else |
39 #else |
38 class CAppSidChecker; |
40 class CAppSidChecker; |
|
41 #endif |
39 #endif |
42 #endif |
40 |
43 |
41 namespace Swi |
44 namespace Swi |
42 { |
45 { |
43 class CInstallPrefs; |
46 class CInstallPrefs; |
219 * @internalComponent |
222 * @internalComponent |
220 */ |
223 */ |
221 class CSwisInstallStep : public CSwisTestStep |
224 class CSwisInstallStep : public CSwisTestStep |
222 { |
225 { |
223 public: |
226 public: |
224 enum TInstallType { EUseFileHandle, EUseMemory, EUseFileName, EUseCAF, EUseOpenFileName, ECheckExitValue}; |
227 enum TInstallType { EUseFileHandle, EUseMemory, EUseFileName, EUseCAF, EUseOpenFileName, ECheckExitValue, ECheckInstallPerformance}; |
225 |
228 |
226 CSwisInstallStep(TInstallType aInstallType, TBool aDoCancelTest = EFalse); |
229 CSwisInstallStep(TInstallType aInstallType, TBool aDoCancelTest = EFalse); |
227 ~CSwisInstallStep(); |
230 ~CSwisInstallStep(); |
228 virtual TVerdict doTestStepPreambleL(); |
231 virtual TVerdict doTestStepPreambleL(); |
229 virtual TVerdict doTestStepPostambleL(); |
232 virtual TVerdict doTestStepPostambleL(); |
230 virtual TVerdict doTestStepL(); |
233 virtual TVerdict doTestStepL(); |
231 private: |
234 private: |
232 TInt DoInstallL(Swi::CInstallPrefs& aInstallPrefs); |
235 TInt DoInstallL(Swi::CInstallPrefs& aInstallPrefs); |
233 void GetFilesToHoldOpenL(); |
236 void GetFilesToHoldOpenL(); |
|
237 void PrintPerformanceLog(TTime aTime); |
234 |
238 |
235 private: |
239 private: |
236 TFileName iSisFileName; // name of the file to install |
240 TFileName iSisFileName; // name of the file to install |
237 TFileName iXmlFileName; // name of the file containing dialog data |
241 TFileName iXmlFileName; // name of the file containing dialog data |
238 Swi::Test::CUIScriptAdaptor* iUi; // XML script-based UI implementation |
242 Swi::Test::CUIScriptAdaptor* iUi; // XML script-based UI implementation |
330 virtual TVerdict doTestStepL(); |
334 virtual TVerdict doTestStepL(); |
331 }; |
335 }; |
332 #endif |
336 #endif |
333 |
337 |
334 _LIT(KSwisInstallStep, "InstallStep"); |
338 _LIT(KSwisInstallStep, "InstallStep"); |
|
339 _LIT(KSwisInstallPerformanceStep, "InstallPerformanceStep"); |
335 _LIT(KSwisInstallFHStep, "InstallFHStep"); // install using file handles |
340 _LIT(KSwisInstallFHStep, "InstallFHStep"); // install using file handles |
336 _LIT(KSwisInstallMemStep, "InstallMemStep"); // install from memory |
341 _LIT(KSwisInstallMemStep, "InstallMemStep"); // install from memory |
337 _LIT(KSwisInstallCAFStep, "InstallCAFStep"); // install from CAF |
342 _LIT(KSwisInstallCAFStep, "InstallCAFStep"); // install from CAF |
338 _LIT(KSwisInstallOpenFileStep, "InstallOpenFileStep"); // install with already opened file |
343 _LIT(KSwisInstallOpenFileStep, "InstallOpenFileStep"); // install with already opened file |
339 _LIT(KSwisCheckedInstallStep, "CheckedInstallStep"); |
344 _LIT(KSwisCheckedInstallStep, "CheckedInstallStep"); |