sl@0: // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // The definitions of the transition classes upon the CTransition class methods. sl@0: // sl@0: // sl@0: sl@0: #ifndef __TRANSITIONTRANSITIONVALIDATION_H__ sl@0: #define __TRANSITIONTRANSITIONVALIDATION_H__ sl@0: sl@0: #include "TransitionTransitions.h" sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the CtorUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_Ctor_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_Ctor_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_Ctor_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_Ctor_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_Ctor_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_Ctor_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the DtorUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_Dtor_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_Dtor_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_Dtor_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_Dtor_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_Dtor_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_Dtor_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the TransitMethodL Unit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_TransitMethodL_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_TransitMethodL_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_TransitMethodL_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_TransitMethodL_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_TransitMethodL_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_TransitMethodL_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the RepeatOnce Unit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_RepeatOnce_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_RepeatOnce_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_RepeatOnce_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_RepeatOnce_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_RepeatOnce_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_RepeatOnce_TransitionValidator sl@0: sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the TransitionId Unit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_TransitionId_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_TransitionId_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_TransitionId_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_TransitionId_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_TransitionId_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_TransitionId_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the TransitionInfo Unit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_TransitionInfo_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_TransitionInfo_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_TransitionInfo_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_TransitionInfo_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_TransitionInfo_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_TransitionInfo_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the IsBlockingTransition Unit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_IsBlocking_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_IsBlocking_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_IsBlocking_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_IsBlocking_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_IsBlocking_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_IsBlocking_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the SetBlockingTransition Unit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_SetBlocking_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_SetBlocking_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_SetBlocking_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_SetBlocking_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_SetBlocking_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_SetBlocking_TransitionValidator sl@0: sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the GetErrorCodeTransition Unit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_GetErrorCode_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_GetErrorCode_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_GetErrorCode_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_GetErrorCode_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_GetErrorCode_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_GetErrorCode_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the RunTransitionTransition Unit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_RunTransition_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_RunTransition_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_RunTransition_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_RunTransition_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_RunTransition_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_RunTransition_TransitionValidator sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the CancelTransition Unit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_Cancel_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_Cancel_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_Cancel_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_Cancel_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_Cancel_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_Cancel_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the DtorUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CTransition test class for a transition. sl@0: */ sl@0: class TTransition_NULL_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TTransition_NULL_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : sl@0: @leave KErrNoMemory sl@0: @since 7.0 sl@0: @param aUTContext The context within which this transition is executing sl@0: */ sl@0: inline TTransition_NULL_TransitionValidator(CUnitTestContext& aUTContext); sl@0: sl@0: /** sl@0: @fn ValidatePreConditions() sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: Error Condition : Invalid pre-conditions sl@0: @since 7.0 sl@0: @return TBool ETrue if the pre-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_Dtor_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePreConditions(); sl@0: sl@0: /** sl@0: @fn ValidatePostConditions(TTestBedAsyncState aAsyncState) sl@0: Intended Usage : Implemented by the developer to check the sl@0: end state of the transition behaviour. sl@0: When overriding, if the transition calls an asynchronous function sl@0: ValidatePostConditions will be called twice. Firstly, after the sl@0: asynchronous function has been called and, secondly, after the sl@0: asynchronous request has completed. The parameter aAsyncState can sl@0: be used to distinguish between these two cases. sl@0: Error Condition : Invalid post-conditions. sl@0: @since 7.0 sl@0: @param aAsyncState EAsyncCalled if the async function has been just been called, sl@0: EAsyncCompleted if the function has completed. sl@0: @return TBool ETrue if the post-conditions were valid, EFalse otherwise. sl@0: @pre TTransition_Dtor_TransitionValidator is fully constructed. sl@0: @post No change to the iUTContext class. sl@0: */ sl@0: virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState); sl@0: }; // TTransition_Dtor_TransitionValidator sl@0: sl@0: sl@0: #include "TransitionTransitionValidation.inl" sl@0: sl@0: #endif // __TRANSITIONTRANSITIONVALIDATION_H__ sl@0: