os/ossrv/lowlevellibsandfws/pluginfw/Test_Bed/TestManagerTest/TestManagerTransitionValidation.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 CTestManager class methods.
18 // ______________________________________________________________________________
20 inline TTestManager_Ctor_TransitionValidator::TTestManager_Ctor_TransitionValidator(CUnitTestContext& aUTContext)
21 :TTransitionValidator(aUTContext)
26 inline TBool TTestManager_Ctor_TransitionValidator::ValidatePreConditions()
31 inline TBool TTestManager_Ctor_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
33 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestManager_UnitTestContext&,iUTContext).iTestManager))
38 // ______________________________________________________________________________
40 inline TTestManager_Dtor_TransitionValidator::TTestManager_Dtor_TransitionValidator(CUnitTestContext& aUTContext)
41 :TTransitionValidator(aUTContext)
46 inline TBool TTestManager_Dtor_TransitionValidator::ValidatePreConditions()
48 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestManager_UnitTestContext&,iUTContext).iTestManager))
53 inline TBool TTestManager_Dtor_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
58 // ______________________________________________________________________________
60 inline TTestManager_RunTests_TransitionValidator::TTestManager_RunTests_TransitionValidator(CUnitTestContext& aUTContext)
61 :TTransitionValidator(aUTContext)
66 inline TBool TTestManager_RunTests_TransitionValidator::ValidatePreConditions()
68 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestManager_UnitTestContext&,iUTContext).iTestManager))
73 inline TBool TTestManager_RunTests_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
75 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestManager_UnitTestContext&,iUTContext).iTestManager))
80 // ______________________________________________________________________________
82 inline TTestManager_TestComponent_TransitionValidator::TTestManager_TestComponent_TransitionValidator(CUnitTestContext& aUTContext)
83 :TTransitionValidator(aUTContext)
88 inline TBool TTestManager_TestComponent_TransitionValidator::ValidatePreConditions()
90 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestManager_UnitTestContext&,iUTContext).iTestManager))
95 inline TBool TTestManager_TestComponent_TransitionValidator::ValidatePostConditions(TTestBedAsyncState /* aAsyncState */)
97 if(iUTContext.StateAccessor().InvariantTest(REINTERPRET_CAST(CTestManager_UnitTestContext&,iUTContext).iTestManager))