http/inc/testhttpbuffersizestep.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/http/inc/testhttpbuffersizestep.h	Thu Jan 21 12:53:44 2010 +0000
@@ -0,0 +1,54 @@
+// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of the License "Symbian Foundation License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// Contains declaration of CTestHttpBufferSizeStep class
+// @internalAll
+// 
+//
+
+#ifndef __TEST_HTTP_BUFFER_SIZE_STEP_H__
+#define __TEST_HTTP_BUFFER_SIZE_STEP_H__
+
+// User Include
+#include "testhttpbasestep.h"
+
+/// Literal constant defined for identifying step name
+_LIT(KTestHttpBufferSizeStep, "TestHttpBufferSizeStep");
+
+/**
+This is the base test step from which all other test steps are derived
+to test the HTTP Library.
+@internalTechnology
+@test
+*/
+class CTestHttpBufferSizeStep : public CTestHttpBaseStep
+	{
+public:
+    CTestHttpBufferSizeStep();
+	virtual ~CTestHttpBufferSizeStep();
+	
+private:
+    void StartClientL();
+    void InvokeHttpMethodL(const TDesC8& aUri, RStringF aMethod);
+	void ValidateTest();
+	
+	// methods from MHTTPTransactionCallback
+	void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent) ;
+	TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent) ;
+	
+public:
+	MHTTPDataSupplier* iRespBody;
+	TInt iChunkSize;
+	};
+
+#endif		// __TEST_HTTP_BUFFER_SIZE_STEP_H__