installationservices/swtransactionservices/test/source/tststestsuitesteprollbackall.cpp
branchRCL_3
changeset 25 7333d7932ef7
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20  @file
       
    21  @test
       
    22  @internalComponent
       
    23 */
       
    24 #include "tststestsuitesteprollbackall.h"
       
    25 #include <usif/sts/sts.h>
       
    26 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    27 #include "stsrecovery.h"
       
    28 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
       
    29 
       
    30 CRollbackAllPendingStep::CRollbackAllPendingStep()
       
    31 	{
       
    32 	// Call base class method to set up the human readable name for logging
       
    33 	SetTestStepName(KRollbackAllPendingStep);
       
    34 	}
       
    35 
       
    36 void CRollbackAllPendingStep::ImplTestStepPreambleL()
       
    37 /**
       
    38  @return - void code
       
    39  Override of base class virtual
       
    40  */
       
    41 	{
       
    42 	INFO_PRINTF1(_L("CRollbackAllPendingStep Preamble"));
       
    43 	SetTestStepResult(EPass);
       
    44 
       
    45 	}
       
    46 
       
    47 void CRollbackAllPendingStep::ImplTestStepL()
       
    48 /**
       
    49  @return - void code
       
    50  Override of base class pure virtual
       
    51  */
       
    52 	{
       
    53 	INFO_PRINTF1(_L("CRollbackAllPendingStep in test step"));
       
    54 
       
    55 	Usif::RStsRecoverySession session;
       
    56 	CleanupClosePushL(session);
       
    57 	session.RollbackAllPendingL();
       
    58 	CleanupStack::PopAndDestroy(&session);
       
    59 	SetTestStepResult(EPass);
       
    60 
       
    61 	}
       
    62 
       
    63 void CRollbackAllPendingStep::ImplTestStepPostambleL()
       
    64 /**
       
    65  @return - void code
       
    66  Override of base class virtual
       
    67  */
       
    68 	{
       
    69 	INFO_PRINTF1(_L("CRollbackAllPendingStep Postamble"));
       
    70 
       
    71 	}