| 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 "chrome/browser/sync_file_system/drive_backend/sync_engine.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 13 #include "base/single_thread_task_runner.h" |
| 13 #include "base/task_scheduler/post_task.h" | 14 #include "base/task_scheduler/post_task.h" |
| 14 #include "base/test/sequenced_worker_pool_owner.h" | 15 #include "base/test/sequenced_worker_pool_owner.h" |
| 15 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" | 17 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" |
| 17 #include "chrome/browser/sync_file_system/drive_backend/fake_sync_worker.h" | 18 #include "chrome/browser/sync_file_system/drive_backend/fake_sync_worker.h" |
| 18 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h" | 19 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h" |
| 19 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" | 20 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" |
| 20 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 21 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
| 21 #include "components/drive/drive_uploader.h" | 22 #include "components/drive/drive_uploader.h" |
| 22 #include "components/drive/service/fake_drive_service.h" | 23 #include "components/drive/service/fake_drive_service.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 TEST_F(SyncEngineTest, ProcessRemoteChange) { | 225 TEST_F(SyncEngineTest, ProcessRemoteChange) { |
| 225 SyncStatusCode sync_status; | 226 SyncStatusCode sync_status; |
| 226 storage::FileSystemURL url; | 227 storage::FileSystemURL url; |
| 227 sync_engine()->ProcessRemoteChange(CreateResultReceiver(&sync_status, &url)); | 228 sync_engine()->ProcessRemoteChange(CreateResultReceiver(&sync_status, &url)); |
| 228 WaitForWorkerTaskRunner(); | 229 WaitForWorkerTaskRunner(); |
| 229 EXPECT_EQ(SYNC_STATUS_OK, sync_status); | 230 EXPECT_EQ(SYNC_STATUS_OK, sync_status); |
| 230 } | 231 } |
| 231 | 232 |
| 232 } // namespace drive_backend | 233 } // namespace drive_backend |
| 233 } // namespace sync_file_system | 234 } // namespace sync_file_system |
| OLD | NEW |