applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/CTestCase11.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 __CTESTCASE11_H__
       
    17 #define __CTESTCASE11_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <http.h>
       
    21 
       
    22 #include "CBatchingTestCase.h"
       
    23 
       
    24 class CHTTPTestUtils;
       
    25 
       
    26 /*	Pipelining 20 simple requests to test server with batching enabled. This should allow
       
    27 	us to see that the first request is not batched and subsequent requests are.
       
    28 */
       
    29 class CTestCase11 : public CBatchingTestCase
       
    30 	{
       
    31 public:
       
    32 	static CTestCase11* NewL(CHTTPTestUtils& aTestUtils);
       
    33 	~CTestCase11();
       
    34 	
       
    35 private:
       
    36 	CTestCase11(CHTTPTestUtils& aTestUtils);
       
    37 	void ConstructL();
       
    38 
       
    39 	// From MPipeliningTestCase
       
    40 	const TDesC& TestCaseName() const;
       
    41 	TInt TotalTransactionCount() const;
       
    42 	TInt ConnectionCount() const;
       
    43 	RHTTPTransaction GetTransactionL(TInt aIndex, RHTTPSession aSession, MHTTPTransactionCallback& aClient);
       
    44 	const TDesC8& GetRawRequest(TInt aConnectionIndex, TInt aTransIndex);
       
    45 	const TDesC8& GetRawResponse(TInt aConnectionIndex, TInt aTransIndex);
       
    46 	
       
    47 private:
       
    48 	CHTTPTestUtils&			iTestUtils;
       
    49 	};
       
    50 	
       
    51 #endif // __CTESTCASE11_H__