| 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_;
|
|
|