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