datacommsserver/networkcontroller/te_mobileiptosimpleipfallback/inc/fallbackteststeps.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2004-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 // Interfaces for Mobile IP to Simple IP Fallback Mechanism Test classes.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file 
       
    20  @internalComponent
       
    21 */
       
    22 #ifndef __FALLBACKTESTSTEPS_H__
       
    23 #define __FALLBACKTESTSTEPS_H__
       
    24 
       
    25 #include <testexecutestepbase.h>
       
    26 #include "te_fallback.h"
       
    27 
       
    28 #include <es_sock.h> 
       
    29 
       
    30 namespace te_mobile_ip_to_simple_ip_fallback
       
    31 {
       
    32 /**
       
    33  Base class for Mobile IP to Simple IP Fallack Mechanism tests.
       
    34  Encapsulates functionality for setting up the tests, and defines utility methods.
       
    35  Does not contain functionality specific for test scenarios.
       
    36 	 
       
    37  @internalComponent
       
    38  @test
       
    39  */
       
    40 class CFallbackStepBase: public CTestStep 
       
    41 	{
       
    42 public:	
       
    43 	TVerdict doTestStepPreambleL();	
       
    44 	TVerdict doTestStepPostambleL();
       
    45 	TVerdict doTestStepL();
       
    46 protected:	
       
    47 	virtual TVerdict doTestSequenceL(const TBool aLog, const TInt aIteration) = 0; 
       
    48 	void LogAndPanicIfError(const TInt aErrorCode, const TDesC& aMessage);
       
    49 	
       
    50 	/** ESock, for access to RConnection */
       
    51 	RSocketServ iEsock;
       
    52 	
       
    53 	/** RConnection: used to establish a PPP connection */
       
    54 	RConnection iPppConn;
       
    55 	
       
    56 	/** Test sequence result */
       
    57 	TVerdict iTestSequenceVerdict;
       
    58 	};
       
    59 
       
    60 /**
       
    61  Defines the test for successful fallback scenario.
       
    62 	 
       
    63  @internalComponent
       
    64  @test
       
    65  */
       
    66 class CFallbackSucceedsStep: public CFallbackStepBase	
       
    67 	{
       
    68 public:
       
    69 	CFallbackSucceedsStep();
       
    70 	TVerdict doTestSequenceL(const TBool aLog, const TInt aIteration);
       
    71 	
       
    72 	//TVerdict doTestStepL();
       
    73 	};
       
    74 _LIT(KFallbackSucceedsStepName,"CFallbackSucceedsStep"); 
       
    75 
       
    76 
       
    77 
       
    78 /**
       
    79  Defines the test for unsuccessful fallback with graceful failure scenario.
       
    80  	 
       
    81  @internalComponent
       
    82  @test
       
    83  */
       
    84 class CFallbackFailsStep: public CFallbackStepBase 
       
    85 	{
       
    86 public:
       
    87 	CFallbackFailsStep();
       
    88 	TVerdict doTestSequenceL(const TBool aLog, const TInt aIteration);
       
    89 	
       
    90 	//TVerdict doTestStepL();
       
    91 	};	
       
    92 _LIT(KFallbackFailsStepName,"CFallbackFailsStep");
       
    93  
       
    94 }
       
    95 #endif // __FALLBACKTESTSTEPS_H__
       
    96