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 "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
11 #include "chrome/browser/drive/drive_uploader.h" | |
12 #include "chrome/browser/drive/fake_drive_service.h" | |
13 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" | 11 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" |
14 #include "chrome/browser/sync_file_system/drive_backend/fake_sync_worker.h" | 12 #include "chrome/browser/sync_file_system/drive_backend/fake_sync_worker.h" |
15 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h" | 13 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h" |
16 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" | 14 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" |
17 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 15 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
| 16 #include "components/drive/drive_uploader.h" |
| 17 #include "components/drive/service/fake_drive_service.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/test/test_browser_thread_bundle.h" | 19 #include "content/public/test/test_browser_thread_bundle.h" |
20 #include "net/url_request/url_request_context_getter.h" | 20 #include "net/url_request/url_request_context_getter.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 namespace sync_file_system { | 23 namespace sync_file_system { |
24 namespace drive_backend { | 24 namespace drive_backend { |
25 | 25 |
26 class SyncEngineTest : public testing::Test, | 26 class SyncEngineTest : public testing::Test, |
27 public base::SupportsWeakPtr<SyncEngineTest> { | 27 public base::SupportsWeakPtr<SyncEngineTest> { |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 TEST_F(SyncEngineTest, ProcessRemoteChange) { | 230 TEST_F(SyncEngineTest, ProcessRemoteChange) { |
231 SyncStatusCode sync_status; | 231 SyncStatusCode sync_status; |
232 storage::FileSystemURL url; | 232 storage::FileSystemURL url; |
233 sync_engine()->ProcessRemoteChange(CreateResultReceiver(&sync_status, &url)); | 233 sync_engine()->ProcessRemoteChange(CreateResultReceiver(&sync_status, &url)); |
234 WaitForWorkerTaskRunner(); | 234 WaitForWorkerTaskRunner(); |
235 EXPECT_EQ(SYNC_STATUS_OK, sync_status); | 235 EXPECT_EQ(SYNC_STATUS_OK, sync_status); |
236 } | 236 } |
237 | 237 |
238 } // namespace drive_backend | 238 } // namespace drive_backend |
239 } // namespace sync_file_system | 239 } // namespace sync_file_system |
OLD | NEW |