common/tools/ats/smoketest/http/inc/testhttpbasestep.h
changeset 836 675529c38614
child 872 17498133d9ad
equal deleted inserted replaced
835:cb30ff84bf3e 836:675529c38614
       
     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 CTestHttpBaseStep class
       
    15 // @internalAll
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef __TEST_HTTP_BASE_STEP_H__
       
    20 #define __TEST_HTTP_BASE_STEP_H__
       
    21 
       
    22 // System Include
       
    23 #include <http.h>
       
    24 
       
    25 // User Include
       
    26 #include "testhttpserver.h"
       
    27 
       
    28 /**
       
    29 This is the base test step from which all other test steps are derived
       
    30 to test the EBO support provided by the http client framework.
       
    31 @internalTechnology
       
    32 @test
       
    33 */
       
    34 class CTestHttpBaseStep : public CTestStep, public MHTTPTransactionCallback
       
    35 	{
       
    36 public:
       
    37     static void InitCommsL();
       
    38 	CTestHttpBaseStep();
       
    39 	virtual ~CTestHttpBaseStep();
       
    40 	// TEF virtuals
       
    41 	virtual TVerdict doTestStepPreambleL();
       
    42 	// TEF pure virtual
       
    43 	virtual TVerdict doTestStepL();
       
    44 
       
    45 protected:
       
    46 	virtual void StartClientL() = 0;
       
    47 	virtual void InvokeHttpMethodL(const TDesC8& aUri, RStringF aMethod) = 0;
       
    48 
       
    49 	// methods from MHTTPTransactionCallback
       
    50 	virtual void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent) = 0;
       
    51 	virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent) = 0;
       
    52 	
       
    53 	virtual void SetHeaderL(RHTTPHeaders aHeaders, TInt aHdrField, const TDesC8& aHdrValue);
       
    54 	
       
    55 protected:
       
    56     RHTTPSession iSess;
       
    57 	RHTTPTransaction iTrans;
       
    58     RFs iFileServ;
       
    59 	CActiveScheduler* iSched;
       
    60 	};
       
    61 
       
    62 /*@{*/
       
    63 /// Literal constant defined for identifying step name
       
    64 _LIT(KTestHttpBaseStep, "TestHttpBaseStep");
       
    65 /*@}*/
       
    66 
       
    67 #endif		// __TEST_HTTPEBO_BASE_STEP_H__