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 <map> | 7 #include <map> |
8 #include <queue> | 8 #include <queue> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
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/location.h" | 14 #include "base/location.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/message_loop/message_loop.h" |
16 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
17 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
18 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
19 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
20 #include "storage/browser/fileapi/copy_or_move_file_validator.h" | 21 #include "storage/browser/fileapi/copy_or_move_file_validator.h" |
21 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h" | 22 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h" |
22 #include "storage/browser/fileapi/file_stream_reader.h" | 23 #include "storage/browser/fileapi/file_stream_reader.h" |
23 #include "storage/browser/fileapi/file_stream_writer.h" | 24 #include "storage/browser/fileapi/file_stream_writer.h" |
24 #include "storage/browser/fileapi/file_system_backend.h" | 25 #include "storage/browser/fileapi/file_system_backend.h" |
25 #include "storage/browser/fileapi/file_system_context.h" | 26 #include "storage/browser/fileapi/file_system_context.h" |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 | 869 |
869 base::File::Error error = base::File::FILE_ERROR_FAILED; | 870 base::File::Error error = base::File::FILE_ERROR_FAILED; |
870 base::RunLoop run_loop; | 871 base::RunLoop run_loop; |
871 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error)); | 872 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error)); |
872 run_loop.Run(); | 873 run_loop.Run(); |
873 | 874 |
874 EXPECT_EQ(base::File::FILE_ERROR_ABORT, error); | 875 EXPECT_EQ(base::File::FILE_ERROR_ABORT, error); |
875 } | 876 } |
876 | 877 |
877 } // namespace content | 878 } // namespace content |
OLD | NEW |