applayerprotocols/httptransportfw/Test/Acceptance/Iter2/get12.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 __GET12_H__
       
    18 #define __GET12_H__
       
    19 
       
    20 #include "HttpTestCore.h"
       
    21 #include "CHttpAccepTtestBase.h"
       
    22 #include <http.h>
       
    23 #include <http/mhttpauthenticationcallback.h>
       
    24 
       
    25 /**
       
    26 	Tests Single HTTP connection over default bearer and client's access to
       
    27 	connection created by the Transport Handler.
       
    28  */
       
    29 class CHttpTestCaseGet12: public CHttpAcceptTestBase, MHTTPAuthenticationCallback
       
    30 	{
       
    31 public:
       
    32 	CHttpTestCaseGet12(CScriptFile* aIniSettingsFile);
       
    33 	virtual TBool GetCredentialsL(const TUriC8& aURI, RString aRealm, RStringF aAuthenticationType, RString& aUsername,RString& aPassword);
       
    34 protected:	
       
    35 	const TDesC& TestName();
       
    36 	void OpenTestSessionL();
       
    37 	void CloseTestSession();
       
    38 	//logs properties of the default connection created by the Transport 
       
    39 	//Handler
       
    40 	void LogConnectionProperties();
       
    41 private:
       
    42 	RStringF iUserAgent;
       
    43 	/** This has the instance of the settings.ini file.  This instance is passed
       
    44 	 to ReplaceHostNameL() function which uses this instance to retrieve the
       
    45 	 data from settings.ini file.
       
    46 	 */
       
    47 	CScriptFile* iIniSettingsFile;
       
    48 	};
       
    49 
       
    50 
       
    51 #endif