messagingfw/msgurlhandler/test/basic/inc/SmsSchemeHandlerTransitionValidation.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // The definitions of the transition classes upon the CSmsSchemeHandler class methods.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @SYMCreationDate Created : 01/06/01 14:07:24
       
    21 */
       
    22 
       
    23 #ifndef __SMSSCHEMEHANDLERTRANSITIONVALIDATION_H__
       
    24 #define __SMSSCHEMEHANDLERTRANSITIONVALIDATION_H__
       
    25 
       
    26 #include "SmsSchemeHandlerTransitions.h"
       
    27 
       
    28 // ______________________________________________________________________________
       
    29 //
       
    30 /**
       
    31 	@internalTechnology
       
    32 	@class
       
    33 	Comments : Provide all the CtorUnit Test's specific
       
    34 	validatation for the state of a transition before and after its execution.
       
    35 	on the CSmsSchemeHandler test class for a transition.
       
    36  */
       
    37 class TSmsSchemeHandler_Ctor_TransitionValidator : public TTransitionValidator
       
    38 	{
       
    39 public:
       
    40 	/**
       
    41 		@fn				TSmsSchemeHandler_Ctor_TransitionValidator(CUnitTestContext& aUTContext)
       
    42 		Intended Usage	:	
       
    43 		@leave		KErrNoMemory
       
    44 		@since			6.0
       
    45 		@param			aUTContext The context within which this transition is executing
       
    46 	 */
       
    47 	inline TSmsSchemeHandler_Ctor_TransitionValidator(CUnitTestContext& aUTContext);
       
    48 
       
    49 	/**
       
    50 		@fn				ValidatePreConditions()
       
    51 		Intended Usage	: Implemented by the developer to check the
       
    52 						end state of the transition behaviour.
       
    53 		Error Condition	: Invalid pre-conditions
       
    54 		@since			6.0
       
    55 		@return			TBool ETrue if the pre-conditions were valid, EFalse otherwise.
       
    56 		@pre 			TSmsSchemeHandler_Ctor_TransitionValidator is fully constructed.
       
    57 		@post			No change to the iUTContext class.
       
    58 	*/
       
    59 	virtual inline TBool ValidatePreConditions();
       
    60 
       
    61 	/**
       
    62 		@fn				ValidatePostConditions(TTestBedAsyncState aAsyncState)
       
    63 		Intended Usage	:	Implemented by the developer to check the
       
    64 						end state of the transition behaviour.
       
    65 						When overriding, if the transition calls an asynchronous function
       
    66 						ValidatePostConditions will be called twice. Firstly, after the
       
    67 						asynchronous function has been called and, secondly, after the 
       
    68 						asynchronous request has completed. The parameter aAsyncState can
       
    69 						be used to distinguish between these two cases.
       
    70 		Error Condition	: Invalid post-conditions.
       
    71 		@since			6.0
       
    72 		@param			aAsyncState EAsyncCalled if the async function has been just been called,
       
    73 						EAsyncCompleted if the function has completed.
       
    74 		@return			TBool ETrue if the post-conditions were valid, EFalse otherwise.
       
    75 		@pre 			TSmsSchemeHandler_Ctor_TransitionValidator is fully constructed.
       
    76 		@post			No change to the iUTContext class.
       
    77 	*/
       
    78 	virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState);
       
    79 	};	// TSmsSchemeHandler_Ctor_TransitionValidator
       
    80 
       
    81 // ______________________________________________________________________________
       
    82 //
       
    83 /**
       
    84 	@internalTechnology
       
    85 	@class
       
    86 	Comments : Provide all the DtorUnit Test's specific
       
    87 	validatation for the state of a transition before and after its execution.
       
    88 	on the CSmsSchemeHandler test class for a transition.
       
    89  */
       
    90 class TSmsSchemeHandler_Dtor_TransitionValidator : public TTransitionValidator
       
    91 	{
       
    92 public:
       
    93 	/**
       
    94 		@fn				TSmsSchemeHandler_Dtor_TransitionValidator(CUnitTestContext& aUTContext)
       
    95 		Intended Usage	:	
       
    96 		@leave		KErrNoMemory
       
    97 		@since			6.0
       
    98 		@param			aUTContext The context within which this transition is executing
       
    99 	 */
       
   100 	inline TSmsSchemeHandler_Dtor_TransitionValidator(CUnitTestContext& aUTContext);
       
   101 
       
   102 	/**
       
   103 		@fn				ValidatePreConditions()
       
   104 		Intended Usage	: Implemented by the developer to check the
       
   105 						end state of the transition behaviour.
       
   106 		Error Condition	: Invalid pre-conditions
       
   107 		@since			6.0
       
   108 		@return			TBool ETrue if the pre-conditions were valid, EFalse otherwise.
       
   109 		@pre 			TSmsSchemeHandler_Dtor_TransitionValidator is fully constructed.
       
   110 		@post			No change to the iUTContext class.
       
   111 	*/
       
   112 	virtual inline TBool ValidatePreConditions();
       
   113 
       
   114 	/**
       
   115 		@fn				ValidatePostConditions(TTestBedAsyncState aAsyncState)
       
   116 		Intended Usage	:	Implemented by the developer to check the
       
   117 						end state of the transition behaviour.
       
   118 						When overriding, if the transition calls an asynchronous function
       
   119 						ValidatePostConditions will be called twice. Firstly, after the
       
   120 						asynchronous function has been called and, secondly, after the 
       
   121 						asynchronous request has completed. The parameter aAsyncState can
       
   122 						be used to distinguish between these two cases.
       
   123 		Error Condition	: Invalid post-conditions.
       
   124 		@since			6.0
       
   125 		@param			aAsyncState EAsyncCalled if the async function has been just been called,
       
   126 						EAsyncCompleted if the function has completed.
       
   127 		@return			TBool ETrue if the post-conditions were valid, EFalse otherwise.
       
   128 		@pre 			TSmsSchemeHandler_Dtor_TransitionValidator is fully constructed.
       
   129 		@post			No change to the iUTContext class.
       
   130 	*/
       
   131 	virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState);
       
   132 	};	// TSmsSchemeHandler_Dtor_TransitionValidator
       
   133 
       
   134 
       
   135 
       
   136 // ______________________________________________________________________________
       
   137 //
       
   138 /**
       
   139 	@internalTechnology
       
   140 	@class
       
   141 	Comments : Provide all the ParseUrlLUnit Test's specific
       
   142 	validatation for the state of a transition before and after its execution.
       
   143 	on the CSmsSchemeHandler test class for a transition.
       
   144  */
       
   145 class TSmsSchemeHandler_ParseUrlL_TransitionValidator : public TTransitionValidator
       
   146 	{
       
   147 public:
       
   148 	/**
       
   149 		@fn				TSmsSchemeHandler_ParseUrlL_TransitionValidator(CUnitTestContext& aUTContext)
       
   150 		Intended Usage	:	
       
   151 		@leave		KErrNoMemory
       
   152 		@since			6.0
       
   153 		@param			aUTContext The context within which this transition is executing
       
   154 	 */
       
   155 	inline TSmsSchemeHandler_ParseUrlL_TransitionValidator(CUnitTestContext& aUTContext);
       
   156 
       
   157 	/**
       
   158 		@fn				ValidatePreConditions()
       
   159 		Intended Usage	: Implemented by the developer to check the
       
   160 						end state of the transition behaviour.
       
   161 		Error Condition	: Invalid pre-conditions
       
   162 		@since			6.0
       
   163 		@return			TBool ETrue if the pre-conditions were valid, EFalse otherwise.
       
   164 		@pre 			TSmsSchemeHandler_ParseUrlL_TransitionValidator is fully constructed.
       
   165 		@post			No change to the iUTContext class.
       
   166 	*/
       
   167 	virtual inline TBool ValidatePreConditions();
       
   168 
       
   169 	/**
       
   170 		@fn				ValidatePostConditions(TTestBedAsyncState aAsyncState)
       
   171 		Intended Usage	:	Implemented by the developer to check the
       
   172 						end state of the transition behaviour.
       
   173 						When overriding, if the transition calls an asynchronous function
       
   174 						ValidatePostConditions will be called twice. Firstly, after the
       
   175 						asynchronous function has been called and, secondly, after the 
       
   176 						asynchronous request has completed. The parameter aAsyncState can
       
   177 						be used to distinguish between these two cases.
       
   178 		Error Condition	: Invalid post-conditions.
       
   179 		@since			6.0
       
   180 		@param			aAsyncState EAsyncCalled if the async function has been just been called,
       
   181 						EAsyncCompleted if the function has completed.
       
   182 		@return			TBool ETrue if the post-conditions were valid, EFalse otherwise.
       
   183 		@pre 			TSmsSchemeHandler_ParseUrlL_TransitionValidator is fully constructed.
       
   184 		@post			No change to the iUTContext class.
       
   185 	*/
       
   186 	virtual inline TBool ValidatePostConditions(TTestBedAsyncState aAsyncState);
       
   187 	};	// TSmsSchemeHandler_ParseUrlL_TransitionValidator
       
   188 
       
   189 
       
   190 #include "SmsSchemeHandlerTransitionValidation.inl"
       
   191 
       
   192 #endif // __SMSSCHEMEHANDLERTRANSITIONVALIDATION_H__
       
   193