|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CTESTCASEPIPELINEFALLBACK_H__ |
|
20 #define __CTESTCASEPIPELINEFALLBACK_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <http.h> |
|
24 |
|
25 #include "cbatchingtestcase.h" |
|
26 |
|
27 class CHTTPTestUtils; |
|
28 |
|
29 /* |
|
30 */ |
|
31 class CTestCasePipelineFallback : public CBatchingTestCase |
|
32 { |
|
33 public: |
|
34 static CTestCasePipelineFallback* NewL(CHTTPTestUtils& aTestUtils); |
|
35 ~CTestCasePipelineFallback(); |
|
36 TBool FallingBack() const; |
|
37 void IncFallingBack(); |
|
38 private: |
|
39 CTestCasePipelineFallback(CHTTPTestUtils& aTestUtils); |
|
40 void ConstructL(); |
|
41 |
|
42 // From MPipeliningTestCase |
|
43 const TDesC& TestCaseName() const; |
|
44 TInt TotalTransactionCount() const; |
|
45 RHTTPTransaction GetTransactionL(TInt aIndex, RHTTPSession aSession, MHTTPTransactionCallback& aClient); |
|
46 const TDesC8& GetRawRequest(TInt aConnectionIndex, TInt aTransIndex); |
|
47 const TDesC8& GetRawResponse(TInt aConnectionIndex, TInt aTransIndex); |
|
48 TInt ConnectionCount() const; |
|
49 |
|
50 private: |
|
51 CHTTPTestUtils& iTestUtils; |
|
52 TInt iFallingback; |
|
53 }; |
|
54 |
|
55 #endif // __CTESTCASEPIPELINEFALLBACK_H__ |