OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <memory> | 5 #include <memory> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/single_thread_task_runner.h" |
11 #include "base/test/null_task_runner.h" | 12 #include "base/test/null_task_runner.h" |
12 #include "content/browser/child_process_security_policy_impl.h" | 13 #include "content/browser/child_process_security_policy_impl.h" |
13 #include "content/browser/fileapi/browser_file_system_helper.h" | 14 #include "content/browser/fileapi/browser_file_system_helper.h" |
14 #include "content/public/common/drop_data.h" | 15 #include "content/public/common/drop_data.h" |
15 #include "net/base/filename_util.h" | 16 #include "net/base/filename_util.h" |
16 #include "storage/browser/fileapi/external_mount_points.h" | 17 #include "storage/browser/fileapi/external_mount_points.h" |
17 #include "storage/browser/fileapi/file_system_options.h" | 18 #include "storage/browser/fileapi/file_system_options.h" |
18 #include "storage/browser/fileapi/file_system_url.h" | 19 #include "storage/browser/fileapi/file_system_url.h" |
19 #include "storage/browser/fileapi/isolated_context.h" | 20 #include "storage/browser/fileapi/isolated_context.h" |
20 #include "storage/common/fileapi/file_system_types.h" | 21 #include "storage/common/fileapi/file_system_types.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // Verify that there is still no access for |kOtherFile|. | 179 // Verify that there is still no access for |kOtherFile|. |
179 EXPECT_FALSE(p->CanReadFile(kRendererID, kOtherFile)); | 180 EXPECT_FALSE(p->CanReadFile(kRendererID, kOtherFile)); |
180 EXPECT_FALSE(p->CanCreateReadWriteFile(kRendererID, kOtherFile)); | 181 EXPECT_FALSE(p->CanCreateReadWriteFile(kRendererID, kOtherFile)); |
181 EXPECT_FALSE( | 182 EXPECT_FALSE( |
182 p->CanCommitURL(kRendererID, net::FilePathToFileURL(kOtherFile))); | 183 p->CanCommitURL(kRendererID, net::FilePathToFileURL(kOtherFile))); |
183 | 184 |
184 p->Remove(kRendererID); | 185 p->Remove(kRendererID); |
185 } | 186 } |
186 | 187 |
187 } // namespace content | 188 } // namespace content |
OLD | NEW |