datacommsserver/esockserver/test/TE_Protocol/inc/TestSuiteProtocol.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 /**
       
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Contains declaration of CTestServerSocket that is 
       
    16 * container class for all the Socket test steps
       
    17 * 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 /**
       
    24  @file TestSuiteProtocol.h
       
    25 */
       
    26 #if (!defined __TESTSUITEPROTOCOL_H__)
       
    27 #define __TESTSUITEPROTOCOL_H__
       
    28 
       
    29 #include <test/testexecuteserverbase.h>
       
    30 #include <es_sock.h>
       
    31 
       
    32 //Some Macros for adding test steps
       
    33 
       
    34 #define START_TEST_STEP_LIST
       
    35 
       
    36 #define ADD_TEST_STEP(c) \
       
    37 	if (aStepName == c::GetTestName()) \
       
    38 		{ \
       
    39 		c* ret = new(ELeave) c; \
       
    40 		ret->SetTestStepName(c::GetTestName()); \
       
    41 		return ret; \
       
    42 		}\
       
    43 else 
       
    44 
       
    45 #define END_TEST_STEP_LIST \
       
    46 		{ \
       
    47 		return NULL; \
       
    48 		}
       
    49 
       
    50 //---------------------------------
       
    51 
       
    52 class  CTestServerProtocol : public CTestServer
       
    53 	{
       
    54 	public:
       
    55 		CTestServerProtocol();
       
    56 		~CTestServerProtocol();
       
    57 		static CTestServerProtocol* NewL();
       
    58 		virtual CTestStep* CreateTestStep(const TDesC& aStepName);
       
    59 		
       
    60 		//	TPtrC GetVersion( void );
       
    61 		
       
    62 		RSocketServ iSocketServer;
       
    63 		
       
    64 	private:
       
    65 	};
       
    66 
       
    67 #endif /* __TESTSUITESOCKET_H__ */
       
    68