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

Unified Diff: components/password_manager/core/browser/fake_affiliation_fetcher.h

Issue 868253005: AffiliationBackend: Implement the better part of on-demand fetching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing override. Created 5 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
Index: components/password_manager/core/browser/fake_affiliation_fetcher.h
diff --git a/components/password_manager/core/browser/fake_affiliation_fetcher.h b/components/password_manager/core/browser/fake_affiliation_fetcher.h
index 860d3a0c8bacd577285c4b39d861f49fcf14b653..bcebcc44fedcd7328bb3d48c12d324bf4fd82a59 100644
--- a/components/password_manager/core/browser/fake_affiliation_fetcher.h
+++ b/components/password_manager/core/browser/fake_affiliation_fetcher.h
@@ -50,12 +50,17 @@ class ScopedFakeAffiliationFetcherFactory
// Returns the next FakeAffiliationFetcher instance previously produced, so
// that that the testing code can inject a response and simulate completion
- // or failure of the request.
+ // or failure of the request. The fetcher is removed from the queue of pending
+ // fetchers.
//
// Note that the factory does not retain ownership of the produced fetchers,
// so that the tests should ensure that the corresponding production code will
// not destroy them before they are accessed here.
- FakeAffiliationFetcher* GetNextFetcher();
+ FakeAffiliationFetcher* PopNextFetcher();
+
+ // Same as above, but the fetcher is not removed from the queue of pending
+ // fetchers.
+ FakeAffiliationFetcher* PeekNextFetcher();
bool has_pending_fetchers() const { return !pending_fetchers_.empty(); }

Powered by Google App Engine
This is Rietveld 408576698