applayerprotocols/httptransportfw/Test/T_HttpOnline/cinc112633_2.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2007-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 CINC112633_2_H_
       
    17 #define CINC112633_2_H_
       
    18 
       
    19 #include <http.h>
       
    20 #include <http/mhttpfiltercreationcallback.h>
       
    21 #include <http/mhttpauthenticationcallback.h>
       
    22 #include "HttpTestCore.h"
       
    23 
       
    24 // User Include
       
    25 #include "TestScripts.h"
       
    26 
       
    27 /**
       
    28 	Derived test case class : test cookies
       
    29 */
       
    30 class CINC112633_2: public CHttpTestTransBase, 
       
    31 							public MHTTPTransactionCallback, 
       
    32 							public MHTTPAuthenticationCallback
       
    33 						
       
    34 	{
       
    35 public:
       
    36 	static CINC112633_2* NewL(TInt aTestNumber, CScriptFile* aIniSettingsFile);
       
    37 	virtual ~CINC112633_2();
       
    38 	
       
    39 public:
       
    40 	virtual void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
       
    41 	virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
       
    42 	virtual TBool GetCredentialsL(const TUriC8& aURI, RString aRealm, 
       
    43 								 RStringF aAuthenticationType,
       
    44 								 RString& aUsername, 
       
    45 								 RString& aPassword);
       
    46 
       
    47 protected:
       
    48 	CINC112633_2(TInt aTestNumber, CScriptFile* aIniSettingsFile);
       
    49 	const TDesC& TestName();
       
    50 	virtual void DoRunL();
       
    51 	virtual TInt RunError(TInt aErr);	
       
    52 	virtual void DoCancel();
       
    53 	void ConfigureSessionFiltersL(TFilterConfigurationIterator* aFilterConfigIter);
       
    54 
       
    55 private:
       
    56 	CScriptFile* iIniSettingsFile;
       
    57 	
       
    58 protected:
       
    59 	TInt iFailureError;
       
    60 	TInt iTestNumber;
       
    61 	};
       
    62 	
       
    63 #endif /*CINC112633_2_2_H_*/