os/ossrv/lowlevellibsandfws/pluginfw/Framework/BackupNotifierTest/BackupNotifierTransitions.inl
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/lowlevellibsandfws/pluginfw/Framework/BackupNotifierTest/BackupNotifierTransitions.inl	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,69 @@
     1.4 +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// The implementation of the transition classes upon the CBackupNotifier class methods.
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +// ______________________________________________________________________________
    1.22 +//
    1.23 +_LIT(KBackupNotifierNewLTransition,"CBackupNotifier_NewL_Transition");
    1.24 +
    1.25 +inline CBackupNotifier_NewL_Transition::CBackupNotifier_NewL_Transition(CUnitTestContext& aUTContext,
    1.26 +													TTransitionValidator& aValidator)
    1.27 +: CTransitionType(KBackupNotifierNewLTransition, aUTContext, aValidator)
    1.28 +	{
    1.29 +	// Do nothing here.
    1.30 +	}
    1.31 +
    1.32 +inline void CBackupNotifier_NewL_Transition::TransitMethodL()
    1.33 +	{
    1.34 +	_LIT(KBackupNotifierNewLTransitMethod, "CBackupNotifier::NewL transition");
    1.35 +	Context().DataLogger().LogInformation(KBackupNotifierNewLTransitMethod);
    1.36 +	Context().iBackupNotifier = CBackupNotifier::NewL(*(Context().iStub));
    1.37 +	}
    1.38 +
    1.39 +inline CBackupNotifier_UnitTestContext& CBackupNotifier_NewL_Transition::Context() const
    1.40 +	{
    1.41 +	return REINTERPRET_CAST(CBackupNotifier_UnitTestContext&,iUTContext);
    1.42 +	}
    1.43 +
    1.44 +// ______________________________________________________________________________
    1.45 +//
    1.46 +_LIT(KBackupNotifierDtorTransition,"CBackupNotifier_Dtor_Transition");
    1.47 +
    1.48 +// WARNING : It is not recommended that CLeakTestTransitions
    1.49 +// are used on Dtor methods, so if CTransitionType is defined as CLeakTestTransition
    1.50 +// it is suggested that this Dtor transition's base is changed explicitly to CTransition
    1.51 +inline CBackupNotifier_Dtor_Transition::CBackupNotifier_Dtor_Transition(CUnitTestContext& aUTContext,
    1.52 +													TTransitionValidator& aValidator)
    1.53 +: CTransitionType(KBackupNotifierDtorTransition, aUTContext, aValidator)
    1.54 +	{
    1.55 +	// Do nothing here.
    1.56 +	}
    1.57 +
    1.58 +inline void CBackupNotifier_Dtor_Transition::TransitMethodL()
    1.59 +	{
    1.60 +	_LIT(KBackupNotifierDtorTransitMethod, "CBackupNotifier::Dtor transition");
    1.61 +	Context().DataLogger().LogInformation(KBackupNotifierDtorTransitMethod);
    1.62 +	delete Context().iBackupNotifier;
    1.63 +	Context().iBackupNotifier = NULL;
    1.64 +	}
    1.65 +
    1.66 +inline CBackupNotifier_UnitTestContext& CBackupNotifier_Dtor_Transition::Context() const
    1.67 +	{
    1.68 +	return REINTERPRET_CAST(CBackupNotifier_UnitTestContext&,iUTContext);
    1.69 +	}
    1.70 +
    1.71 +// Add additional Transition class Implementations here...
    1.72 +