|
1 // Copyright (c) 2005-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 // Tests EikFileUtils APIs. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent - Internal Symbian test code |
|
21 */ |
|
22 |
|
23 #if (!defined __TFILEUTILS_H__) |
|
24 #define __TFILEUTILS_H__ |
|
25 |
|
26 |
|
27 #include <test/testexecutestepbase.h> |
|
28 #include "appfwk_test_AppUi.h" |
|
29 |
|
30 |
|
31 //! A CFileUtilsStep test class. |
|
32 /** |
|
33 Tests EikFileUtils APIs. |
|
34 */ |
|
35 class CFileUtilsStep : public CTmsTestStep |
|
36 { |
|
37 public: |
|
38 CFileUtilsStep(); |
|
39 ~CFileUtilsStep(); |
|
40 virtual TVerdict doTestStepL(); |
|
41 void ConstructAppL(CEikonEnv* aEikEnv); |
|
42 private: |
|
43 }; |
|
44 |
|
45 |
|
46 //! CTFileUtilsAppUi |
|
47 /** |
|
48 UI class for test class CFileUtilsStep. |
|
49 */ |
|
50 class CTFileUtilsAppUi : public CTestAppUi |
|
51 { |
|
52 public: |
|
53 CTFileUtilsAppUi(CTmsTestStep* aStep); |
|
54 void ConstructL(); |
|
55 ~CTFileUtilsAppUi(); |
|
56 protected: //from CTestAppUi |
|
57 virtual void RunTestStepL(TInt aNumStep); |
|
58 private: // framework |
|
59 private://test functions |
|
60 void TestFileOperations(); |
|
61 void TestFileOperations2(); |
|
62 void TestFileOperations3(); |
|
63 void TestFileOperations4(); |
|
64 void TestUidTypeMatches(); |
|
65 void TestAbbreviateFileName(); |
|
66 TFileName FolderNameFromFullName(const TDesC& aFullName); |
|
67 void TestValidFolderName(); |
|
68 void TestDiskListL(); |
|
69 void TestSortByTableL(); |
|
70 }; |
|
71 |
|
72 _LIT(KFileUtilsStep,"TFileUtils"); |
|
73 |
|
74 #endif |
|
75 |
|
76 |