os/ossrv/lowlevellibsandfws/pluginfw/Test_Bed/DataLoggerTest/DataLoggerTransitionValidation.inl
First public contribution.
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 CDataLogger class methods.
18 // ______________________________________________________________________________
20 inline TDataLogger_Ctor_TransitionValidator::TDataLogger_Ctor_TransitionValidator(CUnitTestContext& aUTContext)
21 :TTransitionValidator(aUTContext)
26 inline TBool TDataLogger_Ctor_TransitionValidator::ValidatePreConditions()
31 inline TBool TDataLogger_Ctor_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
33 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
38 // ______________________________________________________________________________
40 inline TDataLogger_Dtor_TransitionValidator::TDataLogger_Dtor_TransitionValidator(CUnitTestContext& aUTContext)
41 :TTransitionValidator(aUTContext)
46 inline TBool TDataLogger_Dtor_TransitionValidator::ValidatePreConditions()
48 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
53 inline TBool TDataLogger_Dtor_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
58 // ______________________________________________________________________________
60 inline TDataLogger_DumpMemoryBlock_TransitionValidator::TDataLogger_DumpMemoryBlock_TransitionValidator(CUnitTestContext& aUTContext)
61 :TTransitionValidator(aUTContext)
66 inline TBool TDataLogger_DumpMemoryBlock_TransitionValidator::ValidatePreConditions()
68 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
73 inline TBool TDataLogger_DumpMemoryBlock_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
75 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
80 // ______________________________________________________________________________
82 inline TDataLogger_LogInformation_TransitionValidator::TDataLogger_LogInformation_TransitionValidator(CUnitTestContext& aUTContext)
83 :TTransitionValidator(aUTContext)
88 inline TBool TDataLogger_LogInformation_TransitionValidator::ValidatePreConditions()
90 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
95 inline TBool TDataLogger_LogInformation_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
97 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
102 // ______________________________________________________________________________
104 inline TDataLogger_LogInformationNarrow_TransitionValidator::TDataLogger_LogInformationNarrow_TransitionValidator(CUnitTestContext& aUTContext)
105 :TTransitionValidator(aUTContext)
110 inline TBool TDataLogger_LogInformationNarrow_TransitionValidator::ValidatePreConditions()
112 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
117 inline TBool TDataLogger_LogInformationNarrow_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
119 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
124 // ______________________________________________________________________________
126 inline TDataLogger_LogInformationWithParameters_TransitionValidator::TDataLogger_LogInformationWithParameters_TransitionValidator(CUnitTestContext& aUTContext)
127 :TTransitionValidator(aUTContext)
132 inline TBool TDataLogger_LogInformationWithParameters_TransitionValidator::ValidatePreConditions()
134 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
139 inline TBool TDataLogger_LogInformationWithParameters_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
141 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
146 // ______________________________________________________________________________
148 inline TDataLogger_LogInformationWithParametersNarrow_TransitionValidator::TDataLogger_LogInformationWithParametersNarrow_TransitionValidator(CUnitTestContext& aUTContext)
149 :TTransitionValidator(aUTContext)
154 inline TBool TDataLogger_LogInformationWithParametersNarrow_TransitionValidator::ValidatePreConditions()
156 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
161 inline TBool TDataLogger_LogInformationWithParametersNarrow_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
163 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
168 // ______________________________________________________________________________
170 inline TDataLogger_ReportInformation_TransitionValidator::TDataLogger_ReportInformation_TransitionValidator(CUnitTestContext& aUTContext)
171 :TTransitionValidator(aUTContext)
176 inline TBool TDataLogger_ReportInformation_TransitionValidator::ValidatePreConditions()
178 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
183 inline TBool TDataLogger_ReportInformation_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
185 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
190 // ______________________________________________________________________________
192 inline TDataLogger_ReportInformationWithParameters_TransitionValidator::TDataLogger_ReportInformationWithParameters_TransitionValidator(CUnitTestContext& aUTContext)
193 :TTransitionValidator(aUTContext)
198 inline TBool TDataLogger_ReportInformationWithParameters_TransitionValidator::ValidatePreConditions()
200 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))
205 inline TBool TDataLogger_ReportInformationWithParameters_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
207 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CDataLogger_UnitTestContext&,iUTContext).iDataLogger))