Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
jam
2014/02/27 17:00:19
since this file moved from a fileapi directory to
| |
| 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 WEBKIT_BROWSER_FILEAPI_TEST_FILE_SET_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_TEST_FILE_SET_H_ |
|
jam
2014/02/27 17:00:19
nit: update
| |
| 6 #define WEBKIT_BROWSER_FILEAPI_TEST_FILE_SET_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_TEST_FILE_SET_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 | 11 |
| 12 // Common test data structures and test cases. | 12 // Common test data structures and test cases. |
| 13 | 13 |
| 14 namespace fileapi { | 14 namespace fileapi { |
|
jam
2014/02/27 17:00:19
nit: content namespace in src\content, also no nes
| |
| 15 | 15 |
| 16 class FileSystemFileUtil; | 16 class FileSystemFileUtil; |
| 17 | 17 |
| 18 namespace test { | 18 namespace test { |
| 19 | 19 |
| 20 struct TestCaseRecord { | 20 struct TestCaseRecord { |
| 21 bool is_directory; | 21 bool is_directory; |
| 22 const base::FilePath::CharType path[64]; | 22 const base::FilePath::CharType path[64]; |
| 23 int64 data_file_size; | 23 int64 data_file_size; |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 extern const TestCaseRecord kRegularTestCases[]; | 26 extern const TestCaseRecord kRegularTestCases[]; |
| 27 extern const size_t kRegularTestCaseSize; | 27 extern const size_t kRegularTestCaseSize; |
| 28 | 28 |
| 29 size_t GetRegularTestCaseSize(); | 29 size_t GetRegularTestCaseSize(); |
| 30 | 30 |
| 31 // Creates one file or directory specified by |record|. | 31 // Creates one file or directory specified by |record|. |
| 32 void SetUpOneTestCase(const base::FilePath& root_path, | 32 void SetUpOneTestCase(const base::FilePath& root_path, |
|
ericu
2014/02/27 18:27:20
Once this is in the content namespace, these funct
| |
| 33 const TestCaseRecord& record); | 33 const TestCaseRecord& record); |
| 34 | 34 |
| 35 // Creates the files and directories specified in kRegularTestCases. | 35 // Creates the files and directories specified in kRegularTestCases. |
| 36 void SetUpRegularTestCases(const base::FilePath& root_path); | 36 void SetUpRegularTestCases(const base::FilePath& root_path); |
| 37 | 37 |
| 38 } // namespace test | 38 } // namespace test |
| 39 | 39 |
| 40 } // namespace fileapi | 40 } // namespace fileapi |
| 41 | 41 |
| 42 #endif // WEBKIT_BROWSER_FILEAPI_TEST_FILE_SET_H_ | 42 #endif // WEBKIT_BROWSER_FILEAPI_TEST_FILE_SET_H_ |
| OLD | NEW |