applayerprotocols/httptransportfw/Test/Acceptance/Iter1/Tc6.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2004-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 // Author: Franco.Bellu@symbian.com
       
    15 // 
       
    16 //
       
    17 
       
    18 
       
    19 #ifndef __TC6_H__
       
    20 #define __TC6_H__
       
    21 
       
    22 #include "HttpTestCore.h"
       
    23 #include <http.h>
       
    24 #include "csrvaddrval.h"
       
    25 
       
    26 /** 
       
    27  * like TC5 a completed transaction is simulated but the an  entity header 
       
    28  * specific to ocsp is added
       
    29  */
       
    30 class CHttpTestCase6: public CHttpTestTransBase, public MHTTPTransactionCallback
       
    31 	{
       
    32 	//to implement in this class' member functs definitions
       
    33 public:
       
    34 	CHttpTestCase6(CScriptFile* aIniSettingsFile);
       
    35 	//##ModelId=3A76B9DD03D9
       
    36 	virtual void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent) ;
       
    37 	virtual TInt MHFRunError(TInt aError,RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
       
    38 	virtual ~CHttpTestCase6();
       
    39 private:	
       
    40 	const TDesC& TestName();
       
    41 	virtual void DoRunL();
       
    42 	virtual TInt RunError(TInt aErr);
       
    43 	//##ModelId=3A76B9DD03CF
       
    44 	virtual void DoCancel();	
       
    45 	//##ModelId=3A76B9DD03CE
       
    46 //	virtual const TDesC& TestName();
       
    47 protected:
       
    48 	//##ModelId=3A76B9DD03C7
       
    49 	void CompleteOwnRequest();
       
    50 private:
       
    51 	/** This has the instance of the settings.ini file.  This instance is passed
       
    52 	 to ReplaceHostNameL() function which uses this instance to retrieve the
       
    53 	 data from settings.ini file.
       
    54 	 */
       
    55 	CScriptFile* iIniSettingsFile;
       
    56 	};
       
    57 
       
    58 
       
    59 #endif