sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Contains declaration of CTestEsacpeEncodeUriStep class sl@0: // sl@0: // sl@0: sl@0: #ifndef __TEST_ESCAPEENCODEURI_STEP_H__ sl@0: #define __TEST_ESCAPEENCODEURI_STEP_H__ sl@0: sl@0: #include "TestInetProUtilsUriServer.h" sl@0: // System Include sl@0: #include sl@0: sl@0: // Literal constant defined for identifying step name sl@0: _LIT(KTestEscapeEncodeUriStep, "TestEscapeEncodeUriStep"); sl@0: sl@0: /** sl@0: This test step is to test the escape encoding of an URI. sl@0: @internalTechnology sl@0: @test sl@0: */ sl@0: class CTestEscapeEncodeUriStep : public CTestStep sl@0: { sl@0: sl@0: public: sl@0: // Construction sl@0: CTestEscapeEncodeUriStep(); sl@0: sl@0: //Destruction sl@0: ~CTestEscapeEncodeUriStep(); sl@0: sl@0: // TEF pure virtual sl@0: virtual enum TVerdict doTestStepL(); sl@0: sl@0: protected: // Methods sl@0: void EscEncodeAndCompareUriL(const TDesC& aDecodeComp, const TDesC& aExpEscEncodedUrl, const TDesC& aExpEncodedAut, const TDesC& aExpEncodedPath, const TDesC& aExpEncodedQuery, const TDesC& aExpEncodedNormal); sl@0: void TestComponentEncodingL(const TDesC8& aDecodeComp, const TDesC& aExpEncodedComponent, EscapeUtils::TEscapeMode aMode ); sl@0: sl@0: }; sl@0: sl@0: #endif // __TEST_ESCAPEENCODEURI_STEP_H__ sl@0: sl@0: sl@0: