|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __TEST_GENERATE_FILE_URI_STEP_H__ |
|
17 #define __TEST_GENERATE_FILE_URI_STEP_H__ |
|
18 |
|
19 // User Include |
|
20 #include "TestFileUriServer.h" |
|
21 |
|
22 /** |
|
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. |
|
25 @internalTechnology |
|
26 */ |
|
27 class CTestGenerateFileUriStep : public CTestStep |
|
28 { |
|
29 public: |
|
30 CTestGenerateFileUriStep(); |
|
31 |
|
32 // TEF pure virtual |
|
33 virtual enum TVerdict doTestStepL(); |
|
34 |
|
35 private: |
|
36 void DoTestL(const TPtrC& aFileName, const TPtrC& aExpectedFileUri, const TPtrC& aFileType, const TPtrC& aDrive, const TInt& aCharacterSet); |
|
37 |
|
38 template <class CUriType> |
|
39 void GenerateFileUriAndCompareL(CUriType*& cUri8Or16, const TPtrC& aFileName, HBufC16*& aExpectedFileUri8Or16, const TUint& aFlags, const TInt& aDriveNum, const TPtrC& aFileType); |
|
40 }; |
|
41 |
|
42 /*@{*/ |
|
43 // Literal constant defined for identifying step name |
|
44 _LIT(KTestGenerateFileUriStep, "TestGenerateFileUriStep"); |
|
45 /*@}*/ |
|
46 |
|
47 #endif // __TEST_GENERATE_FILE_URI_STEP_H__ |