linklayercontrol/nullagt/TS_AgentAdapter/inc/CsdAgentTestSteps.h
branchRCL_3
changeset 21 abbed5a4b42a
parent 20 7e41d162e158
child 22 8d540f55e491
equal deleted inserted replaced
20:7e41d162e158 21:abbed5a4b42a
     1 // Copyright (c) 2002-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 // Contains the declarations of the test suite classes used to test 
       
    15 // the CSD Agent Connection/Connection Failure steps
       
    16 // 
       
    17 //
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalTechnology
       
    23 */
       
    24 #ifndef __CSDAGENTTESTSTEPS_H__
       
    25 #define __CSDAGENTTESTSTEPS_H__
       
    26 
       
    27 #include "CsdAgentTestSuite.h"
       
    28 #include <networking/teststep.h>
       
    29 #include "es_sock.h"
       
    30 
       
    31 
       
    32 class CsdAgentTestStep : public CTestStep
       
    33 	{
       
    34 		public:
       
    35             CsdAgentTestStep();
       
    36             virtual ~CsdAgentTestStep();
       
    37 		
       
    38 		private:
       
    39             enum TVerdict doTestStepPreambleL();
       
    40 		
       
    41 		protected:
       
    42 			TInt OpenConnection(RConnection& conn, RSocketServ& ss);
       
    43 			void CloseConnection(RConnection& conn);
       
    44 			TInt EnumerateConnections(RConnection& conn, TUint& num);
       
    45 			TInt WaitForAllInterfacesToCloseL(RSocketServ& ss);
       
    46 	};           
       
    47 
       
    48 
       
    49 _LIT(KSrcPath, "z:\\testdata\\configs\\agentdialog.ini");
       
    50 _LIT(KDestPath, "c:\\private\\101f7989\\esock\\agentdialog.ini");
       
    51 
       
    52 class CTestStepCsdAgentConnection: public CsdAgentTestStep
       
    53 	{
       
    54 	public:
       
    55         CTestStepCsdAgentConnection(TPtrC aName);
       
    56         void ConstructL() {};
       
    57         virtual ~CTestStepCsdAgentConnection() {};
       
    58 	
       
    59 	// called by framework to do the test
       
    60        virtual enum TVerdict doTestStepL(void);
       
    61 	
       
    62 	private:
       
    63 	};
       
    64 
       
    65 class CTestStepCsdAgtConnectionFailure: public CsdAgentTestStep
       
    66     {
       
    67     public:
       
    68         CTestStepCsdAgtConnectionFailure(TPtrC aName);
       
    69         void ConstructL() {};
       
    70         virtual ~CTestStepCsdAgtConnectionFailure() {};
       
    71     
       
    72     // called by framework to do the test
       
    73        virtual enum TVerdict doTestStepL(void);
       
    74     
       
    75     private:
       
    76     };
       
    77 
       
    78 #endif