applayerprotocols/httptransportfw/Test/T_HttpOnline/T_MultiTransMalformedStatusLine.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2001-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 #if !defined (__CTEXTMODETESTMULTITRANSMALFORMEDSTATUSLINE_H__)
       
    17 #define __CTEXTMODETESTMULTITRANSMALFORMEDSTATUSLINE_H__
       
    18 
       
    19 #include <http.h>
       
    20 #if !defined(__HTTPTESTCORE_H__)
       
    21 #include "HttpTestCore.h"
       
    22 #endif
       
    23 
       
    24 /**
       
    25  *  Derived test case class : test parallel transactions
       
    26  *	This test was designed for the defect fix EXT-5EBAHM
       
    27  */
       
    28 class CTextModeTestMultiTransMalformedStatusLine: public CHttpTestTransBase, public MHTTPTransactionCallback
       
    29 	{
       
    30 public:
       
    31 	static CTextModeTestMultiTransMalformedStatusLine* NewL(const TDesC& aHostName, TInt aNumTrans);
       
    32 	virtual ~CTextModeTestMultiTransMalformedStatusLine();
       
    33 	// to implement in this class' member functs definitions
       
    34 public:
       
    35 	virtual void MHFRunL(RHTTPTransaction aTransaction,
       
    36 						 const THTTPEvent& aEvent) ;
       
    37 	virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction,
       
    38 						 const THTTPEvent& aEvent) ;
       
    39 
       
    40 protected:
       
    41 	CTextModeTestMultiTransMalformedStatusLine(TInt aNumTrans);
       
    42 	const TDesC& TestName();
       
    43 	virtual void DoRunL();
       
    44 	virtual TInt RunError(TInt aErr);	
       
    45 	virtual void DoCancel();
       
    46 	void CreateTransArrayL();
       
    47 	void CreateSingleTransactionL(RStringF aGet);
       
    48 	void ConstructL(const TDesC& aHostName);
       
    49 protected:
       
    50 	TInt iMaxNumTransactions;
       
    51 	RArray<RHTTPTransaction> iTransArray;
       
    52 	TInt iOpenTransactionCount;
       
    53 	HBufC8* iHostName;
       
    54 	TInt iFailureError;
       
    55 	TInt iConnectFailureCount;
       
    56 	};
       
    57 
       
    58 #endif // !defined __CTEXTMODETESTMULTITRANSMALFORMEDSTATUSLINE_H__