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 #include "content/test/fileapi_test_file_set.h" | 5 #include "content/test/fileapi_test_file_set.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/files/file.h" | 12 #include "base/files/file.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
15 #include "base/rand_util.h" | 16 #include "base/rand_util.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 const FileSystemTestCaseRecord kRegularFileSystemTestCases[] = { | 21 const FileSystemTestCaseRecord kRegularFileSystemTestCases[] = { |
21 {true, FILE_PATH_LITERAL("dir a"), 0}, | 22 {true, FILE_PATH_LITERAL("dir a"), 0}, |
22 {true, FILE_PATH_LITERAL("dir a/dir A"), 0}, | 23 {true, FILE_PATH_LITERAL("dir a/dir A"), 0}, |
23 {true, FILE_PATH_LITERAL("dir a/dir d"), 0}, | 24 {true, FILE_PATH_LITERAL("dir a/dir d"), 0}, |
24 {true, FILE_PATH_LITERAL("dir a/dir d/dir e"), 0}, | 25 {true, FILE_PATH_LITERAL("dir a/dir d/dir e"), 0}, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 62 |
62 | 63 |
63 void SetUpRegularFileSystemTestCases(const base::FilePath& root_path) { | 64 void SetUpRegularFileSystemTestCases(const base::FilePath& root_path) { |
64 for (size_t i = 0; i < arraysize(kRegularFileSystemTestCases); ++i) { | 65 for (size_t i = 0; i < arraysize(kRegularFileSystemTestCases); ++i) { |
65 SCOPED_TRACE(testing::Message() << "Creating kRegularTestCases " << i); | 66 SCOPED_TRACE(testing::Message() << "Creating kRegularTestCases " << i); |
66 SetUpOneFileSystemTestCase(root_path, kRegularFileSystemTestCases[i]); | 67 SetUpOneFileSystemTestCase(root_path, kRegularFileSystemTestCases[i]); |
67 } | 68 } |
68 } | 69 } |
69 | 70 |
70 } // namespace content | 71 } // namespace content |
OLD | NEW |