applayerprotocols/httptransportfw/Test/Acceptance/Iter2/3DigestAuthTransactions.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 //
       
    15 
       
    16 
       
    17 #ifndef __C3DIGESTAUTHTRANSACTIONS_H__
       
    18 #define __C3DIGESTAUTHTRANSACTIONS_H__
       
    19 
       
    20 #include "HttpTestCore.h"
       
    21 #include "CHttpAccepTtestBase.h"
       
    22 #include <http.h>
       
    23 #include <http/mhttpauthenticationcallback.h>
       
    24 
       
    25 // Testing fix ..
       
    26 // INC036806 - Unauthorised requests are not resent when pipelined with digest 
       
    27 // authentication.
       
    28 
       
    29 class C3DigestAuthTransactions: public CHttpAcceptTestBase, MHTTPAuthenticationCallback
       
    30 	{
       
    31 public:
       
    32 	C3DigestAuthTransactions(CScriptFile* aIniSettingsFile);
       
    33 protected:	
       
    34 
       
    35 	const TDesC& TestName();
       
    36 	void OpenTestSessionL();
       
    37 	void CloseTestSession();
       
    38 	void DoRunL();
       
    39 
       
    40 	void OpenTestTrans1L();
       
    41 	void OpenTestTrans2L();
       
    42 	void OpenTestTrans3L();
       
    43 	TInt MHFRunError(TInt aError, RHTTPTransaction /*aTransaction*/, const THTTPEvent& /*aEvent*/);
       
    44 	void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
       
    45 	TBool GetCredentialsL(const TUriC8& aURI, RString aRealm, RStringF aAuthenticationType, RString& aUsername, RString& aPassword);
       
    46 	
       
    47 private:
       
    48 	RHTTPTransaction iTransaction1;
       
    49 	RHTTPTransaction iTransaction2;
       
    50 	RHTTPTransaction iTransaction3;
       
    51 
       
    52 	/** This has the instance of the settings.ini file.  This instance is passed
       
    53 	 to ReplaceHostNameL() function which uses this instance to retrieve the
       
    54 	 data from settings.ini file.
       
    55 	 */
       
    56 	CScriptFile* iIniSettingsFile;
       
    57 
       
    58 	TInt transCount;
       
    59 	TInt testHdrReceived;
       
    60 	TInt iTransNum;
       
    61 	TInt iTransSucceeded;
       
    62 	TBool iSetCredentials;
       
    63 	};
       
    64 
       
    65 
       
    66 #endif // __C3DIGESTAUTHTRANSACTIONS_H__