|
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 __T_INC094209_H__ |
|
17 #define __T_INC094209_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 CINC094209: public CHttpTestTransBase, |
|
33 public MHTTPTransactionCallback, |
|
34 public MHTTPFilterCreationCallback |
|
35 |
|
36 { |
|
37 public: |
|
38 static CINC094209* NewL(TInt aTestNumber, |
|
39 CScriptFile* aIniSettingsFile); |
|
40 virtual ~CINC094209(); |
|
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 |
|
48 protected: |
|
49 CINC094209(TInt aTestNumber, CScriptFile* aIniSettingsFile); |
|
50 const TDesC& TestName(); |
|
51 virtual void DoRunL(); |
|
52 virtual TInt RunError(TInt aErr); |
|
53 virtual void DoCancel(); |
|
54 void ConfigureSessionFiltersL(TFilterConfigurationIterator* aFilterConfigIter); |
|
55 |
|
56 |
|
57 |
|
58 private: |
|
59 /** This has the instance of the settings.ini file. This instance is passed |
|
60 to ReplaceHostNameL() function which uses this instance to retrieve the |
|
61 data from settings.ini file. |
|
62 */ |
|
63 CScriptFile* iIniSettingsFile; |
|
64 |
|
65 protected: |
|
66 TInt iOpenTransactionCount; |
|
67 TInt iFailureError; |
|
68 CExampleCookieManager* iCookieManager; |
|
69 TInt iTestNumber; |
|
70 }; |
|
71 |
|
72 #endif // __T_INC094209_H__ |