applayerprotocols/httptransportfw/Test/T_HttpOffline/t_textmodeheadersfilter.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2001-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #if !defined(__HTTPTESTCORE_H__)
       
    17 #include "HttpTestCore.h"
       
    18 #endif
       
    19 
       
    20 #if !defined HTTP_H
       
    21 #include <http.h>
       
    22 #endif
       
    23 
       
    24 class MHTTPFilter;
       
    25 
       
    26 class CTextModeHeadersFilterTest : public CHttpTestBase, public MHTTPTransactionCallback
       
    27 	{
       
    28 public:
       
    29 	static CTextModeHeadersFilterTest* NewLC();
       
    30 	virtual void DoRunL();
       
    31 	virtual const TDesC& TestName();
       
    32 	virtual void DoCancel();
       
    33 	~CTextModeHeadersFilterTest();
       
    34 
       
    35 	// from MHTTPTransactionCallback
       
    36 	virtual void MHFRunL(RHTTPTransaction aTransaction,
       
    37 						 const THTTPEvent& aEvent);
       
    38 	virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
       
    39 
       
    40 private:
       
    41 	inline void FailTestL();
       
    42 	void TestConnectionHeaderL();
       
    43 
       
    44 private:
       
    45 	RHTTPSession iSession;
       
    46 	MHTTPFilter* iFilter;
       
    47 	};
       
    48  
       
    49 
       
    50 inline void CTextModeHeadersFilterTest::FailTestL()
       
    51 	{
       
    52 	User::Leave(KErrGeneral);
       
    53 	}