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

Unified Diff: chrome/browser/drive/fake_drive_service.cc

Issue 23441049: drive: Enable recursive fast-fetch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made the test to surely use fast-fetch. Created 7 years, 3 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
Index: chrome/browser/drive/fake_drive_service.cc
diff --git a/chrome/browser/drive/fake_drive_service.cc b/chrome/browser/drive/fake_drive_service.cc
index f1fc93d9d83542e7a7d88b5d3f3671166e4b80b9..73c34857220138cf4add2b4e17d9f2d367c94108 100644
--- a/chrome/browser/drive/fake_drive_service.cc
+++ b/chrome/browser/drive/fake_drive_service.cc
@@ -176,7 +176,9 @@ FakeDriveService::FakeDriveService()
directory_load_count_(0),
about_resource_load_count_(0),
app_list_load_count_(0),
- offline_(false) {
+ blocked_resource_list_load_count_(0),
+ offline_(false),
+ never_return_all_resource_list_(false) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
}
@@ -328,6 +330,11 @@ CancelCallback FakeDriveService::GetAllResourceList(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(!callback.is_null());
+ if (never_return_all_resource_list_) {
+ ++blocked_resource_list_load_count_;
+ return CancelCallback();
+ }
+
GetResourceListInternal(0, // start changestamp
std::string(), // empty search query
std::string(), // no directory resource id,

Powered by Google App Engine
This is Rietveld 408576698