applayerprotocols/httptransportfw/Test/T_HttpOnline/DEF079378.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2006-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_DEF079378_H__
       
    17 #define	__T_DEF079378_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 class CExampleCookieManager;
       
    28 
       
    29 /**
       
    30 	Derived test case class : test cookies
       
    31 */
       
    32 class CDEF079378: public CHttpTestTransBase, 
       
    33 							public MHTTPTransactionCallback, 
       
    34 							public MHTTPFilterCreationCallback,
       
    35 							public MHTTPAuthenticationCallback
       
    36 	{
       
    37 public:
       
    38 	static CDEF079378* NewL(TInt aTestNumber, 
       
    39 		CScriptFile* aIniSettingsFile);
       
    40 	virtual ~CDEF079378();
       
    41 	// to implement in this class' member function definitions
       
    42 public:
       
    43 	virtual void MHFRunL(RHTTPTransaction aTransaction,
       
    44 						 const THTTPEvent& aEvent) ;
       
    45 	virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction,
       
    46 							 const THTTPEvent& aEvent) ;
       
    47 	// method inherited from MHTTPAuthenticationCallback
       
    48 	virtual TBool GetCredentialsL(const TUriC8& aURI, RString aRealm, 
       
    49 								 RStringF aAuthenticationType,
       
    50 								 RString& aUsername, 
       
    51 								 RString& aPassword);
       
    52 
       
    53 protected:
       
    54 	CDEF079378(TInt aTestNumber, CScriptFile* aIniSettingsFile);
       
    55 	const TDesC& TestName();
       
    56 	virtual void DoRunL();
       
    57 	virtual TInt RunError(TInt aErr);	
       
    58 	virtual void DoCancel();
       
    59 	void ConfigureSessionFiltersL(TFilterConfigurationIterator* aFilterConfigIter);
       
    60 
       
    61 
       
    62 
       
    63 private:
       
    64 	/** This has the instance of the settings.ini file.  This instance is passed
       
    65 	 to ReplaceHostNameL() function which uses this instance to retrieve the
       
    66 	 data from settings.ini file.
       
    67 	 */
       
    68 	CScriptFile* iIniSettingsFile;
       
    69 	
       
    70 protected:
       
    71 	TInt iOpenTransactionCount;
       
    72 	TInt iFailureError;
       
    73 	CExampleCookieManager* iCookieManager;
       
    74 	TInt iTestNumber;
       
    75 	};
       
    76 
       
    77 #endif // __T_DEF079378_H__