appfw/apparchitecture/tef/T_DataMappingPersistenceA.cpp
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
equal deleted inserted replaced
62:924385140d98 63:c2c61fdca848
     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".
    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"
       
    23 
    22 
    24 _LIT(KServerApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\serverapp2.sis");
       
    25 
    23 
    26 /**
    24 /**
    27  * Constructor
    25  * Constructor
    28  */	
    26  */	
    29 CT_DataMappingPersistenceATestStep::CT_DataMappingPersistenceATestStep()
    27 CT_DataMappingPersistenceATestStep::CT_DataMappingPersistenceATestStep()
    44  * @return - TVerdict code
    42  * @return - TVerdict code
    45  * Override of base class virtual
    43  * Override of base class virtual
    46  */	
    44  */	
    47 TVerdict CT_DataMappingPersistenceATestStep::doTestStepPreambleL()
    45 TVerdict CT_DataMappingPersistenceATestStep::doTestStepPreambleL()
    48 	{
    46 	{
    49     CSisFileInstaller sisFileInstaller;
    47 	SetTestStepResult(EPass);
    50     INFO_PRINTF2(_L("Installing sis file from -> %S"), &KServerApp2SisFile);
       
    51     sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KServerApp2SisFile); 
       
    52 
       
    53     SetTestStepResult(EPass);
       
    54 	TInt error = iSession.Connect();
    48 	TInt error = iSession.Connect();
    55 	TEST(error==KErrNone);
    49 	TEST(error==KErrNone);
    56 	return TestStepResult();
    50 	return TestStepResult();
    57 	}
    51 	}
    58 
    52