os/ossrv/lowlevellibsandfws/pluginfw/Test_Bed/TestControllerTest/TestControllerTransitionValidation.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 CTestController class methods.
18 // ______________________________________________________________________________
20 inline TTestController_Ctor_TransitionValidator::TTestController_Ctor_TransitionValidator(CUnitTestContext& aUTContext)
21 :TTransitionValidator(aUTContext)
26 inline TBool TTestController_Ctor_TransitionValidator::ValidatePreConditions()
31 inline TBool TTestController_Ctor_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
33 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))
38 // ______________________________________________________________________________
40 inline TTestController_Dtor_TransitionValidator::TTestController_Dtor_TransitionValidator(CUnitTestContext& aUTContext)
41 :TTransitionValidator(aUTContext)
46 inline TBool TTestController_Dtor_TransitionValidator::ValidatePreConditions()
48 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))
53 inline TBool TTestController_Dtor_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
58 // ______________________________________________________________________________
60 inline TTestController_ScanDrive_TransitionValidator::TTestController_ScanDrive_TransitionValidator(CUnitTestContext& aUTContext)
61 :TTransitionValidator(aUTContext)
66 inline TBool TTestController_ScanDrive_TransitionValidator::ValidatePreConditions()
68 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))
73 inline TBool TTestController_ScanDrive_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
75 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))
80 // ______________________________________________________________________________
82 inline TTestController_DiscoverTests_TransitionValidator::TTestController_DiscoverTests_TransitionValidator(CUnitTestContext& aUTContext)
83 :TTransitionValidator(aUTContext)
88 inline TBool TTestController_DiscoverTests_TransitionValidator::ValidatePreConditions()
90 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))
95 inline TBool TTestController_DiscoverTests_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
97 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))
102 // ______________________________________________________________________________
104 inline TTestController_FindComponents_TransitionValidator::TTestController_FindComponents_TransitionValidator(CUnitTestContext& aUTContext)
105 :TTransitionValidator(aUTContext)
110 inline TBool TTestController_FindComponents_TransitionValidator::ValidatePreConditions()
112 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))
117 inline TBool TTestController_FindComponents_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
119 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))
124 // ______________________________________________________________________________
126 inline TTestController_GetUnitTests_TransitionValidator::TTestController_GetUnitTests_TransitionValidator(CUnitTestContext& aUTContext)
127 :TTransitionValidator(aUTContext)
132 inline TBool TTestController_GetUnitTests_TransitionValidator::ValidatePreConditions()
134 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))
139 inline TBool TTestController_GetUnitTests_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
141 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))
146 // ______________________________________________________________________________
148 inline TTestController_Start_TransitionValidator::TTestController_Start_TransitionValidator(CUnitTestContext& aUTContext)
149 :TTransitionValidator(aUTContext)
154 inline TBool TTestController_Start_TransitionValidator::ValidatePreConditions()
156 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))
161 inline TBool TTestController_Start_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
163 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestController_UnitTestContext&,iUTContext).iTestController))