Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1768)

Unified Diff: chrome/browser/google_apis/fake_drive_service.h

Issue 12017026: drive: Add support for pagenation to FakeDriveService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/google_apis/fake_drive_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/fake_drive_service.h
diff --git a/chrome/browser/google_apis/fake_drive_service.h b/chrome/browser/google_apis/fake_drive_service.h
index 8db23261e9eeb0f3d5e236cfd7dc7db29ec04835..0a1eaedc8626707463db42abcfca4e99b01afaf7 100644
--- a/chrome/browser/google_apis/fake_drive_service.h
+++ b/chrome/browser/google_apis/fake_drive_service.h
@@ -38,6 +38,12 @@ class FakeDriveService : public DriveServiceInterface {
// when offline. By default the offline state is false.
void set_offline(bool offline) { offline_ = offline; }
+ // Changes the default max results returned from GetResourceList().
+ // By default, it's set to 0, which is unlimited.
+ void set_default_max_results(int default_max_results) {
+ default_max_results_ = default_max_results;
+ }
+
// Returns the largest changestamp, which starts from 0 by default. See
// also comments at LoadAccountMetadataForWapi().
int64 largest_changestamp() const { return largest_changestamp_; }
@@ -144,6 +150,7 @@ class FakeDriveService : public DriveServiceInterface {
scoped_ptr<base::Value> account_metadata_value_;
scoped_ptr<base::Value> app_info_value_;
int64 largest_changestamp_;
+ int default_max_results_;
int resource_id_count_;
int resource_list_load_count_;
int account_metadata_load_count_;
« no previous file with comments | « no previous file | chrome/browser/google_apis/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698