applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/CTestCase8.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 __CTESTCASE8_H__
       
    17 #define __CTESTCASE8_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <http.h>
       
    21 
       
    22 #include "CPipeliningTestCase.h"
       
    23 
       
    24 class CHTTPTestUtils;
       
    25 
       
    26 /*	Pipelining 3 simple requests to a HTTP/1.0 test server. 1.0 servers do not support pipelining
       
    27 	so it expected that a connection is opened for each request
       
    28 */
       
    29 class CTestCase8 : public CPipeliningTestCase
       
    30 	{
       
    31 public:
       
    32 	static CTestCase8* NewL(CHTTPTestUtils& aTestUtils);
       
    33 	~CTestCase8();
       
    34 	
       
    35 private:
       
    36 	CTestCase8(CHTTPTestUtils& aTestUtils);
       
    37 	void ConstructL();
       
    38 
       
    39 	// From MPipeliningTestCase
       
    40 	const TDesC& TestCaseName() const;
       
    41 	TInt TransactionCount(TInt aConnectionIndex) const;
       
    42 	TInt TotalTransactionCount() 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 	TInt ConnectionCount() const;
       
    47 	
       
    48 private:
       
    49 	CHTTPTestUtils&			iTestUtils;
       
    50 	};
       
    51 	
       
    52 #endif // __CTESTCASE8_H__