http/inc/testhttpbuffersizestep.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2007-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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Contains declaration of CTestHttpBufferSizeStep class
       
    15 // @internalAll
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef __TEST_HTTP_BUFFER_SIZE_STEP_H__
       
    20 #define __TEST_HTTP_BUFFER_SIZE_STEP_H__
       
    21 
       
    22 // User Include
       
    23 #include "testhttpbasestep.h"
       
    24 
       
    25 /// Literal constant defined for identifying step name
       
    26 _LIT(KTestHttpBufferSizeStep, "TestHttpBufferSizeStep");
       
    27 
       
    28 /**
       
    29 This is the base test step from which all other test steps are derived
       
    30 to test the HTTP Library.
       
    31 @internalTechnology
       
    32 @test
       
    33 */
       
    34 class CTestHttpBufferSizeStep : public CTestHttpBaseStep
       
    35 	{
       
    36 public:
       
    37     CTestHttpBufferSizeStep();
       
    38 	virtual ~CTestHttpBufferSizeStep();
       
    39 	
       
    40 private:
       
    41     void StartClientL();
       
    42     void InvokeHttpMethodL(const TDesC8& aUri, RStringF aMethod);
       
    43 	void ValidateTest();
       
    44 	
       
    45 	// methods from MHTTPTransactionCallback
       
    46 	void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent) ;
       
    47 	TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent) ;
       
    48 	
       
    49 public:
       
    50 	MHTTPDataSupplier* iRespBody;
       
    51 	TInt iChunkSize;
       
    52 	};
       
    53 
       
    54 #endif		// __TEST_HTTP_BUFFER_SIZE_STEP_H__