author | Maciej Seroka <maciejs@symbian.org> |
Wed, 06 Jan 2010 13:41:51 +0000 | |
changeset 836 | 675529c38614 |
child 872 | 17498133d9ad |
permissions | -rw-r--r-- |
836
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1 |
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2 |
// All rights reserved. |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
4 |
// under the terms of the License "Symbian Foundation License v1.0" |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
7 |
// |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
8 |
// Initial Contributors: |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
10 |
// |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
11 |
// Contributors: |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
12 |
// |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
13 |
// Description: |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
14 |
// Contains declaration of CTestHttpBufferSizeStep class |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
15 |
// @internalAll |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
16 |
// |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
17 |
// |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
18 |
|
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
19 |
#ifndef __TEST_HTTP_BUFFER_SIZE_STEP_H__ |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
20 |
#define __TEST_HTTP_BUFFER_SIZE_STEP_H__ |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
21 |
|
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
22 |
// User Include |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
23 |
#include "testhttpbasestep.h" |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
24 |
|
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
25 |
/// Literal constant defined for identifying step name |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
26 |
_LIT(KTestHttpBufferSizeStep, "TestHttpBufferSizeStep"); |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
27 |
|
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
28 |
/** |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
29 |
This is the base test step from which all other test steps are derived |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
30 |
to test the HTTP Library. |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
31 |
@internalTechnology |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
32 |
@test |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
33 |
*/ |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
34 |
class CTestHttpBufferSizeStep : public CTestHttpBaseStep |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
35 |
{ |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
36 |
public: |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
37 |
CTestHttpBufferSizeStep(); |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
38 |
virtual ~CTestHttpBufferSizeStep(); |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
39 |
|
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
40 |
private: |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
41 |
void StartClientL(); |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
42 |
void InvokeHttpMethodL(const TDesC8& aUri, RStringF aMethod); |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
43 |
void ValidateTest(); |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
44 |
|
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
45 |
// methods from MHTTPTransactionCallback |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
46 |
void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent) ; |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
47 |
TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent) ; |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
48 |
|
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
49 |
public: |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
50 |
MHTTPDataSupplier* iRespBody; |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
51 |
TInt iChunkSize; |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
52 |
}; |
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
53 |
|
675529c38614
Added smoke test for making a connection to a web server through ethernet
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
54 |
#endif // __TEST_HTTP_BUFFER_SIZE_STEP_H__ |