diff -r e8c1ea2c6496 -r 8758140453c0 http/inc/testhttpbasestep.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/http/inc/testhttpbasestep.h Thu Jan 21 12:53:44 2010 +0000 @@ -0,0 +1,67 @@ +// 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 CTestHttpBaseStep class +// @internalAll +// +// + +#ifndef __TEST_HTTP_BASE_STEP_H__ +#define __TEST_HTTP_BASE_STEP_H__ + +// System Include +#include + +// User Include +#include "testhttpserver.h" + +/** +This is the base test step from which all other test steps are derived +to test the EBO support provided by the http client framework. +@internalTechnology +@test +*/ +class CTestHttpBaseStep : public CTestStep, public MHTTPTransactionCallback + { +public: + static void InitCommsL(); + CTestHttpBaseStep(); + virtual ~CTestHttpBaseStep(); + // TEF virtuals + virtual TVerdict doTestStepPreambleL(); + // TEF pure virtual + virtual TVerdict doTestStepL(); + +protected: + virtual void StartClientL() = 0; + virtual void InvokeHttpMethodL(const TDesC8& aUri, RStringF aMethod) = 0; + + // methods from MHTTPTransactionCallback + virtual void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent) = 0; + virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent) = 0; + + virtual void SetHeaderL(RHTTPHeaders aHeaders, TInt aHdrField, const TDesC8& aHdrValue); + +protected: + RHTTPSession iSess; + RHTTPTransaction iTrans; + RFs iFileServ; + CActiveScheduler* iSched; + }; + +/*@{*/ +/// Literal constant defined for identifying step name +_LIT(KTestHttpBaseStep, "TestHttpBaseStep"); +/*@}*/ + +#endif // __TEST_HTTPEBO_BASE_STEP_H__