applayerprotocols/httptransportfw/Test/T_HttpOffline/ctesthttpheadercodec.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2002-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 #ifndef __CTESTHTTPHEADERCODEC_H__
       
    17 #define __CTESTHTTPHEADERCODEC_H__
       
    18 
       
    19 #include <http/framework/cheadercodec.h>
       
    20 
       
    21 #include "HttpTestCore.h"
       
    22 
       
    23 class CTestHttpHeaderCodec : public CHttpTestBase
       
    24 	{
       
    25 public:
       
    26 	virtual ~CTestHttpHeaderCodec();
       
    27 
       
    28 	const TDesC& TestName();
       
    29 	virtual void DoRunL();
       
    30 	virtual TInt RunError(TInt aErr);	
       
    31 	virtual void DoCancel();
       
    32 
       
    33 	static CTestHttpHeaderCodec* NewLC();
       
    34 	static CTestHttpHeaderCodec* NewL();
       
    35 	void RunTestsL();
       
    36 
       
    37 protected:
       
    38 	CTestHttpHeaderCodec();
       
    39 	void ConstructL();
       
    40 
       
    41 private:
       
    42 	void ResetTimeElapsed();
       
    43 	void DisplayTimeElapsed();
       
    44 
       
    45 	void TestEncodeWWWAuthenticateL();
       
    46 	void TestDecodeAcceptL();
       
    47 	void TestDecodeAcceptCharsetL();
       
    48 	void TestDecodeUserAgentL();
       
    49 	void TestDecodeAuthorizationL();
       
    50 	void TestDecodeHostL();
       
    51 	void TestDecodeExpectL();
       
    52 
       
    53 	//
       
    54 	TBool CompareStringL(RStringF aStr, const TDesC8& aDes);
       
    55 	TBool CompareStringL(RString aStr, const TDesC8& aDes);
       
    56 	TBool CompareDate(TDateTime aDate1, TDateTime aDate2);
       
    57 	void ReleaseHeaders();
       
    58 
       
    59 private:
       
    60 	TTime			iLastTimeStamp;
       
    61 	RStringPool		iStrP;
       
    62 	CHeaderCodec*	iCodec;
       
    63 	};
       
    64 
       
    65 #endif	// __CTESTHTTPHEADERCODEC_H__