applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/CPREQ1805.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2007-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 __CPREQ1805_H__
       
    17 #define __CPREQ1805_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <http.h>
       
    21 
       
    22 #include "CPipeliningTestCase.h"
       
    23 
       
    24 class CHTTPTestUtils;
       
    25 
       
    26 /*	Pipelining 5 simple request to pipelining test server.
       
    27 */
       
    28 class CPREQ1805 : public CPipeliningTestCase, public MHttpDataOptimiser
       
    29 	{
       
    30 public:
       
    31 	static CPREQ1805* NewL(CHTTPTestUtils& aTestUtils);
       
    32 	~CPREQ1805();
       
    33 	
       
    34 private:
       
    35 	CPREQ1805(CHTTPTestUtils& aTestUtils);
       
    36 	void ConstructL();
       
    37 
       
    38 	// From MPipeliningTestCase
       
    39 	const TDesC& TestCaseName() const;
       
    40 	TInt TotalTransactionCount() const;
       
    41 	RHTTPTransaction GetTransactionL(TInt aIndex, RHTTPSession aSession, MHTTPTransactionCallback& aClient);
       
    42 	const TDesC8& GetRawRequest(TInt aConnectionIndex, TInt aTransIndex);
       
    43 	const TDesC8& GetRawResponse(TInt aConnectionIndex, TInt aTransIndex);
       
    44 	TInt ConnectionCount() const;
       
    45 	
       
    46 	
       
    47 protected:
       
    48 	//These methods from MHttpDataOptimiser
       
    49 	virtual void EncodeL (const TDesC8& aHttpData, HBufC8*& aEncodedData);
       
    50 	virtual void DecodeL (const TDesC8& aData, HBufC8*& aHttpData, TBool& aTransFail);
       
    51 			
       
    52 private:
       
    53 	CHTTPTestUtils&			iTestUtils;
       
    54 	};
       
    55 	
       
    56 #endif // __CPREQ1805_H__