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 "webkit/browser/fileapi/sandbox_file_system_backend.h" | 5 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop/message_loop_proxy.h" | 13 #include "base/message_loop/message_loop_proxy.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "content/public/test/test_file_system_options.h" | 15 #include "content/public/test/test_file_system_options.h" |
| 16 #include "storage/browser/fileapi/file_system_backend.h" |
| 17 #include "storage/browser/fileapi/file_system_url.h" |
| 18 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h" |
16 #include "storage/common/fileapi/file_system_util.h" | 19 #include "storage/common/fileapi/file_system_util.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "url/gurl.h" | 21 #include "url/gurl.h" |
19 #include "webkit/browser/fileapi/file_system_backend.h" | |
20 #include "webkit/browser/fileapi/file_system_url.h" | |
21 #include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h" | |
22 | 22 |
23 using storage::FileSystemURL; | 23 using storage::FileSystemURL; |
24 using storage::SandboxFileSystemBackend; | 24 using storage::SandboxFileSystemBackend; |
25 using storage::SandboxFileSystemBackendDelegate; | 25 using storage::SandboxFileSystemBackendDelegate; |
26 | 26 |
27 // PS stands for path separator. | 27 // PS stands for path separator. |
28 #if defined(FILE_PATH_USES_WIN_SEPARATORS) | 28 #if defined(FILE_PATH_USES_WIN_SEPARATORS) |
29 #define PS "\\" | 29 #define PS "\\" |
30 #else | 30 #else |
31 #define PS "/" | 31 #define PS "/" |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 storage::OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT, | 305 storage::OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT, |
306 &root_path)); | 306 &root_path)); |
307 base::FilePath expected = file_system_path().AppendASCII( | 307 base::FilePath expected = file_system_path().AppendASCII( |
308 kRootPathFileURITestCases[i].expected_path); | 308 kRootPathFileURITestCases[i].expected_path); |
309 EXPECT_EQ(expected.value(), root_path.value()); | 309 EXPECT_EQ(expected.value(), root_path.value()); |
310 EXPECT_TRUE(base::DirectoryExists(root_path)); | 310 EXPECT_TRUE(base::DirectoryExists(root_path)); |
311 } | 311 } |
312 } | 312 } |
313 | 313 |
314 } // namespace content | 314 } // namespace content |
OLD | NEW |