sl@0: // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // The implementation of the transition classes upon the CBackupNotifier class methods. sl@0: // sl@0: // sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: _LIT(KBackupNotifierNewLTransition,"CBackupNotifier_NewL_Transition"); sl@0: sl@0: inline CBackupNotifier_NewL_Transition::CBackupNotifier_NewL_Transition(CUnitTestContext& aUTContext, sl@0: TTransitionValidator& aValidator) sl@0: : CTransitionType(KBackupNotifierNewLTransition, aUTContext, aValidator) sl@0: { sl@0: // Do nothing here. sl@0: } sl@0: sl@0: inline void CBackupNotifier_NewL_Transition::TransitMethodL() sl@0: { sl@0: _LIT(KBackupNotifierNewLTransitMethod, "CBackupNotifier::NewL transition"); sl@0: Context().DataLogger().LogInformation(KBackupNotifierNewLTransitMethod); sl@0: Context().iBackupNotifier = CBackupNotifier::NewL(*(Context().iStub)); sl@0: } sl@0: sl@0: inline CBackupNotifier_UnitTestContext& CBackupNotifier_NewL_Transition::Context() const sl@0: { sl@0: return REINTERPRET_CAST(CBackupNotifier_UnitTestContext&,iUTContext); sl@0: } sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: _LIT(KBackupNotifierDtorTransition,"CBackupNotifier_Dtor_Transition"); sl@0: sl@0: // WARNING : It is not recommended that CLeakTestTransitions sl@0: // are used on Dtor methods, so if CTransitionType is defined as CLeakTestTransition sl@0: // it is suggested that this Dtor transition's base is changed explicitly to CTransition sl@0: inline CBackupNotifier_Dtor_Transition::CBackupNotifier_Dtor_Transition(CUnitTestContext& aUTContext, sl@0: TTransitionValidator& aValidator) sl@0: : CTransitionType(KBackupNotifierDtorTransition, aUTContext, aValidator) sl@0: { sl@0: // Do nothing here. sl@0: } sl@0: sl@0: inline void CBackupNotifier_Dtor_Transition::TransitMethodL() sl@0: { sl@0: _LIT(KBackupNotifierDtorTransitMethod, "CBackupNotifier::Dtor transition"); sl@0: Context().DataLogger().LogInformation(KBackupNotifierDtorTransitMethod); sl@0: delete Context().iBackupNotifier; sl@0: Context().iBackupNotifier = NULL; sl@0: } sl@0: sl@0: inline CBackupNotifier_UnitTestContext& CBackupNotifier_Dtor_Transition::Context() const sl@0: { sl@0: return REINTERPRET_CAST(CBackupNotifier_UnitTestContext&,iUTContext); sl@0: } sl@0: sl@0: // Add additional Transition class Implementations here... sl@0: