applayerprotocols/httptransportfw/Test/Acceptance/Iter1/Tc2.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 #ifndef __TC2_H__
       
    19 #define __TC2_H__
       
    20 
       
    21 #include "HttpTestCore.h"
       
    22 #include <http.h>
       
    23 #include "csrvaddrval.h"
       
    24 
       
    25 /**
       
    26  * Opens a session, a transaction, creates headers and submit the request 
       
    27  * without actually starting the active scheduler
       
    28  *
       
    29  */
       
    30 class CHttpTestCase2: public CHttpTestTransBase, public MHTTPTransactionCallback
       
    31 	{
       
    32 public:
       
    33 	CHttpTestCase2(CScriptFile* aIniSettingsFile);
       
    34 	virtual void MHFRunL(RHTTPTransaction aTransaction,
       
    35 							const THTTPEvent& aEvent) ;
       
    36 	virtual TInt MHFRunError(TInt aError, RHTTPTransaction,
       
    37 							const THTTPEvent& aEvent);
       
    38 	virtual ~CHttpTestCase2();
       
    39 
       
    40 protected:
       
    41 	void CompleteOwnRequest();
       
    42 
       
    43 private:
       
    44 	const TDesC& TestName();
       
    45 	virtual void DoRunL();
       
    46 	virtual TInt RunError(TInt aErr);
       
    47 	virtual void DoCancel();
       
    48 
       
    49 	/** This has the instance of the settings.ini file.  This instance is passed
       
    50 	 to ReplaceHostNameL() function which uses this instance to retrieve the
       
    51 	 data from settings.ini file.
       
    52 	 */
       
    53 	CScriptFile* iIniSettingsFile;
       
    54 	};
       
    55 
       
    56 
       
    57 #endif