os/ossrv/genericservices/httputils/Test/Integration/TestInetProtUtilsSuite/inc/TestEscapeEncodeUriStep.h
Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Contains declaration of CTestEsacpeEncodeUriStep class
18 #ifndef __TEST_ESCAPEENCODEURI_STEP_H__
19 #define __TEST_ESCAPEENCODEURI_STEP_H__
21 #include "TestInetProUtilsUriServer.h"
23 #include <escapeutils.h>
25 // Literal constant defined for identifying step name
26 _LIT(KTestEscapeEncodeUriStep, "TestEscapeEncodeUriStep");
29 This test step is to test the escape encoding of an URI.
33 class CTestEscapeEncodeUriStep : public CTestStep
38 CTestEscapeEncodeUriStep();
41 ~CTestEscapeEncodeUriStep();
44 virtual enum TVerdict doTestStepL();
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 );
52 #endif // __TEST_ESCAPEENCODEURI_STEP_H__