|
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 __CTESTCASE16_H__ |
|
17 #define __CTESTCASE16_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <http.h> |
|
21 |
|
22 #include "CBatchingTestCase.h" |
|
23 |
|
24 class CHTTPTestUtils; |
|
25 |
|
26 /* Pipelining 5 simple requests to test server with batching enabled. The 3rd request |
|
27 has a Connection: Close header. This expects the first 3 requests are batched and |
|
28 the last 2 are batched on a another connection. This test case will ensure that |
|
29 the time-out batching is correcly handled when multiple connections are used requested |
|
30 by the client. |
|
31 */ |
|
32 class CTestCase16 : public CBatchingTestCase |
|
33 { |
|
34 public: |
|
35 static CTestCase16* NewL(CHTTPTestUtils& aTestUtils); |
|
36 ~CTestCase16(); |
|
37 |
|
38 private: |
|
39 CTestCase16(CHTTPTestUtils& aTestUtils); |
|
40 void ConstructL(); |
|
41 void AddConnectionCloseHeaderL(RHTTPTransaction aTransaction); |
|
42 |
|
43 // From MPipeliningTestCase |
|
44 const TDesC& TestCaseName() const; |
|
45 TInt TransactionCount(TInt aConnectionIndex) const; |
|
46 TInt TotalTransactionCount() const; |
|
47 RHTTPTransaction GetTransactionL(TInt aIndex, RHTTPSession aSession, MHTTPTransactionCallback& aClient); |
|
48 const TDesC8& GetRawRequest(TInt aConnectionIndex, TInt aTransIndex); |
|
49 const TDesC8& GetRawResponse(TInt aConnectionIndex, TInt aTransIndex); |
|
50 TInt ConnectionCount() const; |
|
51 |
|
52 private: |
|
53 CHTTPTestUtils& iTestUtils; |
|
54 }; |
|
55 |
|
56 #endif // __CTESTCASE16_H__ |