|
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 // CINC110203_H_ |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 #ifndef CINC110203_H_ |
|
20 #define CINC110203_H_ |
|
21 #include <http.h> |
|
22 #include <http/mhttpfiltercreationcallback.h> |
|
23 #include <http/mhttpauthenticationcallback.h> |
|
24 #include "HttpTestCore.h" |
|
25 |
|
26 // User Include |
|
27 #include "TestScripts.h" |
|
28 |
|
29 /** |
|
30 Derived test case class : test cookies |
|
31 */ |
|
32 class CINC110203: public CHttpTestTransBase, |
|
33 public MHTTPTransactionCallback |
|
34 |
|
35 { |
|
36 public: |
|
37 static CINC110203* NewL(TInt aTestNumber, |
|
38 CScriptFile* aIniSettingsFile); |
|
39 virtual ~CINC110203(); |
|
40 |
|
41 public: |
|
42 virtual void MHFRunL(RHTTPTransaction aTransaction, |
|
43 const THTTPEvent& aEvent) ; |
|
44 virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, |
|
45 const THTTPEvent& aEvent) ; |
|
46 |
|
47 protected: |
|
48 CINC110203(TInt aTestNumber, CScriptFile* aIniSettingsFile); |
|
49 const TDesC& TestName(); |
|
50 virtual void DoRunL(); |
|
51 virtual TInt RunError(TInt aErr); |
|
52 virtual void DoCancel(); |
|
53 void SetHeaderL(RHTTPHeaders aHeaders, TInt aHdrField, const TDesC8& aHdrValue); |
|
54 |
|
55 private: |
|
56 CScriptFile* iIniSettingsFile; |
|
57 |
|
58 protected: |
|
59 TInt iOpenTransactionCount; |
|
60 TInt iFailureError; |
|
61 TInt iTestNumber; |
|
62 }; |
|
63 #endif /*CINC110203_H_*/ |