| 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/list_changes_task.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/list_changes_task.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
| 12 #include "base/format_macros.h" | 12 #include "base/format_macros.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 16 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
| 17 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" | 17 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" |
| 18 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 18 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
| 19 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h" | 19 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h" |
| 20 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" | 20 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" |
| 21 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer.
h" | 21 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer.
h" |
| 22 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" | 22 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" |
| 23 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 23 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
| 24 #include "content/public/test/test_browser_thread_bundle.h" | 24 #include "content/public/test/test_browser_thread_bundle.h" |
| 25 #include "google_apis/drive/drive_api_parser.h" | 25 #include "google_apis/drive/drive_api_parser.h" |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 SetUpChangesInFolder(app_root_folder_id()); | 242 SetUpChangesInFolder(app_root_folder_id()); |
| 243 | 243 |
| 244 EXPECT_EQ(SYNC_STATUS_OK, RunTask(std::unique_ptr<SyncTask>( | 244 EXPECT_EQ(SYNC_STATUS_OK, RunTask(std::unique_ptr<SyncTask>( |
| 245 new ListChangesTask(GetSyncEngineContext())))); | 245 new ListChangesTask(GetSyncEngineContext())))); |
| 246 | 246 |
| 247 EXPECT_EQ(num_dirty_trackers + 4, CountDirtyTracker()); | 247 EXPECT_EQ(num_dirty_trackers + 4, CountDirtyTracker()); |
| 248 } | 248 } |
| 249 | 249 |
| 250 } // namespace drive_backend | 250 } // namespace drive_backend |
| 251 } // namespace sync_file_system | 251 } // namespace sync_file_system |
| OLD | NEW |