OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_ | 5 #ifndef CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_ |
6 #define CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_ | 6 #define CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <set> | 11 #include <set> |
12 | 12 |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 | 14 |
15 // Common test data structures and test cases. | 15 // Common test data structures and test cases. |
16 | 16 |
17 namespace storage { | |
18 class FileSystemFileUtil; | |
19 } | |
20 | |
21 namespace content { | 17 namespace content { |
22 | 18 |
23 struct FileSystemTestCaseRecord { | 19 struct FileSystemTestCaseRecord { |
24 bool is_directory; | 20 bool is_directory; |
25 const base::FilePath::CharType path[64]; | 21 const base::FilePath::CharType path[64]; |
26 int64_t data_file_size; | 22 int64_t data_file_size; |
27 }; | 23 }; |
28 | 24 |
29 extern const FileSystemTestCaseRecord kRegularFileSystemTestCases[]; | 25 extern const FileSystemTestCaseRecord kRegularFileSystemTestCases[]; |
30 extern const size_t kRegularFileSystemTestCaseSize; | 26 extern const size_t kRegularFileSystemTestCaseSize; |
31 | 27 |
32 size_t GetRegularFileSystemTestCaseSize(); | 28 size_t GetRegularFileSystemTestCaseSize(); |
33 | 29 |
34 // Creates one file or directory specified by |record|. | 30 // Creates one file or directory specified by |record|. |
35 void SetUpOneFileSystemTestCase(const base::FilePath& root_path, | 31 void SetUpOneFileSystemTestCase(const base::FilePath& root_path, |
36 const FileSystemTestCaseRecord& record); | 32 const FileSystemTestCaseRecord& record); |
37 | 33 |
38 // Creates the files and directories specified in kRegularTestCases. | 34 // Creates the files and directories specified in kRegularTestCases. |
39 void SetUpRegularFileSystemTestCases(const base::FilePath& root_path); | 35 void SetUpRegularFileSystemTestCases(const base::FilePath& root_path); |
40 | 36 |
41 } // namespace content | 37 } // namespace content |
42 | 38 |
43 #endif // CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_ | 39 #endif // CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_ |
OLD | NEW |