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 "components/drive/chromeos/file_system/get_file_for_saving_operation.h" | 5 #include "components/drive/chromeos/file_system/get_file_for_saving_operation.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/memory/ref_counted.h" |
12 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/single_thread_task_runner.h" |
13 #include "base/task_runner_util.h" | 15 #include "base/task_runner_util.h" |
14 #include "components/drive/drive.pb.h" | 16 #include "components/drive/drive.pb.h" |
15 #include "components/drive/file_change.h" | 17 #include "components/drive/file_change.h" |
16 #include "components/drive/file_errors.h" | 18 #include "components/drive/file_errors.h" |
17 #include "components/drive/file_system/operation_test_base.h" | 19 #include "components/drive/file_system/operation_test_base.h" |
18 #include "components/drive/file_write_watcher.h" | 20 #include "components/drive/file_write_watcher.h" |
19 #include "components/drive/job_scheduler.h" | 21 #include "components/drive/job_scheduler.h" |
20 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/test/test_utils.h" | 23 #include "content/public/test/test_utils.h" |
22 #include "google_apis/drive/test_util.h" | 24 #include "google_apis/drive/test_util.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 google_apis::test_util::CreateCopyResultCallback( | 153 google_apis::test_util::CreateCopyResultCallback( |
152 &error, &local_path, &entry)); | 154 &error, &local_path, &entry)); |
153 content::RunAllBlockingPoolTasksUntilIdle(); | 155 content::RunAllBlockingPoolTasksUntilIdle(); |
154 | 156 |
155 // Checks that an error is returned. | 157 // Checks that an error is returned. |
156 EXPECT_EQ(FILE_ERROR_EXISTS, error); | 158 EXPECT_EQ(FILE_ERROR_EXISTS, error); |
157 } | 159 } |
158 | 160 |
159 } // namespace file_system | 161 } // namespace file_system |
160 } // namespace drive | 162 } // namespace drive |
OLD | NEW |