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

Unified Diff: components/ntp_snippets/remote/ntp_snippets_service_unittest.cc

Issue 2406573002: 📰 Persist category dismissals (Closed)
Patch Set: ready for review Created 4 years, 2 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/ntp_snippets/remote/ntp_snippets_service_unittest.cc
diff --git a/components/ntp_snippets/remote/ntp_snippets_service_unittest.cc b/components/ntp_snippets/remote/ntp_snippets_service_unittest.cc
index f18ceacfa67b6b9c87688fc1f8ec65591c1c3c79..110d5745a59d338769330d822377edbf5a539389 100644
--- a/components/ntp_snippets/remote/ntp_snippets_service_unittest.cc
+++ b/components/ntp_snippets/remote/ntp_snippets_service_unittest.cc
@@ -310,6 +310,13 @@ class FakeContentSuggestionsProviderObserver
suggestions_[category] = std::move(suggestions);
}
+ void OnNewSuggestionBatch(ContentSuggestionsProvider* provider,
+ SuggestionBatch suggestions) override {
+ for (auto it = suggestions.begin(); it != suggestions.end(); ++it) {
+ suggestions_[it->first] = std::move(it->second);
+ }
+ }
+
void OnCategoryStatusChanged(ContentSuggestionsProvider* provider,
Category category,
CategoryStatus new_status) override {

Powered by Google App Engine
This is Rietveld 408576698