os/ossrv/genericservices/httputils/Test/Integration/TestFileUriSuite/TestGenerateFileUriStep.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_GENERATE_FILE_URI_STEP_H__
17 #define __TEST_GENERATE_FILE_URI_STEP_H__
20 #include "TestFileUriServer.h"
23 The test step that tests CreatePrivateFileUriL and CreateFileUriL methods,
24 that generate a file uri for a file-path and name specified in the ini file.
27 class CTestGenerateFileUriStep : public CTestStep
30 CTestGenerateFileUriStep();
33 virtual enum TVerdict doTestStepL();
36 void DoTestL(const TPtrC& aFileName, const TPtrC& aExpectedFileUri, const TPtrC& aFileType, const TPtrC& aDrive, const TInt& aCharacterSet);
38 template <class CUriType>
39 void GenerateFileUriAndCompareL(CUriType*& cUri8Or16, const TPtrC& aFileName, HBufC16*& aExpectedFileUri8Or16, const TUint& aFlags, const TInt& aDriveNum, const TPtrC& aFileType);
43 // Literal constant defined for identifying step name
44 _LIT(KTestGenerateFileUriStep, "TestGenerateFileUriStep");
47 #endif // __TEST_GENERATE_FILE_URI_STEP_H__