appfw/apparchitecture/tef/T_Foreground.cpp
branchRCL_3
changeset 62 924385140d98
parent 0 2e3d3ce01487
child 63 c2c61fdca848
--- a/appfw/apparchitecture/tef/T_Foreground.cpp	Thu Aug 19 10:05:08 2010 +0300
+++ b/appfw/apparchitecture/tef/T_Foreground.cpp	Tue Aug 31 15:24:25 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -54,10 +54,15 @@
 #include <eikenv.h>
 
 #include "t_foreground.h"
+#include "T_SisFileInstaller.h"
 
 _LIT(KAppName, "SimpleApparcTestApp");
-_LIT(KAppFileName, "z:\\sys\\bin\\SimpleApparcTestApp.exe");
+_LIT(KAppFileName, "c:\\sys\\bin\\SimpleApparcTestApp.exe");
 _LIT(KAppFile, "c:\\logs\\testApp.txt");
+
+_LIT(KSimpleAppSisFile, "z:\\apparctest\\apparctestsisfiles\\SimpleApparcTestApp.sis");
+_LIT(KSimpleAppComponent, "SimpleApparcTestApp");
+
 const TInt KNonExistantWgId = KErrNotFound;
 
 //
@@ -304,6 +309,25 @@
     }
 
 
+TVerdict CTestForegroundStep::doTestStepPreambleL()
+    {
+    CSisFileInstaller sisFileInstaller;
+    INFO_PRINTF2(_L("Installing sis file from -> %S"), &KSimpleAppSisFile);
+    sisFileInstaller.InstallSisL(KSimpleAppSisFile);
+    
+    SetTestStepResult(EPass);
+    return TestStepResult();
+    }
+
+TVerdict CTestForegroundStep::doTestStepPostambleL()
+    {
+    CSisFileInstaller sisFileInstaller;
+    sisFileInstaller.UninstallSisL(KSimpleAppComponent);
+    
+    return TestStepResult();    
+    }
+
+
 TVerdict CTestForegroundStep::doTestStepL() // main function called by E32
 	{
 	INFO_PRINTF1(_L("Test Started"));