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