http/inc/testhttpserver.h
author Maciej Seroka <maciejs@symbian.org>
Fri, 15 Oct 2010 11:54:08 +0100
branchSymbian3
changeset 74 08fe4219b8dd
parent 6 c108117318cb
permissions -rw-r--r--
Fixed http smoke test (to use Winsock)

// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "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 CTestHttpServer class
// @internalAll
// 
//

#ifndef __TEST__HTTP_SERVER_H__
#define __TEST__HTTP_SERVER_H__

// System Include
// For accessing TEF classes 
#include <testexecuteserverbase.h>

/*@{*/
/// Literal constants for INI file field-names
_LIT(KIniSessProxy, 		   "SessProxy");
_LIT(KIniSessProxyUsage, 	   "SessProxyUsage");
_LIT(KIniTranProxy,        "TranProxy");
_LIT(KIniTranProxyUsage,   "TranProxyUsage");
_LIT(KIniUri, 		       "Uri");
_LIT(KIniRespBodyFileName, "RespBodyFileName");
_LIT(KIniFileName,  	   "OutputFileName");
_LIT(KIniSessHttpOptUsage, "SessHttpOptUsage");
_LIT(KIniTranHttpOptUsage, "TranHttpOptUsage");
_LIT(KIniIsEncoded,  "IsEncoded");
_LIT(KIniIsDecoded,  "IsDecoded");
_LIT(KIniFailTransaction,  "FailTransaction");
_LIT(KDisableTransOpt, "DisableTransOpt");
/*@}*/
_LIT(KTxt, "ERROR");

/**
This is the test server to test the white/black-list uri service API. 
@internalTechnology
*/
class CTestHttpServer : public CTestServer
	{
public:
	// Construction
	static	CTestHttpServer* 	NewL();
	// Base class pure virtual
	virtual CTestStep* 	CreateTestStep(const TDesC& aStepName);
	
protected:
	CTestStep* 	 CreateTestStepL(const TDesC& aStepName);
	const TPtrC  ServerName();
	};

#endif		// __TEST__HTTPEBO_SERVER_H__