Load Team Drive resource at Full Fetch

Desktop / Chromium - yamaguchi [chromium.org] - 20 April 2017 21:58 EDT

By this change, full fetch will query all TeamDrive resouces, so that ChangeListProcessor will create/update a root directory for each Team Drive. Then files under Team Drive will be stored under those directories instead of /others/.

BUG=711287 TEST=unit_tests --gtest_filter=ChangeListLoaderTest.*:JobSchedulerTest.*

Review-Url: https://codereview.chromium.org/2817883002 Cr-Commit-Position: refs/heads/master@{#466222}

cbc7bdb Load Team Drive resource at Full Fetch.
.../drive_backend/drive_service_on_worker.cc | 20 ++++++
.../drive_backend/drive_service_on_worker.h | 6 ++
.../drive_backend/drive_service_wrapper.cc | 7 +++
.../drive_backend/drive_service_wrapper.h | 4 ++
components/drive/change_list_loader_unittest.cc | 65 +++++++++++++++++++
components/drive/chromeos/change_list_loader.cc | 46 ++++++++++++--
components/drive/job_list.cc | 6 ++
components/drive/job_list.h | 2 +
components/drive/job_scheduler.cc | 45 ++++++++++++++
components/drive/job_scheduler.h | 17 +++++
components/drive/job_scheduler_unittest.cc | 49 +++++++++++++++
components/drive/service/drive_api_service.cc | 35 +++++++++++
components/drive/service/drive_api_service.h | 5 ++
components/drive/service/drive_service_interface.h | 19 ++++++
components/drive/service/dummy_drive_service.cc | 12 ++++
components/drive/service/dummy_drive_service.h | 5 ++
components/drive/service/fake_drive_service.cc | 72 ++++++++++++++++++++++
components/drive/service/fake_drive_service.h | 23 +++++++
.../drive/service/fake_drive_service_unittest.cc | 46 ++++++++++++++
google_apis/drive/drive_api_requests.h | 4 +-
20 files changed, 480 insertions(+), 8 deletions(-)

Upstream: git.chromium.org


  • Share