|
1 // Copyright (c) 2004-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 // Author: Franco.Bellu@symbian.com |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __TC4_H__ |
|
19 #define __TC4_H__ |
|
20 |
|
21 #include "HttpTestCore.h" |
|
22 #include <http.h> |
|
23 #include "csrvaddrval.h" |
|
24 |
|
25 /** |
|
26 * like TC3 but also the response' body is received and logged |
|
27 * a completed transaction is simulated content type : |
|
28 * EApplicationXWwwFormUrlEncoded |
|
29 */ |
|
30 class CHttpTestCase4: public CHttpTestTransBase, public MHTTPTransactionCallback |
|
31 { |
|
32 //to implement in this class' member functs definitions |
|
33 public: |
|
34 CHttpTestCase4(CScriptFile* aIniSettingsFile); |
|
35 |
|
36 virtual void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent) ; |
|
37 virtual TInt MHFRunError(TInt aError,RHTTPTransaction aTransaction, const THTTPEvent& aEvent); |
|
38 |
|
39 virtual ~CHttpTestCase4(); |
|
40 private: |
|
41 const TDesC& TestName(); |
|
42 virtual void DoRunL(); |
|
43 virtual TInt RunError(TInt aErr); |
|
44 virtual void DoCancel(); |
|
45 // virtual const TDesC& TestName(); |
|
46 protected: |
|
47 void CompleteOwnRequest(); |
|
48 private: |
|
49 /** This has the instance of the settings.ini file. This instance is passed |
|
50 to ReplaceHostNameL() function which uses this instance to retrieve the |
|
51 data from settings.ini file. |
|
52 */ |
|
53 CScriptFile* iIniSettingsFile; |
|
54 }; |
|
55 |
|
56 #endif |