datacommsserver/esockserver/test/TE_Protocol/inc/TestSuiteProtocol.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 09 Jun 2010 11:00:38 +0300
branchRCL_3
changeset 37 35c06c1d4fa6
parent 0 dfb7c4ff071f
permissions -rw-r--r--
Revision: 201023 Kit: 2010123

/**
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
* Contains declaration of CTestServerSocket that is 
* container class for all the Socket test steps
* 
*
*/



/**
 @file TestSuiteProtocol.h
*/
#if (!defined __TESTSUITEPROTOCOL_H__)
#define __TESTSUITEPROTOCOL_H__

#include <test/testexecuteserverbase.h>
#include <es_sock.h>

//Some Macros for adding test steps

#define START_TEST_STEP_LIST

#define ADD_TEST_STEP(c) \
	if (aStepName == c::GetTestName()) \
		{ \
		c* ret = new(ELeave) c; \
		ret->SetTestStepName(c::GetTestName()); \
		return ret; \
		}\
else 

#define END_TEST_STEP_LIST \
		{ \
		return NULL; \
		}

//---------------------------------

class  CTestServerProtocol : public CTestServer
	{
	public:
		CTestServerProtocol();
		~CTestServerProtocol();
		static CTestServerProtocol* NewL();
		virtual CTestStep* CreateTestStep(const TDesC& aStepName);
		
		//	TPtrC GetVersion( void );
		
		RSocketServ iSocketServer;
		
	private:
	};

#endif /* __TESTSUITESOCKET_H__ */