applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/ctestcase24.h
changeset 0 b16258d2340f
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 __CTESTCASE24_H__
       
    17 #define __CTESTCASE24_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. The 3rd request has a
       
    27 	Connection: Close header. This expects the first 3 requests are pipelined and
       
    28 	the last 2 are pipelined on a another connection.
       
    29 */
       
    30 class CTestCase24 : public CPipeliningTestCase
       
    31 	{
       
    32 public:
       
    33 	static CTestCase24* NewL(CHTTPTestUtils& aTestUtils);
       
    34 	~CTestCase24();
       
    35 	
       
    36 private:
       
    37 	CTestCase24(CHTTPTestUtils& aTestUtils);
       
    38 	void ConstructL();
       
    39 	void AddConnectionCloseHeaderL(RHTTPTransaction aTransaction);
       
    40 
       
    41 	// From MPipeliningTestCase
       
    42 	const TDesC& TestCaseName() const;
       
    43 	TInt TransactionCount(TInt aConnectionIndex) const;
       
    44 	TInt TotalTransactionCount() const;
       
    45 	RHTTPTransaction GetTransactionL(TInt aIndex, RHTTPSession aSession, MHTTPTransactionCallback& aClient);
       
    46 	const TDesC8& GetRawRequest(TInt aConnectionIndex, TInt aTransIndex);
       
    47 	const TDesC8& GetRawResponse(TInt aConnectionIndex, TInt aTransIndex);
       
    48 	TInt ConnectionCount() const;
       
    49 	TBool SetTransportHandlerPriority() const;
       
    50 
       
    51 private:
       
    52 	CHTTPTestUtils&			iTestUtils;
       
    53 	};
       
    54 	
       
    55 #endif // __CTESTCASE24_H__