os/ossrv/genericservices/httputils/Test/Integration/TestFileUriSuite/TestGetFileNameFromUriStep.h
Update contrib.
1 // Copyright (c) 2004-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.
16 #ifndef __TEST_GET_FILENAME_FROM_URI_STEP_H__
17 #define __TEST_GET_FILENAME_FROM_URI_STEP_H__
20 #include "TestFileUriServer.h"
23 The test step that tests GetFileNameL method, that obtains the
24 file-path and name, for a URI specified in the ini file.
27 class CTestGetFileNameFromUriStep : public CTestStep
30 CTestGetFileNameFromUriStep();
33 virtual enum TVerdict doTestStepL();
36 void DoTestL(const TPtrC& aFileUri, const TPtrC& aExpectedFileName, const TPtrC& aFileType, TPtrC& aDrive, const TInt& aCharacterSet);
38 template <class TUriParserType, class HBufCType>
39 void ExtractFileNameAndCompareL(TUriParserType& uriParser8Or16, HBufCType*& fileUri8Or16, const TPtrC& aFileUri, const TFileName& aFullyQualifiedName, const TPtrC& aFileType, const TBool& aFileNotFound);
41 TInt CreateFullyQualifiedName(const TPtrC& aRelativeName, const TPtrC& aDrive, TFileName& aFullyQualifiedName);
46 // Literal constant defined for identifying step name
47 _LIT(KTestGetFileNameFromUriStep, "TestGetFileNameFromUriStep");
50 #endif // __TEST_GET_FILENAME_FROM_URI_STEP_H__