applayerprotocols/httptransportfw/Test/T_HttpRegression/t_INC035621.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 #ifndef __T_INC035621_H__
       
    17 #define __T_INC035621_H__
       
    18 
       
    19 
       
    20 #include <e32test.h>
       
    21 #include <http.h>
       
    22 #include <http/mhttpauthenticationcallback.h>
       
    23 
       
    24 #include "HttpTestCore.h"
       
    25 #include "csrvaddrval.h"
       
    26 
       
    27 class CTestFixINC035621 : public CHttpTestBase, 
       
    28 						  public MHTTPAuthenticationCallback,
       
    29    					  	  public MHTTPTransactionCallback
       
    30 
       
    31 	{
       
    32 public:
       
    33 	static CTestFixINC035621* NewLC(CScriptFile* aIniSettingsFile);
       
    34 	~CTestFixINC035621();
       
    35 	virtual const TDesC& TestName();
       
    36 	void DoRunL();
       
    37 	void DoCancel();
       
    38 
       
    39 	virtual TBool GetCredentialsL(const TUriC8& aURI, RString aRealm, RStringF aAuthenticationType,
       
    40 								RString& aUsername,RString& aPassword);
       
    41 
       
    42 protected:
       
    43 	// From MHTTPTransactionCallback
       
    44 	virtual TInt MHFRunError(TInt aError,RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
       
    45 	virtual void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
       
    46 
       
    47 private:
       
    48 	CTestFixINC035621(CScriptFile* aIniSettingsFile);
       
    49 
       
    50 private:
       
    51 	CScriptFile* iIniSettingsFile;
       
    52  
       
    53 protected:
       
    54 	TInt iCount;
       
    55 	TInt iError;
       
    56 	RHTTPSession iSession;
       
    57 	RHTTPTransaction iTransaction;
       
    58 	TBool complete;
       
    59 	};
       
    60 
       
    61 #endif // __T_INC035621_H__