OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "storage/browser/fileapi/sandbox_file_system_backend.h" | 5 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
11 | 11 |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/test/scoped_task_environment.h" | 16 #include "base/test/scoped_task_environment.h" |
17 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "content/public/test/test_file_system_options.h" | |
19 #include "storage/browser/fileapi/file_system_backend.h" | 18 #include "storage/browser/fileapi/file_system_backend.h" |
20 #include "storage/browser/fileapi/file_system_url.h" | 19 #include "storage/browser/fileapi/file_system_url.h" |
21 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h" | 20 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h" |
| 21 #include "storage/browser/test/test_file_system_options.h" |
22 #include "storage/common/fileapi/file_system_util.h" | 22 #include "storage/common/fileapi/file_system_util.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
25 | 25 |
26 using storage::FileSystemURL; | 26 using storage::FileSystemURL; |
27 using storage::SandboxFileSystemBackend; | 27 using storage::SandboxFileSystemBackend; |
28 using storage::SandboxFileSystemBackendDelegate; | 28 using storage::SandboxFileSystemBackendDelegate; |
29 | 29 |
30 // PS stands for path separator. | 30 // PS stands for path separator. |
31 #if defined(FILE_PATH_USES_WIN_SEPARATORS) | 31 #if defined(FILE_PATH_USES_WIN_SEPARATORS) |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 storage::OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT, | 302 storage::OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT, |
303 &root_path)); | 303 &root_path)); |
304 base::FilePath expected = file_system_path().AppendASCII( | 304 base::FilePath expected = file_system_path().AppendASCII( |
305 kRootPathFileURITestCases[i].expected_path); | 305 kRootPathFileURITestCases[i].expected_path); |
306 EXPECT_EQ(expected.value(), root_path.value()); | 306 EXPECT_EQ(expected.value(), root_path.value()); |
307 EXPECT_TRUE(base::DirectoryExists(root_path)); | 307 EXPECT_TRUE(base::DirectoryExists(root_path)); |
308 } | 308 } |
309 } | 309 } |
310 | 310 |
311 } // namespace content | 311 } // namespace content |
OLD | NEW |