sl@0: // Copyright (c) 1997-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 definition of the validation classes for the CRegistryData transitions sl@0: // sl@0: // sl@0: sl@0: #ifndef __REGISTRYDATATRANSITIONVALIDATION_H__ sl@0: #define __REGISTRYDATATRANSITIONVALIDATION_H__ sl@0: sl@0: #include "RegistryDataTransitions.h" sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the CreateAndDestroy Unit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_Ctor_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_Ctor_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : Standard constructor. 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 TRegistryData_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 TRegistryData_Default_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 TRegistryData_Default_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: }; // TRegistryData_Ctor_TransitionValidator sl@0: sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the CreateAndDestroy Unit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_Dtor_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_Dtor_TransitionValidator(CUnitTestContext& aUTContext) sl@0: Intended Usage : Default constructor 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 TRegistryData_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 TRegistryData_Default_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 TRegistryData_Default_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: }; // TRegistryData_Dtor_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the AddDllDataLUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_AddDllDataL_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_AddDllDataL_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 TRegistryData_AddDllDataL_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 TRegistryData_AddDllDataL_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 TRegistryData_AddDllDataL_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: }; // TRegistryData_AddDllDataL_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the AddDllDataLUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_ListImplementations_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_ListImplementations_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 TRegistryData_ListImplementations_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 TRegistryData_ListImplementations_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 TRegistryData_ListImplementations_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: }; // TRegistryData_ListImplementations_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the GetImplementationInformationUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_GetImplementationInformation_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_GetImplementationInformation_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 TRegistryData_GetImplementationInformation_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 TRegistryData_GetImplementationInformation_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 TRegistryData_GetImplementationInformation_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: }; // TRegistryData_GetImplementationInformation_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the IsRegisteredWithDateUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_IsRegisteredWithDate_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_IsRegisteredWithDate_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 TRegistryData_IsRegisteredWithDate_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 TRegistryData_IsRegisteredWithDate_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 TRegistryData_IsRegisteredWithDate_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: }; // TRegistryData_IsRegisteredWithDate_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the PersistNowUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_PersistNow_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_PersistNow_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 TRegistryData_PersistNow_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 TRegistryData_PersistNow_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 TRegistryData_PersistNow_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: }; // TRegistryData_PersistNow_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the TemporaryUninstallUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_TemporaryUninstall_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_TemporaryUninstall_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 TRegistryData_TemporaryUninstall_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 TRegistryData_TemporaryUninstall_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 TRegistryData_TemporaryUninstall_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: }; // TRegistryData_TemporaryUninstall_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the UndoTemporaryUninstallUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_UndoTemporaryUninstall_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_UndoTemporaryUninstall_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 TRegistryData_UndoTemporaryUninstall_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 TRegistryData_UndoTemporaryUninstall_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 TRegistryData_UndoTemporaryUninstall_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: }; // TRegistryData_UndoTemporaryUninstall_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the UpdateDllDataUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_UpdateDllData_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_UpdateDllData_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 TRegistryData_UpdateDllData_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 TRegistryData_UpdateDllData_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 TRegistryData_UpdateDllData_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: }; // TRegistryData_UpdateDllData_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the BuildIndexesUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_BuildIndexes_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_BuildIndexes_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 TRegistryData_BuildIndexes_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 TRegistryData_BuildIndexes_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 TRegistryData_BuildIndexes_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: }; // TRegistryData_BuildIndexes_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the IndexedFindUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_IndexedFind_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_IndexedFind_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 TRegistryData_IndexedFind_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 TRegistryData_IndexedFind_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 TRegistryData_IndexedFind_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: }; // TRegistryData_IndexedFind_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the RestoreUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_Restore_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_Restore_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 TRegistryData_Restore_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 TRegistryData_Restore_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 TRegistryData_Restore_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: }; // TRegistryData_Restore_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the StoreUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_Store_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_Store_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 TRegistryData_Store_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 TRegistryData_Store_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 TRegistryData_Store_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: }; // TRegistryData_Store_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the MatchOnUidUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_MatchOnUid_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_MatchOnUid_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 TRegistryData_MatchOnUid_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 TRegistryData_MatchOnUid_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 TRegistryData_MatchOnUid_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: }; // TRegistryData_MatchOnUid_TransitionValidator sl@0: sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the ConstructPolicyIndexLUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_ConstructPolicyIndexL_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_ConstructPolicyIndexL_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 TRegistryData_ConstructPolicyIndexL_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 TRegistryData_ConstructPolicyIndexL_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 TRegistryData_ConstructPolicyIndexL_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: }; // TRegistryData_ConstructPolicyIndexL_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the SetPolicyObserverUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_SetPolicyObserver_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_SetPolicyObserver_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 TRegistryData_SetPolicyObserver_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 TRegistryData_SetPolicyObserver_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 TRegistryData_SetPolicyObserver_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: }; // TRegistryData_SetPolicyObserver_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the GetSecondImplInfoUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_GetSecondImplInfo_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_GetSecondImplInfo_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 TRegistryData_GetSecondImplInfo_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 TRegistryData_GetSecondImplInfo_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 TRegistryData_GetSecondImplInfo_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: }; // TRegistryData_GetSecondImplInfo_TransitionValidator sl@0: sl@0: // ______________________________________________________________________________ sl@0: // sl@0: /** sl@0: @internalComponent sl@0: sl@0: Comments : Provide all the DiscoveriesBeginningUnit Test's specific sl@0: validatation for the state of a transition before and after its execution. sl@0: on the CRegistryData test class for a transition. sl@0: */ sl@0: class TRegistryData_DiscoveriesBeginning_TransitionValidator : public TTransitionValidator sl@0: { sl@0: public: sl@0: /** sl@0: @fn TRegistryData_DiscoveriesBeginning_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 TRegistryData_DiscoveriesBeginning_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 TRegistryData_DiscoveriesBeginning_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 TRegistryData_DiscoveriesBeginning_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: }; // TRegistryData_DiscoveriesBeginning_TransitionValidator sl@0: sl@0: #include "RegistryDataTransitionValidation.inl" sl@0: sl@0: #endif // __REGISTRYDATATRANSITIONVALIDATION_H__