--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/applayerprotocols/httptransportfw/Test/T_HttpOnline/T_MultiTransConcurrent.h Tue Feb 02 01:09:52 2010 +0200
@@ -0,0 +1,59 @@
+// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+#if !defined (__CTEXTMODETESTMULTITRANSCONCURRENT_H__)
+#define __CTEXTMODETESTMULTITRANSCONCURRENT_H__
+
+#include <http.h>
+#if !defined(__HTTPTESTCORE_H__)
+#include "HttpTestCore.h"
+#endif
+
+/**
+ * Derived test case class : test parallel transactions
+ This test was designed for the defect fix CUO-5EPEKN
+ */
+class CTextModeTestMultiTransConcurrent: public CHttpTestTransBase, public MHTTPTransactionCallback
+ {
+public:
+ static CTextModeTestMultiTransConcurrent* NewL(const TDesC& aHostName, TInt aNumTrans);
+ virtual ~CTextModeTestMultiTransConcurrent();
+ // to implement in this class' member functs definitions
+public:
+ virtual void MHFRunL(RHTTPTransaction aTransaction,
+ const THTTPEvent& aEvent) ;
+ virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction,
+ const THTTPEvent& aEvent) ;
+
+protected:
+ CTextModeTestMultiTransConcurrent(TInt aNumTrans);
+ const TDesC& TestName();
+ virtual void DoRunL();
+ virtual TInt RunError(TInt aErr);
+ virtual void DoCancel();
+ void CreateTransArrayL();
+ void ValidateBodyL(RHTTPTransaction aTransaction);
+ void ConstructL(const TDesC& aHostName);
+ TBool TestConcurrentTrans();
+protected:
+ TInt iMaxNumTransactions;
+ RArray<RHTTPTransaction> iTransArray;
+ TInt iGotHeadersCount[8];
+ TInt iOpenTransactionCount;
+ HBufC8* iHostName;
+ TInt iFailureError;
+ };
+
+#endif // !defined __CTEXTMODETESTMULTITRANSCONCURRENT_H__