os/ossrv/lowlevellibsandfws/pluginfw/Test_Bed/DefaultLogOutputTest/DefaultLogOutputTransitionValidation.inl
Update contrib.
1 // Copyright (c) 1997-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 CDefaultLogOutput class methods.
18 // ______________________________________________________________________________
20 inline TDefaultLogOutput_Ctor_TransitionValidator::TDefaultLogOutput_Ctor_TransitionValidator(CUnitTestContext& aUTContext)
21 :TTransitionValidator(aUTContext)
26 inline TBool TDefaultLogOutput_Ctor_TransitionValidator::ValidatePreConditions()
31 inline TBool TDefaultLogOutput_Ctor_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
33 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext).iDefaultLogOutput))
38 // ______________________________________________________________________________
40 inline TDefaultLogOutput_Dtor_TransitionValidator::TDefaultLogOutput_Dtor_TransitionValidator(CUnitTestContext& aUTContext)
41 :TTransitionValidator(aUTContext)
46 inline TBool TDefaultLogOutput_Dtor_TransitionValidator::ValidatePreConditions()
48 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext).iDefaultLogOutput))
53 inline TBool TDefaultLogOutput_Dtor_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
58 // ______________________________________________________________________________
60 inline TDefaultLogOutput_Open_TransitionValidator::TDefaultLogOutput_Open_TransitionValidator(CUnitTestContext& aUTContext)
61 :TTransitionValidator(aUTContext)
66 inline TBool TDefaultLogOutput_Open_TransitionValidator::ValidatePreConditions()
68 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext).iDefaultLogOutput))
73 inline TBool TDefaultLogOutput_Open_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
75 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext).iDefaultLogOutput))
80 // ______________________________________________________________________________
82 inline TDefaultLogOutput_Close_TransitionValidator::TDefaultLogOutput_Close_TransitionValidator(CUnitTestContext& aUTContext)
83 :TTransitionValidator(aUTContext)
88 inline TBool TDefaultLogOutput_Close_TransitionValidator::ValidatePreConditions()
90 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext).iDefaultLogOutput))
95 inline TBool TDefaultLogOutput_Close_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
97 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext).iDefaultLogOutput))
102 // ______________________________________________________________________________
104 inline TDefaultLogOutput_Write_TransitionValidator::TDefaultLogOutput_Write_TransitionValidator(CUnitTestContext& aUTContext)
105 :TTransitionValidator(aUTContext)
110 inline TBool TDefaultLogOutput_Write_TransitionValidator::ValidatePreConditions()
112 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext).iDefaultLogOutput))
117 inline TBool TDefaultLogOutput_Write_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
119 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext).iDefaultLogOutput))