applayerprotocols/httptransportfw/Test/T_HttpPipeliningTest/CDEF143497.h
branchRCL_3
changeset 3 5ee1d9ce5878
equal deleted inserted replaced
0:b16258d2340f 3:5ee1d9ce5878
       
     1 // Copyright (c) 2003-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 __CDEF143497_H__
       
    17 #define __CDEF143497_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <http.h>
       
    21 #include <http/mhttpauthenticationcallback.h>
       
    22 
       
    23 
       
    24 #include "CPipeliningTestCase.h"
       
    25 
       
    26 class CHTTPTestUtils;
       
    27 
       
    28 //Test case for defect fix DEF143497
       
    29 class CDEF143497  : public CPipeliningTestCase, MHTTPAuthenticationCallback
       
    30 	{
       
    31 public:
       
    32 	static CDEF143497 * NewL(CHTTPTestUtils& aTestUtils);
       
    33 	~CDEF143497 ();
       
    34 public :
       
    35 		virtual TBool GetCredentialsL(const TUriC8& aURI, RString aRealm, 
       
    36 								 RStringF aAuthenticationType,
       
    37 								 RString& aUsername, 
       
    38 								 RString& aPassword);
       
    39 
       
    40 	
       
    41 private:
       
    42 	CDEF143497 (CHTTPTestUtils& aTestUtils);
       
    43 	void ConstructL();
       
    44 
       
    45 	// From MPipeliningTestCase
       
    46 	const TDesC& TestCaseName() const;
       
    47 	TInt TotalTransactionCount() const;
       
    48 	RHTTPTransaction GetTransactionL(TInt aIndex, RHTTPSession aSession, MHTTPTransactionCallback& aClient);
       
    49 	const TDesC8& GetRawRequest(TInt aConnectionIndex, TInt aTransIndex);
       
    50 	const TDesC8& GetRawResponse(TInt aConnectionIndex, TInt aTransIndex);
       
    51 	TInt ConnectionCount() const;
       
    52 	virtual TInt ExpectedError(RHTTPTransaction aTrans);
       
    53 	
       
    54 private:
       
    55 	CHTTPTestUtils&			iTestUtils;
       
    56 	};
       
    57 	
       
    58 #endif // __CDEF143497_H__