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_GENERATE_FILE_URI_STEP_H__ sl@0: #define __TEST_GENERATE_FILE_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 CreatePrivateFileUriL and CreateFileUriL methods, sl@0: that generate a file uri for a file-path and name specified in the ini file. sl@0: @internalTechnology sl@0: */ sl@0: class CTestGenerateFileUriStep : public CTestStep sl@0: { sl@0: public: sl@0: CTestGenerateFileUriStep(); sl@0: sl@0: // TEF pure virtual sl@0: virtual enum TVerdict doTestStepL(); sl@0: sl@0: private: sl@0: void DoTestL(const TPtrC& aFileName, const TPtrC& aExpectedFileUri, const TPtrC& aFileType, const TPtrC& aDrive, const TInt& aCharacterSet); sl@0: sl@0: template sl@0: void GenerateFileUriAndCompareL(CUriType*& cUri8Or16, const TPtrC& aFileName, HBufC16*& aExpectedFileUri8Or16, const TUint& aFlags, const TInt& aDriveNum, const TPtrC& aFileType); sl@0: }; sl@0: sl@0: /*@{*/ sl@0: // Literal constant defined for identifying step name sl@0: _LIT(KTestGenerateFileUriStep, "TestGenerateFileUriStep"); sl@0: /*@}*/ sl@0: sl@0: #endif // __TEST_GENERATE_FILE_URI_STEP_H__