sl@0: // Copyright (c) 2004-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: // sl@0: sl@0: #ifndef __TEST_GET_FILENAME_FROM_URI_STEP_H__ sl@0: #define __TEST_GET_FILENAME_FROM_URI_STEP_H__ sl@0: sl@0: // User Include sl@0: #include "TestFileUriServer.h" sl@0: sl@0: /** sl@0: The test step that tests GetFileNameL method, that obtains the sl@0: file-path and name, for a URI specified in the ini file. sl@0: @internalTechnology sl@0: */ sl@0: class CTestGetFileNameFromUriStep : public CTestStep sl@0: { sl@0: public: sl@0: CTestGetFileNameFromUriStep(); sl@0: sl@0: // TEF pure virtual sl@0: virtual enum TVerdict doTestStepL(); sl@0: sl@0: private: sl@0: void DoTestL(const TPtrC& aFileUri, const TPtrC& aExpectedFileName, const TPtrC& aFileType, TPtrC& aDrive, const TInt& aCharacterSet); sl@0: sl@0: template sl@0: void ExtractFileNameAndCompareL(TUriParserType& uriParser8Or16, HBufCType*& fileUri8Or16, const TPtrC& aFileUri, const TFileName& aFullyQualifiedName, const TPtrC& aFileType, const TBool& aFileNotFound); sl@0: sl@0: TInt CreateFullyQualifiedName(const TPtrC& aRelativeName, const TPtrC& aDrive, TFileName& aFullyQualifiedName); sl@0: sl@0: }; sl@0: sl@0: /*@{*/ sl@0: // Literal constant defined for identifying step name sl@0: _LIT(KTestGetFileNameFromUriStep, "TestGetFileNameFromUriStep"); sl@0: /*@}*/ sl@0: sl@0: #endif // __TEST_GET_FILENAME_FROM_URI_STEP_H__