|
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 "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 // Contains declaration of CTestEsacpeEncodeUriStep class |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __TEST_ESCAPEENCODEURI_STEP_H__ |
|
19 #define __TEST_ESCAPEENCODEURI_STEP_H__ |
|
20 |
|
21 #include "TestInetProUtilsUriServer.h" |
|
22 // System Include |
|
23 #include <escapeutils.h> |
|
24 |
|
25 // Literal constant defined for identifying step name |
|
26 _LIT(KTestEscapeEncodeUriStep, "TestEscapeEncodeUriStep"); |
|
27 |
|
28 /** |
|
29 This test step is to test the escape encoding of an URI. |
|
30 @internalTechnology |
|
31 @test |
|
32 */ |
|
33 class CTestEscapeEncodeUriStep : public CTestStep |
|
34 { |
|
35 |
|
36 public: |
|
37 // Construction |
|
38 CTestEscapeEncodeUriStep(); |
|
39 |
|
40 //Destruction |
|
41 ~CTestEscapeEncodeUriStep(); |
|
42 |
|
43 // TEF pure virtual |
|
44 virtual enum TVerdict doTestStepL(); |
|
45 |
|
46 protected: // Methods |
|
47 void EscEncodeAndCompareUriL(const TDesC& aDecodeComp, const TDesC& aExpEscEncodedUrl, const TDesC& aExpEncodedAut, const TDesC& aExpEncodedPath, const TDesC& aExpEncodedQuery, const TDesC& aExpEncodedNormal); |
|
48 void TestComponentEncodingL(const TDesC8& aDecodeComp, const TDesC& aExpEncodedComponent, EscapeUtils::TEscapeMode aMode ); |
|
49 |
|
50 }; |
|
51 |
|
52 #endif // __TEST_ESCAPEENCODEURI_STEP_H__ |
|
53 |
|
54 |
|
55 |