diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-03 11:54:18 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-03 11:54:18 +0000 |
commit | 4393c30f8a9021f94c9c9c9dc4f92c8f1f07ae9d (patch) | |
tree | bf08dcda492c25a2988d1ec1d31fad259afa7c72 /chrome/browser/drive | |
parent | 3b0dbfb72c3457757049e7dd661e7c2d94076e32 (diff) | |
download | chromium_src-4393c30f8a9021f94c9c9c9dc4f92c8f1f07ae9d.zip chromium_src-4393c30f8a9021f94c9c9c9dc4f92c8f1f07ae9d.tar.gz chromium_src-4393c30f8a9021f94c9c9c9dc4f92c8f1f07ae9d.tar.bz2 |
drive: Deprecate FakeDriveService::LoadAccountMetadataForWapi
Mark the method as deprecated.
Set account metadata values in ctor.
BUG=334544
TEST=unit_tests
Review URL: https://codereview.chromium.org/221773002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/drive')
-rw-r--r-- | chrome/browser/drive/fake_drive_service.cc | 5 | ||||
-rw-r--r-- | chrome/browser/drive/fake_drive_service.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/drive/fake_drive_service.cc b/chrome/browser/drive/fake_drive_service.cc index 4605911..8ac7e34 100644 --- a/chrome/browser/drive/fake_drive_service.cc +++ b/chrome/browser/drive/fake_drive_service.cc @@ -178,6 +178,11 @@ FakeDriveService::FakeDriveService() offline_(false), never_return_all_resource_list_(false) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); + + about_resource_->set_largest_change_id(654321); + about_resource_->set_quota_bytes_total(9876543210); + about_resource_->set_quota_bytes_used(6789012345); + about_resource_->set_root_folder_id(GetRootResourceId()); } FakeDriveService::~FakeDriveService() { diff --git a/chrome/browser/drive/fake_drive_service.h b/chrome/browser/drive/fake_drive_service.h index b38a1f3..5547a6c 100644 --- a/chrome/browser/drive/fake_drive_service.h +++ b/chrome/browser/drive/fake_drive_service.h @@ -32,6 +32,8 @@ class FakeDriveService : public DriveServiceInterface { // Loads the resource list for WAPI. Returns true on success. bool LoadResourceListForWapi(const std::string& relative_path); + // DEPRECATED DO NOT USE + // // Loads the account metadata for WAPI. Returns true on success. Also adds // the largest changestamp in the account metadata to the existing // entries. The changestamp information will be used to generate change |