applayerprotocols/httptransportfw/Test/Acceptance/Iter2/EofTransactionResubmission.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 // 3BasicAuthTransactions.h
       
    15 // 
       
    16 //
       
    17 
       
    18 
       
    19 #ifndef __CEOFTRANSACTIONRESUBMISSION_H__
       
    20 #define __CEOFTRANSACTIONRESUBMISSION_H__
       
    21 
       
    22 #include "HttpTestCore.h"
       
    23 #include "CHttpAccepTtestBase.h"
       
    24 #include <http.h>
       
    25 #include <http/mhttpauthenticationcallback.h>
       
    26 
       
    27 // Testing fix ..
       
    28 // INC036950 - HTTP testing with emulator(100-4659 Some HTTP transactions are
       
    29 // not fetched)
       
    30 
       
    31 class CEofTransactionResubmission: public CHttpAcceptTestBase
       
    32 	{
       
    33 public:
       
    34 	CEofTransactionResubmission(CScriptFile* aIniSettingsFile);
       
    35 protected:	
       
    36 
       
    37 	const TDesC& TestName();
       
    38 	void OpenTestSessionL();
       
    39 	void CloseTestSession();
       
    40 	void DoRunL();
       
    41 
       
    42 	void OpenTestTrans1L();
       
    43 	void OpenTestTrans2L();
       
    44 
       
    45 	TInt MHFRunError(TInt aError, RHTTPTransaction /*aTransaction*/, const THTTPEvent& /*aEvent*/);
       
    46 	void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
       
    47 	void DisablePipeliningL(RHTTPTransaction trans);
       
    48 	
       
    49 private:
       
    50 	RHTTPTransaction iTransaction1;
       
    51 	RHTTPTransaction iTransaction2;
       
    52 
       
    53 	/** This has the instance of the settings.ini file.  This instance is passed
       
    54 	 to ReplaceHostNameL() function which uses this instance to retrieve the
       
    55 	 data from settings.ini file.
       
    56 	 */
       
    57 	CScriptFile* iIniSettingsFile;
       
    58 
       
    59 	TInt transCount;
       
    60 	TInt testHdrReceived;
       
    61 	TInt iTransNum;
       
    62 	TInt iTransSucceeded;
       
    63 	TBool iSetCredentials;
       
    64 	TBool i2ndTrans;
       
    65 	};
       
    66 
       
    67 
       
    68 #endif // __CEOFTRANSACTIONRESUBMISSION_H__
       
    69