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 "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
13 #include "chrome/browser/drive/drive_uploader.h" | |
14 #include "chrome/browser/drive/fake_drive_service.h" | |
15 #include "chrome/browser/extensions/test_extension_service.h" | 13 #include "chrome/browser/extensions/test_extension_service.h" |
16 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 14 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
17 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 15 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
18 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" | 16 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" |
19 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" | 17 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" |
20 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" | 18 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" |
21 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 19 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
| 20 #include "components/drive/drive_uploader.h" |
| 21 #include "components/drive/service/fake_drive_service.h" |
22 #include "content/public/test/test_browser_thread_bundle.h" | 22 #include "content/public/test/test_browser_thread_bundle.h" |
23 #include "extensions/common/extension.h" | 23 #include "extensions/common/extension.h" |
24 #include "extensions/common/extension_builder.h" | 24 #include "extensions/common/extension_builder.h" |
25 #include "extensions/common/extension_set.h" | 25 #include "extensions/common/extension_set.h" |
26 #include "extensions/common/value_builder.h" | 26 #include "extensions/common/value_builder.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" | 28 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" |
29 #include "third_party/leveldatabase/src/include/leveldb/env.h" | 29 #include "third_party/leveldatabase/src/include/leveldb/env.h" |
30 | 30 |
31 namespace sync_file_system { | 31 namespace sync_file_system { |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 base::Bind(&SyncWorkerTest::CheckServiceState, | 379 base::Bind(&SyncWorkerTest::CheckServiceState, |
380 AsWeakPtr(), | 380 AsWeakPtr(), |
381 SYNC_STATUS_OK, | 381 SYNC_STATUS_OK, |
382 REMOTE_SERVICE_OK)); | 382 REMOTE_SERVICE_OK)); |
383 | 383 |
384 base::RunLoop().RunUntilIdle(); | 384 base::RunLoop().RunUntilIdle(); |
385 } | 385 } |
386 | 386 |
387 } // namespace drive_backend | 387 } // namespace drive_backend |
388 } // namespace sync_file_system | 388 } // namespace sync_file_system |
OLD | NEW |