sl@0: // Copyright (c) 1997-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 definition of the transition classes on the CLoadManager class sl@0: // sl@0: // sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: inline CLoadManager_UnitTestContext::CLoadManager_UnitTestContext(CDataLogger& aDataLogger, sl@0: MStateAccessor& aStateAccessor, sl@0: MTransitionObserver& aObserver) sl@0: : CUnitTestContext(aDataLogger, aStateAccessor, aObserver) sl@0: { sl@0: //Do nothing sl@0: } sl@0: sl@0: inline CLoadManager_UnitTestContext::~CLoadManager_UnitTestContext() sl@0: { sl@0: delete iLoadManager; sl@0: delete iRegistryData; sl@0: } sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: _LIT(KLoadManagerNewLTransition,"CLoadManager_NewL_Transition"); sl@0: sl@0: inline CLoadManager_NewL_Transition::CLoadManager_NewL_Transition(CUnitTestContext& aUTContext, sl@0: TTransitionValidator& aValidator) sl@0: : CTransitionType(KLoadManagerNewLTransition, aUTContext, aValidator) sl@0: { sl@0: // Do nothing here. sl@0: } sl@0: sl@0: inline void CLoadManager_NewL_Transition::TransitMethodL() sl@0: { sl@0: Context().iLoadManager = CLoadManager::NewL(); sl@0: } sl@0: sl@0: inline CLoadManager_UnitTestContext& CLoadManager_NewL_Transition::Context() const sl@0: { sl@0: return REINTERPRET_CAST(CLoadManager_UnitTestContext&,iUTContext); sl@0: } sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: _LIT(KLoadManagerDtorTransition,"CLoadManager_Dtor_Transition"); sl@0: sl@0: inline CLoadManager_Dtor_Transition::CLoadManager_Dtor_Transition(CUnitTestContext& aUTContext, sl@0: TTransitionValidator& aValidator) sl@0: : CTransition(KLoadManagerDtorTransition, aUTContext, aValidator) sl@0: { sl@0: // Do nothing here. sl@0: } sl@0: sl@0: inline void CLoadManager_Dtor_Transition::TransitMethodL() sl@0: { sl@0: delete Context().iLoadManager; sl@0: Context().iLoadManager = NULL; sl@0: } sl@0: sl@0: inline CLoadManager_UnitTestContext& CLoadManager_Dtor_Transition::Context() const sl@0: { sl@0: return REINTERPRET_CAST(CLoadManager_UnitTestContext&,iUTContext); sl@0: } sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: _LIT(KLoadManagerInstantiationMethodLTransition,"CLoadManager_InstantiationMethodL_Transition"); sl@0: sl@0: inline CLoadManager_InstantiationMethodL_Transition::CLoadManager_InstantiationMethodL_Transition(CUnitTestContext& aUTContext, sl@0: TTransitionValidator& aValidator) sl@0: : CTransition(KLoadManagerInstantiationMethodLTransition, aUTContext, aValidator) sl@0: { sl@0: // Do nothing here. sl@0: } sl@0: sl@0: inline void CLoadManager_InstantiationMethodL_Transition::TransitMethodL() sl@0: { sl@0: _LIT(KLoadManagerInstantiationMethodLTransitMethod, "CLoadManager::InstantiationMethodL transition"); sl@0: Context().DataLogger().LogInformation(KLoadManagerInstantiationMethodLTransitMethod); sl@0: Context().iLoadMethod = Context().iLoadManager->InstantiationMethodL(Context().iUniqueImplementationUid, sl@0: Context().iDllEntry); sl@0: } sl@0: sl@0: inline CLoadManager_UnitTestContext& CLoadManager_InstantiationMethodL_Transition::Context() const sl@0: { sl@0: return REINTERPRET_CAST(CLoadManager_UnitTestContext&,iUTContext); sl@0: } sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: _LIT(KLoadManagerDestroyedThisTransition,"CLoadManager_DestroyedThis_Transition"); sl@0: sl@0: inline CLoadManager_DestroyedThis_Transition::CLoadManager_DestroyedThis_Transition(CUnitTestContext& aUTContext, sl@0: TTransitionValidator& aValidator) sl@0: : CTransition(KLoadManagerDestroyedThisTransition, aUTContext, aValidator) sl@0: { sl@0: // Do nothing here. sl@0: } sl@0: sl@0: inline void CLoadManager_DestroyedThis_Transition::TransitMethodL() sl@0: { sl@0: _LIT(KLoadManagerDestroyedThisTransitMethod, "CLoadManager::DestroyedThis transition"); sl@0: Context().DataLogger().LogInformation(KLoadManagerDestroyedThisTransitMethod); sl@0: Context().iLoadManager->DestroyedThis(Context().iUniqueImplementationUid); sl@0: } sl@0: sl@0: inline CLoadManager_UnitTestContext& CLoadManager_DestroyedThis_Transition::Context() const sl@0: { sl@0: return REINTERPRET_CAST(CLoadManager_UnitTestContext&,iUTContext); sl@0: } sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: _LIT(KLoadManagerDestroyCreateTransition,"CLoadManager_DestroyCreate_Transition"); sl@0: sl@0: inline CLoadManager_DestroyCreate_Transition::CLoadManager_DestroyCreate_Transition(CUnitTestContext& aUTContext, sl@0: TTransitionValidator& aValidator) sl@0: : CTransition(KLoadManagerDestroyCreateTransition, aUTContext, aValidator) sl@0: { sl@0: // Do nothing here. sl@0: } sl@0: sl@0: inline void CLoadManager_DestroyCreate_Transition::TransitMethodL() sl@0: { sl@0: _LIT(KLoadManagerDestroyCreateTransitMethod, "CLoadManager_DestroyCreate_Transition"); sl@0: Context().DataLogger().LogInformation(KLoadManagerDestroyCreateTransitMethod); sl@0: Context().iLoadManager->DestroyedThis(Context().iUniqueImplementationUid); sl@0: Context().iLoadMethod = Context().iLoadManager->InstantiationMethodL(Context().iUniqueImplementationUid, sl@0: Context().iDllEntry); sl@0: sl@0: } sl@0: sl@0: inline CLoadManager_UnitTestContext& CLoadManager_DestroyCreate_Transition::Context() const sl@0: { sl@0: return REINTERPRET_CAST(CLoadManager_UnitTestContext&,iUTContext); sl@0: } sl@0: