|
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 CTestHttpServer class |
|
15 // @internalAll |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef __TEST__HTTP_SERVER_H__ |
|
20 #define __TEST__HTTP_SERVER_H__ |
|
21 |
|
22 // System Include |
|
23 // For accessing TEF classes |
|
24 #include <testexecuteserverbase.h> |
|
25 |
|
26 /*@{*/ |
|
27 /// Literal constants for INI file field-names |
|
28 _LIT(KIniSessProxy, "SessProxy"); |
|
29 _LIT(KIniSessProxyUsage, "SessProxyUsage"); |
|
30 _LIT(KIniTranProxy, "TranProxy"); |
|
31 _LIT(KIniTranProxyUsage, "TranProxyUsage"); |
|
32 _LIT(KIniUri, "Uri"); |
|
33 _LIT(KIniRespBodyFileName, "RespBodyFileName"); |
|
34 _LIT(KIniFileName, "OutputFileName"); |
|
35 _LIT(KIniSessHttpOptUsage, "SessHttpOptUsage"); |
|
36 _LIT(KIniTranHttpOptUsage, "TranHttpOptUsage"); |
|
37 _LIT(KIniIsEncoded, "IsEncoded"); |
|
38 _LIT(KIniIsDecoded, "IsDecoded"); |
|
39 _LIT(KIniFailTransaction, "FailTransaction"); |
|
40 _LIT(KDisableTransOpt, "DisableTransOpt"); |
|
41 /*@}*/ |
|
42 _LIT(KTxt, "ERROR"); |
|
43 |
|
44 /** |
|
45 This is the test server to test the white/black-list uri service API. |
|
46 @internalTechnology |
|
47 */ |
|
48 class CTestHttpServer : public CTestServer |
|
49 { |
|
50 public: |
|
51 // Construction |
|
52 static CTestHttpServer* NewL(); |
|
53 // Base class pure virtual |
|
54 virtual CTestStep* CreateTestStep(const TDesC& aStepName); |
|
55 |
|
56 protected: |
|
57 CTestStep* CreateTestStepL(const TDesC& aStepName); |
|
58 const TPtrC ServerName(); |
|
59 }; |
|
60 |
|
61 #endif // __TEST__HTTPEBO_SERVER_H__ |