os/ossrv/lowlevellibsandfws/pluginfw/Framework/BackupNotifierTest/BackupNotifierTransitionValidation.inl
Update contrib.
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // The implementation of the transition validation classes upon the CBackupNotifier class methods.
18 // ______________________________________________________________________________
20 inline TBackupNotifier_Ctor_TransitionValidator::TBackupNotifier_Ctor_TransitionValidator(CUnitTestContext& aUTContext)
21 :TTransitionValidator(aUTContext)
26 _LIT(KCtorFailedInvariant,
27 "CBackupNotifier_Ctor_Transition invariant failure");
29 inline TBool TBackupNotifier_Ctor_TransitionValidator::ValidatePreConditions()
34 inline TBool TBackupNotifier_Ctor_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
36 // For a d'tor this should be empty.
37 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CBackupNotifier_UnitTestContext&,iUTContext).iBackupNotifier))
39 iUTContext.DataLogger().LogInformation(KCtorFailedInvariant);
45 // ______________________________________________________________________________
47 inline TBackupNotifier_Dtor_TransitionValidator::TBackupNotifier_Dtor_TransitionValidator(CUnitTestContext& aUTContext)
48 :TTransitionValidator(aUTContext)
53 _LIT(KDtorFailedInvariant,
54 "CBackupNotifier_Dtor_Transition invariant failure");
56 inline TBool TBackupNotifier_Dtor_TransitionValidator::ValidatePreConditions()
58 // For a c'tor this should be empty.
59 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CBackupNotifier_UnitTestContext&,iUTContext).iBackupNotifier))
61 iUTContext.DataLogger().LogInformation(KDtorFailedInvariant);
67 inline TBool TBackupNotifier_Dtor_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)