applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/CTestCase18.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 __CTESTCASE18_H__
       
    17 #define __CTESTCASE18_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <http.h>
       
    21 
       
    22 #include "CBatchingTestCase.h"
       
    23 
       
    24 class CHTTPTestUtils;
       
    25 
       
    26 /*	Pipelining 5 simple requests to test server with batching enabled. The 3rd request
       
    27 	has a Connection: Close header. This expects the first 3 requests are batched and
       
    28 	the last 2 are batched on a another connection. This test case will ensure that
       
    29 	the buffersize batching is correcly handled when multiple connections are used
       
    30 	requested by the client. The buffer size is reduced to 10 bytes to simplify the
       
    31 	request.
       
    32 */
       
    33 class CTestCase18 : public CBatchingTestCase
       
    34 	{
       
    35 public:
       
    36 	static CTestCase18* NewL(CHTTPTestUtils& aTestUtils);
       
    37 	~CTestCase18();
       
    38 	
       
    39 private:
       
    40 	CTestCase18(CHTTPTestUtils& aTestUtils);
       
    41 	void ConstructL();
       
    42 	void AddConnectionCloseHeaderL(RHTTPTransaction aTransaction);
       
    43 
       
    44 	// From MPipeliningTestCase
       
    45 	const TDesC& TestCaseName() const;
       
    46 	TInt TransactionCount(TInt aConnectionIndex) const;
       
    47 	TInt TotalTransactionCount() const;
       
    48 	RHTTPTransaction GetTransactionL(TInt aIndex, RHTTPSession aSession, MHTTPTransactionCallback& aClient);
       
    49 	const TDesC8& GetRawRequest(TInt aConnectionIndex, TInt aTransIndex);
       
    50 	const TDesC8& GetRawResponse(TInt aConnectionIndex, TInt aTransIndex);
       
    51 	TInt ConnectionCount() const;
       
    52 
       
    53 private:
       
    54 	CHTTPTestUtils&			iTestUtils;
       
    55 	};
       
    56 	
       
    57 #endif // __CTESTCASE18_H__