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 "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "chrome/browser/google_apis/drive_api_parser.h" | |
12 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 11 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
13 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 12 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
14 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h" | 13 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h" |
15 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" | 14 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" |
16 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer.
h" | 15 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer.
h" |
17 #include "chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_he
lper.h" | 16 #include "chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_he
lper.h" |
18 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 17 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
19 #include "content/public/test/test_browser_thread_bundle.h" | 18 #include "content/public/test/test_browser_thread_bundle.h" |
| 19 #include "google_apis/drive/drive_api_parser.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 namespace sync_file_system { | 22 namespace sync_file_system { |
23 namespace drive_backend { | 23 namespace drive_backend { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 const char kAppID[] = "app_id"; | 27 const char kAppID[] = "app_id"; |
28 const char kUnregisteredAppID[] = "app_id unregistered"; | 28 const char kUnregisteredAppID[] = "app_id unregistered"; |
29 | 29 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 SetUpChangesInFolder(app_root_folder_id()); | 235 SetUpChangesInFolder(app_root_folder_id()); |
236 | 236 |
237 ListChangesTask list_changes(this); | 237 ListChangesTask list_changes(this); |
238 EXPECT_EQ(SYNC_STATUS_OK, RunTask(&list_changes)); | 238 EXPECT_EQ(SYNC_STATUS_OK, RunTask(&list_changes)); |
239 | 239 |
240 EXPECT_EQ(num_dirty_trackers + 4, CountDirtyTracker()); | 240 EXPECT_EQ(num_dirty_trackers + 4, CountDirtyTracker()); |
241 } | 241 } |
242 | 242 |
243 } // namespace drive_backend | 243 } // namespace drive_backend |
244 } // namespace sync_file_system | 244 } // namespace sync_file_system |
OLD | NEW |