appfw/apparchitecture/tef/T_DataMappingPersistenceA.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".
    17  @file
    17  @file
    18  @internalComponent - Internal Symbian test code  
    18  @internalComponent - Internal Symbian test code  
    19 */
    19 */
    20 
    20 
    21 #include "T_DataMappingPersistenceA.h"
    21 #include "T_DataMappingPersistenceA.h"
       
    22 #include "T_SisFileInstaller.h"
    22 
    23 
       
    24 _LIT(KServerApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\serverapp2.sis");
    23 
    25 
    24 /**
    26 /**
    25  * Constructor
    27  * Constructor
    26  */	
    28  */	
    27 CT_DataMappingPersistenceATestStep::CT_DataMappingPersistenceATestStep()
    29 CT_DataMappingPersistenceATestStep::CT_DataMappingPersistenceATestStep()
    42  * @return - TVerdict code
    44  * @return - TVerdict code
    43  * Override of base class virtual
    45  * Override of base class virtual
    44  */	
    46  */	
    45 TVerdict CT_DataMappingPersistenceATestStep::doTestStepPreambleL()
    47 TVerdict CT_DataMappingPersistenceATestStep::doTestStepPreambleL()
    46 	{
    48 	{
    47 	SetTestStepResult(EPass);
    49     CSisFileInstaller sisFileInstaller;
       
    50     INFO_PRINTF2(_L("Installing sis file from -> %S"), &KServerApp2SisFile);
       
    51     sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KServerApp2SisFile); 
       
    52 
       
    53     SetTestStepResult(EPass);
    48 	TInt error = iSession.Connect();
    54 	TInt error = iSession.Connect();
    49 	TEST(error==KErrNone);
    55 	TEST(error==KErrNone);
    50 	return TestStepResult();
    56 	return TestStepResult();
    51 	}
    57 	}
    52 
    58