|
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 // |
|
15 |
|
16 |
|
17 #ifndef __GET17_H__ |
|
18 #define __GET17_H__ |
|
19 |
|
20 #include "HttpTestCore.h" |
|
21 #include "CHttpAccepTtestBase.h" |
|
22 #include <http.h> |
|
23 |
|
24 /*TODO */ |
|
25 |
|
26 class CHttpTestCaseGet17: public CHttpAcceptTestBase |
|
27 { |
|
28 public: |
|
29 CHttpTestCaseGet17(CScriptFile* aIniSettingsFile); |
|
30 protected: |
|
31 |
|
32 const TDesC& TestName(); |
|
33 void OpenTestSessionL(); |
|
34 void CloseTestSession(); |
|
35 void DoRunL(); |
|
36 |
|
37 void OpenTestTrans1L(); |
|
38 void OpenTestTrans2L(); |
|
39 void OpenTestTrans3L(); |
|
40 void OpenTestTrans4L(); |
|
41 void OpenTestTrans5L(); |
|
42 void OpenTestTrans6L(); |
|
43 void OpenTestTrans7L(); |
|
44 void OpenTestTrans8L(); |
|
45 TInt MHFRunError(TInt aError, RHTTPTransaction /*aTransaction*/, const THTTPEvent& /*aEvent*/); |
|
46 void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent); |
|
47 |
|
48 private: |
|
49 RHTTPTransaction iTransaction1; |
|
50 RHTTPTransaction iTransaction2; |
|
51 RHTTPTransaction iTransaction3; |
|
52 RHTTPTransaction iTransaction4; |
|
53 RHTTPTransaction iTransaction5; |
|
54 RHTTPTransaction iTransaction6; |
|
55 RHTTPTransaction iTransaction7; |
|
56 RHTTPTransaction iTransaction8; |
|
57 RHTTPRequest iMyRequest1 ; |
|
58 RHTTPRequest iMyRequest2 ; |
|
59 RHTTPRequest iMyRequest3 ; |
|
60 RHTTPRequest iMyRequest4 ; |
|
61 RHTTPRequest iMyRequest5 ; |
|
62 RHTTPHeaders iMyRequest6 ; |
|
63 RHTTPRequest iMyRequest7 ; |
|
64 RHTTPRequest iMyRequest8 ; |
|
65 |
|
66 RHTTPHeaders iMyHeaders1 ; |
|
67 RHTTPHeaders iMyHeaders2 ; |
|
68 RHTTPHeaders iMyHeaders3 ; |
|
69 RHTTPHeaders iMyHeaders4 ; |
|
70 RHTTPRequest iMyHeaders5 ; |
|
71 RHTTPHeaders iMyHeaders6 ; |
|
72 RHTTPHeaders iMyHeaders7 ; |
|
73 RHTTPHeaders iMyHeaders8 ; |
|
74 |
|
75 /** This has the instance of the settings.ini file. This instance is passed |
|
76 to ReplaceHostNameL() function which uses this instance to retrieve the |
|
77 data from settings.ini file. |
|
78 */ |
|
79 CScriptFile* iIniSettingsFile; |
|
80 |
|
81 TInt transCount; |
|
82 TInt testHdrReceived; |
|
83 TInt iTransNum; |
|
84 TInt iTransSucceeded; |
|
85 }; |
|
86 |
|
87 |
|
88 #endif |
|
89 |