|
1 // Copyright (c) 2007-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 the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Contains declaration of CHttpEboClientStep class |
|
15 // @internalAll |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef TESTHTTPEBOCLIENTCONDITIONALSTEP_H_ |
|
20 #define TESTHTTPEBOCLIENTCONDITIONALSTEP_H_ |
|
21 //System Include |
|
22 #include "testhttpbasestep.h" |
|
23 #include <http/mhttpdataoptimiser.h> |
|
24 |
|
25 /** |
|
26 This is the eboclient to test the ebo functionality. |
|
27 This tests some conditions like the pipelining and non pipelining with the ebo feature. |
|
28 @internalTechnology |
|
29 @test |
|
30 */ |
|
31 |
|
32 class CHttpEboClientConditionalStep : public CTestHttpBaseStep, public MHttpDataOptimiser |
|
33 { |
|
34 public: |
|
35 virtual ~CHttpEboClientConditionalStep(); |
|
36 CHttpEboClientConditionalStep(); |
|
37 |
|
38 //These methods from MHttpDataOptimiser |
|
39 void EncodeL (const TDesC8& aHttpData, HBufC8*& aEncodedData); |
|
40 void DecodeL (const TDesC8& aData, HBufC8*& aHttpData, TBool& aTransFail); |
|
41 |
|
42 private: |
|
43 void StartClientL(); |
|
44 void InvokeHttpMethodL(const TDesC8& aUri, RStringF aMethod); |
|
45 |
|
46 // methods from MHTTPTransactionCallback |
|
47 void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent); |
|
48 TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent); |
|
49 |
|
50 private: |
|
51 MHTTPDataSupplier* iRespBody; |
|
52 TInt iChunkSize; |
|
53 TBool iPipeliningEnabled; |
|
54 TBool iDisableTransOpt; |
|
55 }; |
|
56 |
|
57 /*@{*/ |
|
58 /// Literal constant defined for identifying step name |
|
59 _LIT(KTestHttpEboClientConditionalStep, "TestHttpEboClientConditionalStep"); |
|
60 /*@}*/ |
|
61 |
|
62 #endif /*TESTHTTPEBOCLIENTCONDITIONALSTEP_H_*/ |