|
1 // Copyright (c) 2001-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 __GET21_H__ |
|
18 #define __GET21_H__ |
|
19 |
|
20 #include "HttpTestCore.h" |
|
21 #include "CHttpAccepTtestBase.h" |
|
22 #include <http.h> |
|
23 #include <es_sock.h> |
|
24 |
|
25 |
|
26 /* Tests Multiple HTTP connections over different bearers |
|
27 */ |
|
28 |
|
29 class CHttpTestCaseGet21: public CHttpAcceptTestBase |
|
30 { |
|
31 public: |
|
32 CHttpTestCaseGet21(); |
|
33 protected: |
|
34 |
|
35 const TDesC& TestName(); |
|
36 void OpenTestSessionL(); |
|
37 void CloseTestSession(); |
|
38 void DoRunL(); |
|
39 |
|
40 void OpenTestTrans1L(); |
|
41 void OpenTestTrans2L(); |
|
42 void OpenTestTrans3L(); |
|
43 TInt MHFRunError(TInt aError, RHTTPTransaction /*aTransaction*/, const THTTPEvent& /*aEvent*/); |
|
44 void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent); |
|
45 |
|
46 private: |
|
47 RHTTPTransaction iTransaction1; |
|
48 RHTTPTransaction iTransaction2; |
|
49 RHTTPTransaction iTransaction3; |
|
50 RHTTPRequest iMyRequest1 ; |
|
51 RHTTPHeaders iMyHeaders1 ; |
|
52 RHTTPRequest iMyRequest2 ; |
|
53 RHTTPHeaders iMyHeaders2 ; |
|
54 RHTTPRequest iMyRequest3 ; |
|
55 RHTTPHeaders iMyHeaders3 ; |
|
56 RHTTPSession iSession1; |
|
57 RHTTPSession iSession2; |
|
58 RSocketServ iSockServ; |
|
59 RConnection iConnection1; |
|
60 RConnection iConnection2; |
|
61 private: |
|
62 TInt iTransNum; |
|
63 TInt iTransSucceeded; |
|
64 TInt transCount; |
|
65 }; |
|
66 |
|
67 |
|
68 #endif |
|
69 |