OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_worker.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/sync_worker.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/location.h" | 10 #include "base/location.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/single_thread_task_runner.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "chrome/browser/extensions/test_extension_service.h" | 16 #include "chrome/browser/extensions/test_extension_service.h" |
17 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 17 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
18 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 18 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
19 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" | 19 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" |
20 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" | 20 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" |
21 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" | 21 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" |
22 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 22 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
23 #include "components/drive/drive_uploader.h" | 23 #include "components/drive/drive_uploader.h" |
24 #include "components/drive/service/fake_drive_service.h" | 24 #include "components/drive/service/fake_drive_service.h" |
25 #include "content/public/test/test_browser_thread_bundle.h" | 25 #include "content/public/test/test_browser_thread_bundle.h" |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 FROM_HERE, std::unique_ptr<SyncTask>(new MockSyncTask(true)), | 376 FROM_HERE, std::unique_ptr<SyncTask>(new MockSyncTask(true)), |
377 SyncTaskManager::PRIORITY_MED, | 377 SyncTaskManager::PRIORITY_MED, |
378 base::Bind(&SyncWorkerTest::CheckServiceState, AsWeakPtr(), | 378 base::Bind(&SyncWorkerTest::CheckServiceState, AsWeakPtr(), |
379 SYNC_STATUS_OK, REMOTE_SERVICE_OK)); | 379 SYNC_STATUS_OK, REMOTE_SERVICE_OK)); |
380 | 380 |
381 base::RunLoop().RunUntilIdle(); | 381 base::RunLoop().RunUntilIdle(); |
382 } | 382 } |
383 | 383 |
384 } // namespace drive_backend | 384 } // namespace drive_backend |
385 } // namespace sync_file_system | 385 } // namespace sync_file_system |
OLD | NEW |