appfw/apparchitecture/tef/T_Foreground.cpp
branchRCL_3
changeset 19 924385140d98
parent 0 2e3d3ce01487
child 20 c2c61fdca848
equal deleted inserted replaced
18:0818dd463d41 19:924385140d98
     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".
    52 #include <apgwgnam.h>
    52 #include <apgwgnam.h>
    53 #include <e32base.h>
    53 #include <e32base.h>
    54 #include <eikenv.h>
    54 #include <eikenv.h>
    55 
    55 
    56 #include "t_foreground.h"
    56 #include "t_foreground.h"
       
    57 #include "T_SisFileInstaller.h"
    57 
    58 
    58 _LIT(KAppName, "SimpleApparcTestApp");
    59 _LIT(KAppName, "SimpleApparcTestApp");
    59 _LIT(KAppFileName, "z:\\sys\\bin\\SimpleApparcTestApp.exe");
    60 _LIT(KAppFileName, "c:\\sys\\bin\\SimpleApparcTestApp.exe");
    60 _LIT(KAppFile, "c:\\logs\\testApp.txt");
    61 _LIT(KAppFile, "c:\\logs\\testApp.txt");
       
    62 
       
    63 _LIT(KSimpleAppSisFile, "z:\\apparctest\\apparctestsisfiles\\SimpleApparcTestApp.sis");
       
    64 _LIT(KSimpleAppComponent, "SimpleApparcTestApp");
       
    65 
    61 const TInt KNonExistantWgId = KErrNotFound;
    66 const TInt KNonExistantWgId = KErrNotFound;
    62 
    67 
    63 //
    68 //
    64 //
    69 //
    65 // The CTestDriver class runs a series of tests on timer callback
    70 // The CTestDriver class runs a series of tests on timer callback
   302     aCoe->SetAppUi(appUi);
   307     aCoe->SetAppUi(appUi);
   303     appUi->ConstructL();
   308     appUi->ConstructL();
   304     }
   309     }
   305 
   310 
   306 
   311 
       
   312 TVerdict CTestForegroundStep::doTestStepPreambleL()
       
   313     {
       
   314     CSisFileInstaller sisFileInstaller;
       
   315     INFO_PRINTF2(_L("Installing sis file from -> %S"), &KSimpleAppSisFile);
       
   316     sisFileInstaller.InstallSisL(KSimpleAppSisFile);
       
   317     
       
   318     SetTestStepResult(EPass);
       
   319     return TestStepResult();
       
   320     }
       
   321 
       
   322 TVerdict CTestForegroundStep::doTestStepPostambleL()
       
   323     {
       
   324     CSisFileInstaller sisFileInstaller;
       
   325     sisFileInstaller.UninstallSisL(KSimpleAppComponent);
       
   326     
       
   327     return TestStepResult();    
       
   328     }
       
   329 
       
   330 
   307 TVerdict CTestForegroundStep::doTestStepL() // main function called by E32
   331 TVerdict CTestForegroundStep::doTestStepL() // main function called by E32
   308 	{
   332 	{
   309 	INFO_PRINTF1(_L("Test Started"));
   333 	INFO_PRINTF1(_L("Test Started"));
   310 	
   334 	
   311 	PreallocateHALBuffer();
   335 	PreallocateHALBuffer();