messagingfw/msgurlhandler/test/basic/inc/SmsSchemeHandlerUnitTest.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 unit test class definitions for the CSmsSchemeHandler class.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @SYMCreationDate Created : 01/06/01 14:07:22
       
    21 */
       
    22 #ifndef __SMSSCHEMEHANDLERUNITTEST_H__
       
    23 #define __SMSSCHEMEHANDLERUNITTEST_H__
       
    24 
       
    25 #include <ecom/test_bed/testbeddefinitions.h>
       
    26 #include "SmsSchemeHandlerStateAccessor.h"
       
    27 #include "SmsSchemeHandlerTransitionValidation.h"
       
    28 #include "SmsSchemeHandlerTransitions.h"
       
    29 
       
    30 // ______________________________________________________________________________
       
    31 //
       
    32 /**
       
    33 	@internalTechnology
       
    34 	@class
       
    35 	Comments : Unit Test for CreateAndDestroy on CSmsSchemeHandler, the class under test.
       
    36  */
       
    37 class CSmsSchemeHandler_CreateAndDestroy_UnitTest : public CUnitTest
       
    38 	{
       
    39 public:
       
    40 	/**
       
    41 		@fn				NewL(CDataLogger& aDataLogger,
       
    42 							MUnitTestObserver& aObserver)
       
    43 		Intended Usage	: Standard two-phase construction which leaves nothing on the
       
    44 						cleanup stack.
       
    45 		Error Condition	: Leaves with the error code.
       
    46 		@leave		KErrNoMemory
       
    47 		@since			6.0
       
    48 		@param			aDataLogger The output logging object.
       
    49 		@param			aObserver The observer of this UnitTest.
       
    50 		@return			CSmsSchemeHandler_CreateAndDestroy_UnitTest* The constructed object.
       
    51 		@pre 			None.
       
    52 		@post			CSmsSchemeHandler_CreateAndDestroy_UnitTest is fully constructed, and initialised.
       
    53 	 */
       
    54 	static CSmsSchemeHandler_CreateAndDestroy_UnitTest* NewL(CDataLogger& aDataLogger,
       
    55 											MUnitTestObserver& aObserver);
       
    56 
       
    57 	/**
       
    58 		@fn				RunError(TInt aError)
       
    59 		Intended Usage	: Intercept the panic caused by a RunL leave,
       
    60 						to restore the CSmsSchemeHandler_CreateAndDestroy_UnitTest
       
    61 						object to a sensible state.
       
    62 						(called by the Active Scheduler immediately before the Panic).
       
    63 		Error Condition	: @see CUnitTest::RunError().
       
    64 		@since			6.0
       
    65 		@return			TInt KErrNone if cleanup successful, otherwise
       
    66 						@see CUnitTest::RunError()
       
    67 		@pre 			CSmsSchemeHandler_CreateAndDestroy_UnitTest is fully constructed, and initialised.
       
    68 		@post			The object has been restored to a sensible state.
       
    69 	 */
       
    70 	inline TInt RunError(TInt aError);
       
    71 
       
    72 	/**
       
    73 		@fn				~CSmsSchemeHandler_CreateAndDestroy_UnitTest()
       
    74 		Intended Usage	: Standard Destructor.
       
    75 		Error Condition	: None.	
       
    76 		@since			6.0
       
    77 		@pre 			CSmsSchemeHandler_CreateAndDestroy_UnitTest is fully constructed.
       
    78 		@post			CSmsSchemeHandler_CreateAndDestroy_UnitTest is fully destroyed.
       
    79 	*/
       
    80 	~CSmsSchemeHandler_CreateAndDestroy_UnitTest();
       
    81 
       
    82 private:
       
    83 	/**
       
    84 		@fn				CSmsSchemeHandler_CreateAndDestroy_UnitTest(CDataLogger& aDataLogger,
       
    85 														MUnitTestObserver& aObserver)
       
    86 		Intended Usage	: Default constructor.
       
    87 		Error Condition	: None. 
       
    88 		@since			6.0
       
    89 		@param			aDataLogger The output logging object.
       
    90 		@param			aObserver The observer of this UnitTest.
       
    91 		@param			aStateAccessor WhiteBox state access to the CSmsSchemeHandler class.
       
    92 		@pre 			None.
       
    93 		@post			CSmsSchemeHandler_CreateAndDestroy_UnitTest is fully constructed.
       
    94 	*/
       
    95 	inline CSmsSchemeHandler_CreateAndDestroy_UnitTest(CDataLogger& aDataLogger,
       
    96 											MUnitTestObserver& aObserver);
       
    97 
       
    98 	/**
       
    99 		@fn				void ConstructL()
       
   100 		Intended Usage	: Second phase of safe two phase construction, 
       
   101 		to complete the object initialisation.
       
   102 		Error Condition	: Leaves with an error code.
       
   103 		@leave		KErrNoMemory, and @see CUnitTest::BaseNewL().
       
   104 		@since			6.0
       
   105 		@return			None 
       
   106 		@pre 			CSmsSchemeHandler_CreateAndDestroy_UnitTest is fully constructed.
       
   107 		@post			CSmsSchemeHandler_CreateAndDestroy_UnitTest is fully initialised.
       
   108 	*/
       
   109 	void ConstructL();
       
   110 
       
   111 	/**
       
   112 	The context of the Unit Test.
       
   113 	i.e The CSmsSchemeHandler class tested by this UnitTest's transitions.
       
   114 	 */
       
   115 	CSmsSchemeHandler_UnitTestContext* iUTContext;
       
   116 	TSmsSchemeHandler_StateAccessor*	iStateAccessor;
       
   117 	// C'tor, d'tor, and method transition validators
       
   118 	TSmsSchemeHandler_Ctor_TransitionValidator*	iCtorValidator;
       
   119 	//TSmsSchemeHandler_CreateAndDestroy_TransitionValidator*	iCreateAndDestroyValidator;
       
   120 	TSmsSchemeHandler_Dtor_TransitionValidator*	iDtorValidator;
       
   121 	};	// CSmsSchemeHandler_CreateAndDestroy_UnitTest
       
   122 
       
   123 
       
   124 // ______________________________________________________________________________
       
   125 //
       
   126 /**
       
   127 	@internalTechnology
       
   128 	@class
       
   129 	Comments : Unit Test for ParseUrlTest1 on CSmsSchemeHandler, the class under test.
       
   130  */
       
   131 class CSmsSchemeHandler_ParseUrlTest1_UnitTest : public CUnitTest
       
   132 	{
       
   133 public:
       
   134 	/**
       
   135 		@fn				NewL(CDataLogger& aDataLogger,
       
   136 							MUnitTestObserver& aObserver)
       
   137 		Intended Usage	: Standard two-phase construction which leaves nothing on the
       
   138 						cleanup stack.
       
   139 		Error Condition	: Leaves with the error code.
       
   140 		@leave		KErrNoMemory
       
   141 		@since			6.0
       
   142 		@param			aDataLogger The output logging object.
       
   143 		@param			aObserver The observer of this UnitTest.
       
   144 		@return			CSmsSchemeHandler_ParseUrlTest1_UnitTest* The constructed object.
       
   145 		@pre 			None.
       
   146 		@post			CSmsSchemeHandler_ParseUrlTest1_UnitTest is fully constructed, and initialised.
       
   147 	 */
       
   148 	static CSmsSchemeHandler_ParseUrlTest1_UnitTest* NewL(CDataLogger& aDataLogger,
       
   149 											MUnitTestObserver& aObserver);
       
   150 
       
   151 	/**
       
   152 		@fn				RunError(TInt aError)
       
   153 		Intended Usage	: Intercept the panic caused by a RunL leave,
       
   154 						to restore the CSmsSchemeHandler_ParseUrlTest1_UnitTest
       
   155 						object to a sensible state.
       
   156 						(called by the Active Scheduler immediately before the Panic).
       
   157 		Error Condition	: @see CUnitTest::RunError().
       
   158 		@since			6.0
       
   159 		@return			TInt KErrNone if cleanup successful, otherwise
       
   160 						@see CUnitTest::RunError()
       
   161 		@pre 			CSmsSchemeHandler_ParseUrlTest1_UnitTest is fully constructed, and initialised.
       
   162 		@post			The object has been restored to a sensible state.
       
   163 	 */
       
   164 	inline TInt RunError(TInt aError);
       
   165 
       
   166 	/**
       
   167 		@fn				~CSmsSchemeHandler_ParseUrlTest1_UnitTest()
       
   168 		Intended Usage	: Standard Destructor.
       
   169 		Error Condition	: None.	
       
   170 		@since			6.0
       
   171 		@pre 			CSmsSchemeHandler_ParseUrlTest1_UnitTest is fully constructed.
       
   172 		@post			CSmsSchemeHandler_ParseUrlTest1_UnitTest is fully destroyed.
       
   173 	*/
       
   174 	~CSmsSchemeHandler_ParseUrlTest1_UnitTest();
       
   175 
       
   176 private:
       
   177 	/**
       
   178 		@fn				CSmsSchemeHandler_ParseUrlTest1_UnitTest(CDataLogger& aDataLogger,
       
   179 														MUnitTestObserver& aObserver)
       
   180 		Intended Usage	: Default constructor.
       
   181 		Error Condition	: None. 
       
   182 		@since			6.0
       
   183 		@param			aDataLogger The output logging object.
       
   184 		@param			aObserver The observer of this UnitTest.
       
   185 		@param			aStateAccessor WhiteBox state access to the CSmsSchemeHandler class.
       
   186 		@pre 			None.
       
   187 		@post			CSmsSchemeHandler_ParseUrlTest1_UnitTest is fully constructed.
       
   188 	*/
       
   189 	inline CSmsSchemeHandler_ParseUrlTest1_UnitTest(CDataLogger& aDataLogger,
       
   190 											MUnitTestObserver& aObserver);
       
   191 
       
   192 	/**
       
   193 		@fn				void ConstructL()
       
   194 		Intended Usage	: Second phase of safe two phase construction, 
       
   195 		to complete the object initialisation.
       
   196 		Error Condition	: Leaves with an error code.
       
   197 		@leave		KErrNoMemory, and @see CUnitTest::BaseNewL().
       
   198 		@since			6.0
       
   199 		@return			None 
       
   200 		@pre 			CSmsSchemeHandler_ParseUrlTest1_UnitTest is fully constructed.
       
   201 		@post			CSmsSchemeHandler_ParseUrlTest1_UnitTest is fully initialised.
       
   202 	*/
       
   203 	void ConstructL();
       
   204 
       
   205 	/**
       
   206 	The context of the Unit Test.
       
   207 	i.e The CSmsSchemeHandler class tested by this UnitTest's transitions.
       
   208 	 */
       
   209 	CSmsSchemeHandler_UnitTestContext* iUTContext;
       
   210 	TSmsSchemeHandler_StateAccessor*	iStateAccessor;
       
   211 	// C'tor, d'tor, and method transition validators
       
   212 	TSmsSchemeHandler_Ctor_TransitionValidator*	iCtorValidator;
       
   213 	TSmsSchemeHandler_ParseUrlL_TransitionValidator*	iParseUrlTest1Validator;
       
   214 	TSmsSchemeHandler_Dtor_TransitionValidator*	iDtorValidator;
       
   215 	};	// CSmsSchemeHandler_ParseUrlTest1_UnitTest
       
   216 
       
   217 
       
   218 // ______________________________________________________________________________
       
   219 //
       
   220 /**
       
   221 	@internalTechnology
       
   222 	@class
       
   223 	Comments : Unit Test for ParseUrlTest2 on CSmsSchemeHandler, the class under test.
       
   224  */
       
   225 class CSmsSchemeHandler_ParseUrlTest2_UnitTest : public CUnitTest
       
   226 	{
       
   227 public:
       
   228 	/**
       
   229 		@fn				NewL(CDataLogger& aDataLogger,
       
   230 							MUnitTestObserver& aObserver)
       
   231 		Intended Usage	: Standard two-phase construction which leaves nothing on the
       
   232 						cleanup stack.
       
   233 		Error Condition	: Leaves with the error code.
       
   234 		@leave		KErrNoMemory
       
   235 		@since			6.0
       
   236 		@param			aDataLogger The output logging object.
       
   237 		@param			aObserver The observer of this UnitTest.
       
   238 		@return			CSmsSchemeHandler_ParseUrlTest2_UnitTest* The constructed object.
       
   239 		@pre 			None.
       
   240 		@post			CSmsSchemeHandler_ParseUrlTest2_UnitTest is fully constructed, and initialised.
       
   241 	 */
       
   242 	static CSmsSchemeHandler_ParseUrlTest2_UnitTest* NewL(CDataLogger& aDataLogger,
       
   243 											MUnitTestObserver& aObserver);
       
   244 
       
   245 	/**
       
   246 		@fn				RunError(TInt aError)
       
   247 		Intended Usage	: Intercept the panic caused by a RunL leave,
       
   248 						to restore the CSmsSchemeHandler_ParseUrlTest2_UnitTest
       
   249 						object to a sensible state.
       
   250 						(called by the Active Scheduler immediately before the Panic).
       
   251 		Error Condition	: @see CUnitTest::RunError().
       
   252 		@since			6.0
       
   253 		@return			TInt KErrNone if cleanup successful, otherwise
       
   254 						@see CUnitTest::RunError()
       
   255 		@pre 			CSmsSchemeHandler_ParseUrlTest2_UnitTest is fully constructed, and initialised.
       
   256 		@post			The object has been restored to a sensible state.
       
   257 	 */
       
   258 	inline TInt RunError(TInt aError);
       
   259 
       
   260 	/**
       
   261 		@fn				~CSmsSchemeHandler_ParseUrlTest2_UnitTest()
       
   262 		Intended Usage	: Standard Destructor.
       
   263 		Error Condition	: None.	
       
   264 		@since			6.0
       
   265 		@pre 			CSmsSchemeHandler_ParseUrlTest2_UnitTest is fully constructed.
       
   266 		@post			CSmsSchemeHandler_ParseUrlTest2_UnitTest is fully destroyed.
       
   267 	*/
       
   268 	~CSmsSchemeHandler_ParseUrlTest2_UnitTest();
       
   269 
       
   270 private:
       
   271 	/**
       
   272 		@fn				CSmsSchemeHandler_ParseUrlTest2_UnitTest(CDataLogger& aDataLogger,
       
   273 														MUnitTestObserver& aObserver)
       
   274 		Intended Usage	: Default constructor.
       
   275 		Error Condition	: None. 
       
   276 		@since			6.0
       
   277 		@param			aDataLogger The output logging object.
       
   278 		@param			aObserver The observer of this UnitTest.
       
   279 		@param			aStateAccessor WhiteBox state access to the CSmsSchemeHandler class.
       
   280 		@pre 			None.
       
   281 		@post			CSmsSchemeHandler_ParseUrlTest2_UnitTest is fully constructed.
       
   282 	*/
       
   283 	inline CSmsSchemeHandler_ParseUrlTest2_UnitTest(CDataLogger& aDataLogger,
       
   284 											MUnitTestObserver& aObserver);
       
   285 
       
   286 	/**
       
   287 		@fn				void ConstructL()
       
   288 		Intended Usage	: Second phase of safe two phase construction, 
       
   289 		to complete the object initialisation.
       
   290 		Error Condition	: Leaves with an error code.
       
   291 		@leave		KErrNoMemory, and @see CUnitTest::BaseNewL().
       
   292 		@since			6.0
       
   293 		@return			None 
       
   294 		@pre 			CSmsSchemeHandler_ParseUrlTest2_UnitTest is fully constructed.
       
   295 		@post			CSmsSchemeHandler_ParseUrlTest2_UnitTest is fully initialised.
       
   296 	*/
       
   297 	void ConstructL();
       
   298 
       
   299 	/**
       
   300 	The context of the Unit Test.
       
   301 	i.e The CSmsSchemeHandler class tested by this UnitTest's transitions.
       
   302 	 */
       
   303 	CSmsSchemeHandler_UnitTestContext* iUTContext;
       
   304 	TSmsSchemeHandler_StateAccessor*	iStateAccessor;
       
   305 	// C'tor, d'tor, and method transition validators
       
   306 	TSmsSchemeHandler_Ctor_TransitionValidator*	iCtorValidator;
       
   307 	TSmsSchemeHandler_ParseUrlL_TransitionValidator*	iParseUrlTest2Validator;
       
   308 	TSmsSchemeHandler_Dtor_TransitionValidator*	iDtorValidator;
       
   309 
       
   310 	};	// CSmsSchemeHandler_ParseUrlTest2_UnitTest
       
   311 
       
   312 // ______________________________________________________________________________
       
   313 //
       
   314 /**
       
   315 	@internalTechnology
       
   316 	@class
       
   317 	Comments : Unit Test for ParseUrlTest3 on CSmsSchemeHandler, the class under test.
       
   318  */
       
   319 class CSmsSchemeHandler_ParseUrlTest3_UnitTest : public CUnitTest
       
   320 	{
       
   321 public:
       
   322 	/**
       
   323 		@fn				NewL(CDataLogger& aDataLogger,
       
   324 							MUnitTestObserver& aObserver)
       
   325 		Intended Usage	: Standard two-phase construction which leaves nothing on the
       
   326 						cleanup stack.
       
   327 		Error Condition	: Leaves with the error code.
       
   328 		@leave		KErrNoMemory
       
   329 		@since			6.0
       
   330 		@param			aDataLogger The output logging object.
       
   331 		@param			aObserver The observer of this UnitTest.
       
   332 		@return			CSmsSchemeHandler_ParseUrlTest3_UnitTest* The constructed object.
       
   333 		@pre 			None.
       
   334 		@post			CSmsSchemeHandler_ParseUrlTest3_UnitTest is fully constructed, and initialised.
       
   335 	 */
       
   336 	static CSmsSchemeHandler_ParseUrlTest3_UnitTest* NewL(CDataLogger& aDataLogger,
       
   337 											MUnitTestObserver& aObserver);
       
   338 
       
   339 	/**
       
   340 		@fn				RunError(TInt aError)
       
   341 		Intended Usage	: Intercept the panic caused by a RunL leave,
       
   342 						to restore the CSmsSchemeHandler_ParseUrlTest3_UnitTest
       
   343 						object to a sensible state.
       
   344 						(called by the Active Scheduler immediately before the Panic).
       
   345 		Error Condition	: @see CUnitTest::RunError().
       
   346 		@since			6.0
       
   347 		@return			TInt KErrNone if cleanup successful, otherwise
       
   348 						@see CUnitTest::RunError()
       
   349 		@pre 			CSmsSchemeHandler_ParseUrlTest3_UnitTest is fully constructed, and initialised.
       
   350 		@post			The object has been restored to a sensible state.
       
   351 	 */
       
   352 	inline TInt RunError(TInt aError);
       
   353 
       
   354 	/**
       
   355 		@fn				~CSmsSchemeHandler_ParseUrlTest3_UnitTest()
       
   356 		Intended Usage	: Standard Destructor.
       
   357 		Error Condition	: None.	
       
   358 		@since			6.0
       
   359 		@pre 			CSmsSchemeHandler_ParseUrlTest3_UnitTest is fully constructed.
       
   360 		@post			CSmsSchemeHandler_ParseUrlTest3_UnitTest is fully destroyed.
       
   361 	*/
       
   362 	~CSmsSchemeHandler_ParseUrlTest3_UnitTest();
       
   363 
       
   364 private:
       
   365 	/**
       
   366 		@fn				CSmsSchemeHandler_ParseUrlTest3_UnitTest(CDataLogger& aDataLogger,
       
   367 														MUnitTestObserver& aObserver)
       
   368 		Intended Usage	: Default constructor.
       
   369 		Error Condition	: None. 
       
   370 		@since			6.0
       
   371 		@param			aDataLogger The output logging object.
       
   372 		@param			aObserver The observer of this UnitTest.
       
   373 		@param			aStateAccessor WhiteBox state access to the CSmsSchemeHandler class.
       
   374 		@pre 			None.
       
   375 		@post			CSmsSchemeHandler_ParseUrlTest3_UnitTest is fully constructed.
       
   376 	*/
       
   377 	inline CSmsSchemeHandler_ParseUrlTest3_UnitTest(CDataLogger& aDataLogger,
       
   378 											MUnitTestObserver& aObserver);
       
   379 
       
   380 	/**
       
   381 		@fn				void ConstructL()
       
   382 		Intended Usage	: Second phase of safe two phase construction, 
       
   383 		to complete the object initialisation.
       
   384 		Error Condition	: Leaves with an error code.
       
   385 		@leave		KErrNoMemory, and @see CUnitTest::BaseNewL().
       
   386 		@since			6.0
       
   387 		@return			None 
       
   388 		@pre 			CSmsSchemeHandler_ParseUrlTest3_UnitTest is fully constructed.
       
   389 		@post			CSmsSchemeHandler_ParseUrlTest3_UnitTest is fully initialised.
       
   390 	*/
       
   391 	void ConstructL();
       
   392 
       
   393 	/**
       
   394 	The context of the Unit Test.
       
   395 	i.e The CSmsSchemeHandler class tested by this UnitTest's transitions.
       
   396 	 */
       
   397 	CSmsSchemeHandler_UnitTestContext* iUTContext;
       
   398 	TSmsSchemeHandler_StateAccessor*	iStateAccessor;
       
   399 	// C'tor, d'tor, and method transition validators
       
   400 	TSmsSchemeHandler_Ctor_TransitionValidator*	iCtorValidator;
       
   401 	TSmsSchemeHandler_ParseUrlL_TransitionValidator*	iParseUrlTest3Validator;
       
   402 	TSmsSchemeHandler_Dtor_TransitionValidator*	iDtorValidator;
       
   403 
       
   404 	};	// CSmsSchemeHandler_ParseUrlTest3_UnitTest
       
   405 
       
   406 // ______________________________________________________________________________
       
   407 //
       
   408 /**
       
   409 	@internalTechnology
       
   410 	@class
       
   411 	Comments : Unit Test for ParseUrlTest4 on CSmsSchemeHandler, the class under test.
       
   412  */
       
   413 class CSmsSchemeHandler_ParseUrlTest4_UnitTest : public CUnitTest
       
   414 	{
       
   415 public:
       
   416 	/**
       
   417 		@fn				NewL(CDataLogger& aDataLogger,
       
   418 							MUnitTestObserver& aObserver)
       
   419 		Intended Usage	: Standard two-phase construction which leaves nothing on the
       
   420 						cleanup stack.
       
   421 		Error Condition	: Leaves with the error code.
       
   422 		@leave		KErrNoMemory
       
   423 		@since			6.0
       
   424 		@param			aDataLogger The output logging object.
       
   425 		@param			aObserver The observer of this UnitTest.
       
   426 		@return			CSmsSchemeHandler_ParseUrlTest4_UnitTest* The constructed object.
       
   427 		@pre 			None.
       
   428 		@post			CSmsSchemeHandler_ParseUrlTest4_UnitTest is fully constructed, and initialised.
       
   429 	 */
       
   430 	static CSmsSchemeHandler_ParseUrlTest4_UnitTest* NewL(CDataLogger& aDataLogger,
       
   431 											MUnitTestObserver& aObserver);
       
   432 
       
   433 	/**
       
   434 		@fn				RunError(TInt aError)
       
   435 		Intended Usage	: Intercept the panic caused by a RunL leave,
       
   436 						to restore the CSmsSchemeHandler_ParseUrlTest4_UnitTest
       
   437 						object to a sensible state.
       
   438 						(called by the Active Scheduler immediately before the Panic).
       
   439 		Error Condition	: @see CUnitTest::RunError().
       
   440 		@since			6.0
       
   441 		@return			TInt KErrNone if cleanup successful, otherwise
       
   442 						@see CUnitTest::RunError()
       
   443 		@pre 			CSmsSchemeHandler_ParseUrlTest4_UnitTest is fully constructed, and initialised.
       
   444 		@post			The object has been restored to a sensible state.
       
   445 	 */
       
   446 	inline TInt RunError(TInt aError);
       
   447 
       
   448 	/**
       
   449 		@fn				~CSmsSchemeHandler_ParseUrlTest4_UnitTest()
       
   450 		Intended Usage	: Standard Destructor.
       
   451 		Error Condition	: None.	
       
   452 		@since			6.0
       
   453 		@pre 			CSmsSchemeHandler_ParseUrlTest4_UnitTest is fully constructed.
       
   454 		@post			CSmsSchemeHandler_ParseUrlTest4_UnitTest is fully destroyed.
       
   455 	*/
       
   456 	~CSmsSchemeHandler_ParseUrlTest4_UnitTest();
       
   457 
       
   458 private:
       
   459 	/**
       
   460 		@fn				CSmsSchemeHandler_ParseUrlTest4_UnitTest(CDataLogger& aDataLogger,
       
   461 														MUnitTestObserver& aObserver)
       
   462 		Intended Usage	: Default constructor.
       
   463 		Error Condition	: None. 
       
   464 		@since			6.0
       
   465 		@param			aDataLogger The output logging object.
       
   466 		@param			aObserver The observer of this UnitTest.
       
   467 		@param			aStateAccessor WhiteBox state access to the CSmsSchemeHandler class.
       
   468 		@pre 			None.
       
   469 		@post			CSmsSchemeHandler_ParseUrlTest4_UnitTest is fully constructed.
       
   470 	*/
       
   471 	inline CSmsSchemeHandler_ParseUrlTest4_UnitTest(CDataLogger& aDataLogger,
       
   472 											MUnitTestObserver& aObserver);
       
   473 
       
   474 	/**
       
   475 		@fn				void ConstructL()
       
   476 		Intended Usage	: Second phase of safe two phase construction, 
       
   477 		to complete the object initialisation.
       
   478 		Error Condition	: Leaves with an error code.
       
   479 		@leave		KErrNoMemory, and @see CUnitTest::BaseNewL().
       
   480 		@since			6.0
       
   481 		@return			None 
       
   482 		@pre 			CSmsSchemeHandler_ParseUrlTest4_UnitTest is fully constructed.
       
   483 		@post			CSmsSchemeHandler_ParseUrlTest4_UnitTest is fully initialised.
       
   484 	*/
       
   485 	void ConstructL();
       
   486 
       
   487 	/**
       
   488 	The context of the Unit Test.
       
   489 	i.e The CSmsSchemeHandler class tested by this UnitTest's transitions.
       
   490 	 */
       
   491 	CSmsSchemeHandler_UnitTestContext* iUTContext;
       
   492 	TSmsSchemeHandler_StateAccessor*	iStateAccessor;
       
   493 	// C'tor, d'tor, and method transition validators
       
   494 	TSmsSchemeHandler_Ctor_TransitionValidator*	iCtorValidator;
       
   495 	TSmsSchemeHandler_ParseUrlL_TransitionValidator*	iParseUrlTest4Validator;
       
   496 	TSmsSchemeHandler_Dtor_TransitionValidator*	iDtorValidator;
       
   497 
       
   498 	};	// CSmsSchemeHandler_ParseUrlTest4_UnitTest
       
   499 
       
   500 // ______________________________________________________________________________
       
   501 //
       
   502 /**
       
   503 	@internalTechnology
       
   504 	@class
       
   505 	Comments : Unit Test for ParseUrlTest5 on CSmsSchemeHandler, the class under test.
       
   506  */
       
   507 class CSmsSchemeHandler_ParseUrlTest5_UnitTest : public CUnitTest
       
   508 	{
       
   509 public:
       
   510 	/**
       
   511 		@fn				NewL(CDataLogger& aDataLogger,
       
   512 							MUnitTestObserver& aObserver)
       
   513 		Intended Usage	: Standard two-phase construction which leaves nothing on the
       
   514 						cleanup stack.
       
   515 		Error Condition	: Leaves with the error code.
       
   516 		@leave		KErrNoMemory
       
   517 		@since			6.0
       
   518 		@param			aDataLogger The output logging object.
       
   519 		@param			aObserver The observer of this UnitTest.
       
   520 		@return			CSmsSchemeHandler_ParseUrlTest5_UnitTest* The constructed object.
       
   521 		@pre 			None.
       
   522 		@post			CSmsSchemeHandler_ParseUrlTest5_UnitTest is fully constructed, and initialised.
       
   523 	 */
       
   524 	static CSmsSchemeHandler_ParseUrlTest5_UnitTest* NewL(CDataLogger& aDataLogger,
       
   525 											MUnitTestObserver& aObserver);
       
   526 
       
   527 	/**
       
   528 		@fn				RunError(TInt aError)
       
   529 		Intended Usage	: Intercept the panic caused by a RunL leave,
       
   530 						to restore the CSmsSchemeHandler_ParseUrlTest5_UnitTest
       
   531 						object to a sensible state.
       
   532 						(called by the Active Scheduler immediately before the Panic).
       
   533 		Error Condition	: @see CUnitTest::RunError().
       
   534 		@since			6.0
       
   535 		@return			TInt KErrNone if cleanup successful, otherwise
       
   536 						@see CUnitTest::RunError()
       
   537 		@pre 			CSmsSchemeHandler_ParseUrlTest5_UnitTest is fully constructed, and initialised.
       
   538 		@post			The object has been restored to a sensible state.
       
   539 	 */
       
   540 	inline TInt RunError(TInt aError);
       
   541 
       
   542 	/**
       
   543 		@fn				~CSmsSchemeHandler_ParseUrlTest5_UnitTest()
       
   544 		Intended Usage	: Standard Destructor.
       
   545 		Error Condition	: None.	
       
   546 		@since			6.0
       
   547 		@pre 			CSmsSchemeHandler_ParseUrlTest5_UnitTest is fully constructed.
       
   548 		@post			CSmsSchemeHandler_ParseUrlTest5_UnitTest is fully destroyed.
       
   549 	*/
       
   550 	~CSmsSchemeHandler_ParseUrlTest5_UnitTest();
       
   551 
       
   552 private:
       
   553 	/**
       
   554 		@fn				CSmsSchemeHandler_ParseUrlTest5_UnitTest(CDataLogger& aDataLogger,
       
   555 														MUnitTestObserver& aObserver)
       
   556 		Intended Usage	: Default constructor.
       
   557 		Error Condition	: None. 
       
   558 		@since			6.0
       
   559 		@param			aDataLogger The output logging object.
       
   560 		@param			aObserver The observer of this UnitTest.
       
   561 		@param			aStateAccessor WhiteBox state access to the CSmsSchemeHandler class.
       
   562 		@pre 			None.
       
   563 		@post			CSmsSchemeHandler_ParseUrlTest5_UnitTest is fully constructed.
       
   564 	*/
       
   565 	inline CSmsSchemeHandler_ParseUrlTest5_UnitTest(CDataLogger& aDataLogger,
       
   566 											MUnitTestObserver& aObserver);
       
   567 
       
   568 	/**
       
   569 		@fn				void ConstructL()
       
   570 		Intended Usage	: Second phase of safe two phase construction, 
       
   571 		to complete the object initialisation.
       
   572 		Error Condition	: Leaves with an error code.
       
   573 		@leave		KErrNoMemory, and @see CUnitTest::BaseNewL().
       
   574 		@since			6.0
       
   575 		@return			None 
       
   576 		@pre 			CSmsSchemeHandler_ParseUrlTest5_UnitTest is fully constructed.
       
   577 		@post			CSmsSchemeHandler_ParseUrlTest5_UnitTest is fully initialised.
       
   578 	*/
       
   579 	void ConstructL();
       
   580 
       
   581 	/**
       
   582 	The context of the Unit Test.
       
   583 	i.e The CSmsSchemeHandler class tested by this UnitTest's transitions.
       
   584 	 */
       
   585 	CSmsSchemeHandler_UnitTestContext* iUTContext;
       
   586 	TSmsSchemeHandler_StateAccessor*	iStateAccessor;
       
   587 	// C'tor, d'tor, and method transition validators
       
   588 	TSmsSchemeHandler_Ctor_TransitionValidator*	iCtorValidator;
       
   589 	TSmsSchemeHandler_ParseUrlL_TransitionValidator*	iParseUrlTest5Validator;
       
   590 	TSmsSchemeHandler_Dtor_TransitionValidator*	iDtorValidator;
       
   591 	
       
   592 	};	// CSmsSchemeHandler_ParseUrlTest5_UnitTest
       
   593 
       
   594 // ______________________________________________________________________________
       
   595 //
       
   596 /**
       
   597 	@internalTechnology
       
   598 	@class
       
   599 	Comments : Unit Test for ParseUrlTest6 on CSmsSchemeHandler, the class under test.
       
   600  */
       
   601 class CSmsSchemeHandler_ParseUrlTest6_UnitTest : public CUnitTest
       
   602 	{
       
   603 public:
       
   604 	/**
       
   605 		@fn				NewL(CDataLogger& aDataLogger,
       
   606 							MUnitTestObserver& aObserver)
       
   607 		Intended Usage	: Standard two-phase construction which leaves nothing on the
       
   608 						cleanup stack.
       
   609 		Error Condition	: Leaves with the error code.
       
   610 		@leave		KErrNoMemory
       
   611 		@since			6.0
       
   612 		@param			aDataLogger The output logging object.
       
   613 		@param			aObserver The observer of this UnitTest.
       
   614 		@return			CSmsSchemeHandler_ParseUrlTest6_UnitTest* The constructed object.
       
   615 		@pre 			None.
       
   616 		@post			CSmsSchemeHandler_ParseUrlTest6_UnitTest is fully constructed, and initialised.
       
   617 	 */
       
   618 	static CSmsSchemeHandler_ParseUrlTest6_UnitTest* NewL(CDataLogger& aDataLogger,
       
   619 											MUnitTestObserver& aObserver);
       
   620 
       
   621 	/**
       
   622 		@fn				RunError(TInt aError)
       
   623 		Intended Usage	: Intercept the panic caused by a RunL leave,
       
   624 						to restore the CSmsSchemeHandler_ParseUrlTest6_UnitTest
       
   625 						object to a sensible state.
       
   626 						(called by the Active Scheduler immediately before the Panic).
       
   627 		Error Condition	: @see CUnitTest::RunError().
       
   628 		@since			6.0
       
   629 		@return			TInt KErrNone if cleanup successful, otherwise
       
   630 						@see CUnitTest::RunError()
       
   631 		@pre 			CSmsSchemeHandler_ParseUrlTest6_UnitTest is fully constructed, and initialised.
       
   632 		@post			The object has been restored to a sensible state.
       
   633 	 */
       
   634 	inline TInt RunError(TInt aError);
       
   635 
       
   636 	/**
       
   637 		@fn				~CSmsSchemeHandler_ParseUrlTest6_UnitTest()
       
   638 		Intended Usage	: Standard Destructor.
       
   639 		Error Condition	: None.	
       
   640 		@since			6.0
       
   641 		@pre 			CSmsSchemeHandler_ParseUrlTest6_UnitTest is fully constructed.
       
   642 		@post			CSmsSchemeHandler_ParseUrlTest6_UnitTest is fully destroyed.
       
   643 	*/
       
   644 	~CSmsSchemeHandler_ParseUrlTest6_UnitTest();
       
   645 
       
   646 private:
       
   647 	/**
       
   648 		@fn				CSmsSchemeHandler_ParseUrlTest6_UnitTest(CDataLogger& aDataLogger,
       
   649 														MUnitTestObserver& aObserver)
       
   650 		Intended Usage	: Default constructor.
       
   651 		Error Condition	: None. 
       
   652 		@since			6.0
       
   653 		@param			aDataLogger The output logging object.
       
   654 		@param			aObserver The observer of this UnitTest.
       
   655 		@param			aStateAccessor WhiteBox state access to the CSmsSchemeHandler class.
       
   656 		@pre 			None.
       
   657 		@post			CSmsSchemeHandler_ParseUrlTest6_UnitTest is fully constructed.
       
   658 	*/
       
   659 	inline CSmsSchemeHandler_ParseUrlTest6_UnitTest(CDataLogger& aDataLogger,
       
   660 											MUnitTestObserver& aObserver);
       
   661 
       
   662 	/**
       
   663 		@fn				void ConstructL()
       
   664 		Intended Usage	: Second phase of safe two phase construction, 
       
   665 		to complete the object initialisation.
       
   666 		Error Condition	: Leaves with an error code.
       
   667 		@leave		KErrNoMemory, and @see CUnitTest::BaseNewL().
       
   668 		@since			6.0
       
   669 		@return			None 
       
   670 		@pre 			CSmsSchemeHandler_ParseUrlTest6_UnitTest is fully constructed.
       
   671 		@post			CSmsSchemeHandler_ParseUrlTest6_UnitTest is fully initialised.
       
   672 	*/
       
   673 	void ConstructL();
       
   674 
       
   675 	/**
       
   676 	The context of the Unit Test.
       
   677 	i.e The CSmsSchemeHandler class tested by this UnitTest's transitions.
       
   678 	 */
       
   679 	CSmsSchemeHandler_UnitTestContext* iUTContext;
       
   680 	TSmsSchemeHandler_StateAccessor*	iStateAccessor;
       
   681 	// C'tor, d'tor, and method transition validators
       
   682 	TSmsSchemeHandler_Ctor_TransitionValidator*	iCtorValidator;
       
   683 	TSmsSchemeHandler_ParseUrlL_TransitionValidator*	iParseUrlTest6Validator;
       
   684 	TSmsSchemeHandler_Dtor_TransitionValidator*	iDtorValidator;
       
   685 
       
   686 	};	// CSmsSchemeHandler_ParseUrlTest6_UnitTest
       
   687 
       
   688 
       
   689 #endif	// __SMSSCHEMEHANDLERUNITTEST_H__