applayerprotocols/httptransportfw/Test/TestScriptTest/ctestcaselocalandremotehost.h
changeset 0 b16258d2340f
child 19 c0c2f28ace9c
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2003-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 //
       
    15 
       
    16 #ifndef __CTESTCASELOCALANDREMOTEHOST_H__
       
    17 #define __CTESTCASELOCALANDREMOTEHOST_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <http.h>
       
    21 #include "cpipeliningtestclient.h"
       
    22 
       
    23 
       
    24 class CHTTPTestUtils;
       
    25 class MPipeliningTestObserver;
       
    26 
       
    27 /*	First send a request to local host
       
    28 		Once the response is received open a RSocketServ & RConnection and set to the HTTP stack.
       
    29 		Send a request to a remote host
       
    30 		once the response is received send another request to local host		
       
    31 */
       
    32 class CTestCaseLocalAndRemoteHost : public CPipeliningTestClient
       
    33 	{
       
    34 public:
       
    35 	static CTestCaseLocalAndRemoteHost* NewL(CHTTPTestUtils& aTestUtils, MPipeliningTestObserver& aObserver);
       
    36 	~CTestCaseLocalAndRemoteHost ();
       
    37 	
       
    38 private:
       
    39     void ConstructL();
       
    40 	CTestCaseLocalAndRemoteHost(CHTTPTestUtils& aTestUtils, MPipeliningTestObserver& aObserver);
       
    41 
       
    42     // From MHTTPTransactionCallback
       
    43     void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
       
    44     RHTTPTransaction GetLocalTransactionL();
       
    45     RHTTPTransaction GetRemoteTransactionL();
       
    46 private:
       
    47 	TBool                   iSentRemoteHostTrans;
       
    48 	};
       
    49 
       
    50 #endif /*__CTESTCASE22_H__*/
       
    51 
       
    52