|
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 __CINC082448_H__ |
|
17 #define __CINC082448_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <http.h> |
|
21 #include <http/mhttpfiltercreationcallback.h> |
|
22 #include <http/mhttpauthenticationcallback.h> |
|
23 #include "HttpTestCore.h" |
|
24 |
|
25 class RConnection; |
|
26 class CHTTPTestUtils; |
|
27 class CScriptFile; |
|
28 /* |
|
29 Test case for defect fix CINC082448. |
|
30 */ |
|
31 class CINC082448 : public CHttpTestTransBase, |
|
32 public MHTTPTransactionCallback, |
|
33 public MHTTPFilterCreationCallback, |
|
34 public MHTTPAuthenticationCallback |
|
35 { |
|
36 public: |
|
37 static CINC082448* NewL(TInt aTestNumber, CScriptFile* aIniSettingsFile); |
|
38 virtual ~CINC082448(); |
|
39 |
|
40 void MHFRunL(RHTTPTransaction aTransaction, |
|
41 const THTTPEvent& aEvent) ; |
|
42 TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, |
|
43 const THTTPEvent& aEvent) ; |
|
44 // method inherited from MHTTPAuthenticationCallback |
|
45 virtual TBool GetCredentialsL(const TUriC8& aURI, RString aRealm, |
|
46 RStringF aAuthenticationType, |
|
47 RString& aUsername, |
|
48 RString& aPassword); |
|
49 |
|
50 private: |
|
51 CINC082448(TInt aTestNumber, CScriptFile* aIniSettingsFile); |
|
52 const TDesC& TestName(); |
|
53 virtual void DoRunL(); |
|
54 virtual TInt RunError(TInt aErr); |
|
55 virtual void DoCancel(); |
|
56 void ConfigureSessionFiltersL(TFilterConfigurationIterator* aFilterConfigIter); |
|
57 |
|
58 TBool IsConnectionActive ( RConnection& aConnection ); |
|
59 private: |
|
60 /** This has the instance of the settings.ini file. This instance is passed |
|
61 to ReplaceHostNameL() function which uses this instance to retrieve the |
|
62 data from settings.ini file. |
|
63 */ |
|
64 CScriptFile* iIniSettingsFile; |
|
65 |
|
66 protected: |
|
67 TInt iOpenTransactionCount; |
|
68 TInt iFailureError; |
|
69 TInt iTestNumber; |
|
70 }; |
|
71 |
|
72 #endif // __CINC082448_H__ |