applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/CTestCase15.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 __CTESTCASE15_H__
       
    17 #define __CTESTCASE15_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <http.h>
       
    21 
       
    22 #include "CBatchingTestCase.h"
       
    23 
       
    24 class CHTTPTestUtils;
       
    25 
       
    26 /*	Pipelining 3 requests to test server with batching enabled. The first and second
       
    27 	requests as simple small requests and the thrid request a very large request
       
    28 	greater than the buffer size. The last request is large enough that it spans
       
    29 	over multiple buffers. The buffer size is reduced to 25 bytes to simplify the
       
    30 	request. The first request should be sent immediately and the last sent over
       
    31 	multiple batches as the last request to ensure that it is sent correctly.
       
    32 */
       
    33 class CTestCase15 : public CBatchingTestCase
       
    34 	{
       
    35 public:
       
    36 	static CTestCase15* NewL(CHTTPTestUtils& aTestUtils);
       
    37 	~CTestCase15();
       
    38 	
       
    39 private:
       
    40 	CTestCase15(CHTTPTestUtils& aTestUtils);
       
    41 	void ConstructL();
       
    42 
       
    43 	// From MPipeliningTestCase
       
    44 	const TDesC& TestCaseName() const;
       
    45 	TInt TotalTransactionCount() const;
       
    46 	TInt ConnectionCount() const;
       
    47 	RHTTPTransaction GetTransactionL(TInt aIndex, RHTTPSession aSession, MHTTPTransactionCallback& aClient);
       
    48 	const TDesC8& GetRawRequest(TInt aConnectionIndex, TInt aTransIndex);
       
    49 	const TDesC8& GetRawResponse(TInt aConnectionIndex, TInt aTransIndex);
       
    50 	
       
    51 private:
       
    52 	CHTTPTestUtils&			iTestUtils;
       
    53 	};
       
    54 	
       
    55 #endif // __CTESTCASE15_H__