applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/CTestCase12.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 __CTESTCASE12_H__
       
    17 #define __CTESTCASE12_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <http.h>
       
    21 
       
    22 #include "CBatchingTestCase.h"
       
    23 
       
    24 class CHTTPTestUtils;
       
    25 
       
    26 /*	Pipelining 2 simple requests to test server with batching enabled. The first request as
       
    27 	a simple small request and the second request a very large request greater than the
       
    28 	buffer size. The buffer size is reduced to 100bytes to simplify the request.The first
       
    29 	request should be sent immediately and the 2nd sent over 2 batches.
       
    30 */
       
    31 class CTestCase12 : public CBatchingTestCase
       
    32 	{
       
    33 public:
       
    34 	static CTestCase12* NewL(CHTTPTestUtils& aTestUtils);
       
    35 	~CTestCase12();
       
    36 	
       
    37 private:
       
    38 	CTestCase12(CHTTPTestUtils& aTestUtils);
       
    39 	void ConstructL();
       
    40 
       
    41 	// From MPipeliningTestCase
       
    42 	const TDesC& TestCaseName() const;
       
    43 	TInt TotalTransactionCount() const;
       
    44 	TInt ConnectionCount() 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 	
       
    49 private:
       
    50 	CHTTPTestUtils&			iTestUtils;
       
    51 	};
       
    52 	
       
    53 #endif // __CTESTCASE12_H__