applayerprotocols/httptransportfw/Test/TestScriptTest/ctestcaselocalandremotehost.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:44:10 +0300
branchRCL_3
changeset 19 c0c2f28ace9c
parent 0 b16258d2340f
child 20 a0da872af3fa
permissions -rw-r--r--
Revision: 201029 Kit: 201035

// Copyright (c) 2003-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:
//

#ifndef __CTESTCASELOCALANDREMOTEHOST_H__
#define __CTESTCASELOCALANDREMOTEHOST_H__

#include <e32base.h>
#include <http.h>
#include "CPipeliningTestClient.h"


class CHTTPTestUtils;
class MPipeliningTestObserver;

/*	First send a request to local host
		Once the response is received open a RSocketServ & RConnection and set to the HTTP stack.
		Send a request to a remote host
		once the response is received send another request to local host		
*/
class CTestCaseLocalAndRemoteHost : public CPipeliningTestClient
	{
public:
	static CTestCaseLocalAndRemoteHost* NewL(CHTTPTestUtils& aTestUtils, MPipeliningTestObserver& aObserver);
	~CTestCaseLocalAndRemoteHost ();
	
private:
    void ConstructL();
	CTestCaseLocalAndRemoteHost(CHTTPTestUtils& aTestUtils, MPipeliningTestObserver& aObserver);

    // From MHTTPTransactionCallback
    void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
    RHTTPTransaction GetLocalTransactionL();
    RHTTPTransaction GetRemoteTransactionL();
private:
	TBool                   iSentRemoteHostTrans;
	};

#endif /*__CTESTCASE22_H__*/