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/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "content/public/test/async_file_test_helper.h" | 17 #include "content/public/test/async_file_test_helper.h" |
18 #include "content/public/test/mock_special_storage_policy.h" | 18 #include "content/public/test/mock_special_storage_policy.h" |
19 #include "content/public/test/test_file_system_backend.h" | 19 #include "content/public/test/test_file_system_backend.h" |
20 #include "content/public/test/test_file_system_context.h" | 20 #include "content/public/test/test_file_system_context.h" |
21 #include "storage/browser/blob/shareable_file_reference.h" | 21 #include "storage/browser/blob/shareable_file_reference.h" |
22 #include "storage/browser/fileapi/copy_or_move_file_validator.h" | 22 #include "storage/browser/fileapi/copy_or_move_file_validator.h" |
23 #include "storage/browser/fileapi/external_mount_points.h" | 23 #include "storage/browser/fileapi/external_mount_points.h" |
24 #include "storage/browser/fileapi/file_system_backend.h" | 24 #include "storage/browser/fileapi/file_system_backend.h" |
25 #include "storage/browser/fileapi/file_system_context.h" | 25 #include "storage/browser/fileapi/file_system_context.h" |
26 #include "storage/browser/fileapi/file_system_url.h" | 26 #include "storage/browser/fileapi/file_system_url.h" |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 helper.SetUp(); | 327 helper.SetUp(); |
328 std::unique_ptr<CopyOrMoveFileValidatorFactory> factory( | 328 std::unique_ptr<CopyOrMoveFileValidatorFactory> factory( |
329 new TestCopyOrMoveFileValidatorFactory(POST_WRITE_INVALID)); | 329 new TestCopyOrMoveFileValidatorFactory(POST_WRITE_INVALID)); |
330 helper.SetMediaCopyOrMoveFileValidatorFactory(std::move(factory)); | 330 helper.SetMediaCopyOrMoveFileValidatorFactory(std::move(factory)); |
331 | 331 |
332 helper.CopyTest(base::File::FILE_ERROR_SECURITY); | 332 helper.CopyTest(base::File::FILE_ERROR_SECURITY); |
333 helper.MoveTest(base::File::FILE_ERROR_SECURITY); | 333 helper.MoveTest(base::File::FILE_ERROR_SECURITY); |
334 } | 334 } |
335 | 335 |
336 } // namespace content | 336 } // namespace content |
OLD | NEW |