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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.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/async_file_test_helper.h" | |
19 #include "content/public/test/mock_special_storage_policy.h" | |
20 #include "content/public/test/test_file_system_backend.h" | |
21 #include "content/public/test/test_file_system_context.h" | |
22 #include "storage/browser/blob/shareable_file_reference.h" | 18 #include "storage/browser/blob/shareable_file_reference.h" |
23 #include "storage/browser/fileapi/copy_or_move_file_validator.h" | 19 #include "storage/browser/fileapi/copy_or_move_file_validator.h" |
24 #include "storage/browser/fileapi/external_mount_points.h" | 20 #include "storage/browser/fileapi/external_mount_points.h" |
25 #include "storage/browser/fileapi/file_system_backend.h" | 21 #include "storage/browser/fileapi/file_system_backend.h" |
26 #include "storage/browser/fileapi/file_system_context.h" | 22 #include "storage/browser/fileapi/file_system_context.h" |
27 #include "storage/browser/fileapi/file_system_url.h" | 23 #include "storage/browser/fileapi/file_system_url.h" |
28 #include "storage/browser/fileapi/isolated_context.h" | 24 #include "storage/browser/fileapi/isolated_context.h" |
| 25 #include "storage/browser/test/async_file_test_helper.h" |
| 26 #include "storage/browser/test/mock_special_storage_policy.h" |
| 27 #include "storage/browser/test/test_file_system_backend.h" |
| 28 #include "storage/browser/test/test_file_system_context.h" |
29 #include "storage/common/fileapi/file_system_util.h" | 29 #include "storage/common/fileapi/file_system_util.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 | 31 |
32 using content::AsyncFileTestHelper; | 32 using content::AsyncFileTestHelper; |
33 using storage::CopyOrMoveFileValidator; | 33 using storage::CopyOrMoveFileValidator; |
34 using storage::CopyOrMoveFileValidatorFactory; | 34 using storage::CopyOrMoveFileValidatorFactory; |
35 using storage::FileSystemURL; | 35 using storage::FileSystemURL; |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 | 38 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 helper.SetUp(); | 328 helper.SetUp(); |
329 std::unique_ptr<CopyOrMoveFileValidatorFactory> factory( | 329 std::unique_ptr<CopyOrMoveFileValidatorFactory> factory( |
330 new TestCopyOrMoveFileValidatorFactory(POST_WRITE_INVALID)); | 330 new TestCopyOrMoveFileValidatorFactory(POST_WRITE_INVALID)); |
331 helper.SetMediaCopyOrMoveFileValidatorFactory(std::move(factory)); | 331 helper.SetMediaCopyOrMoveFileValidatorFactory(std::move(factory)); |
332 | 332 |
333 helper.CopyTest(base::File::FILE_ERROR_SECURITY); | 333 helper.CopyTest(base::File::FILE_ERROR_SECURITY); |
334 helper.MoveTest(base::File::FILE_ERROR_SECURITY); | 334 helper.MoveTest(base::File::FILE_ERROR_SECURITY); |
335 } | 335 } |
336 | 336 |
337 } // namespace content | 337 } // namespace content |
OLD | NEW |