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/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "content/public/test/test_file_system_options.h" | 17 #include "content/public/test/test_file_system_options.h" |
18 #include "storage/browser/fileapi/file_system_backend.h" | 18 #include "storage/browser/fileapi/file_system_backend.h" |
19 #include "storage/browser/fileapi/file_system_url.h" | 19 #include "storage/browser/fileapi/file_system_url.h" |
20 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h" | 20 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h" |
21 #include "storage/common/fileapi/file_system_util.h" | 21 #include "storage/common/fileapi/file_system_util.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
24 | 24 |
25 using storage::FileSystemURL; | 25 using storage::FileSystemURL; |
26 using storage::SandboxFileSystemBackend; | 26 using storage::SandboxFileSystemBackend; |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 storage::OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT, | 301 storage::OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT, |
302 &root_path)); | 302 &root_path)); |
303 base::FilePath expected = file_system_path().AppendASCII( | 303 base::FilePath expected = file_system_path().AppendASCII( |
304 kRootPathFileURITestCases[i].expected_path); | 304 kRootPathFileURITestCases[i].expected_path); |
305 EXPECT_EQ(expected.value(), root_path.value()); | 305 EXPECT_EQ(expected.value(), root_path.value()); |
306 EXPECT_TRUE(base::DirectoryExists(root_path)); | 306 EXPECT_TRUE(base::DirectoryExists(root_path)); |
307 } | 307 } |
308 } | 308 } |
309 | 309 |
310 } // namespace content | 310 } // namespace content |
OLD | NEW |