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

Unified Diff: components/ntp_snippets/content_suggestions_service_unittest.cc

Issue 2194203002: Make ContentSuggestionsService recognize new/removed categories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renaming
Patch Set: Marc's comments Created 4 years, 4 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/content_suggestions_service_unittest.cc
diff --git a/components/ntp_snippets/content_suggestions_service_unittest.cc b/components/ntp_snippets/content_suggestions_service_unittest.cc
index c56da1e0c1b53b5f800121364357783e759a90ef..40da1edeb18c57b5bc02cf085aecec3160a8c22b 100644
--- a/components/ntp_snippets/content_suggestions_service_unittest.cc
+++ b/components/ntp_snippets/content_suggestions_service_unittest.cc
@@ -76,12 +76,12 @@ class MockProvider : public ContentSuggestionsProvider {
}
void FireSuggestionsChanged(Category category, std::vector<int> numbers) {
- observer_->OnNewSuggestions(category, CreateSuggestions(numbers));
+ observer_->OnNewSuggestions(this, category, CreateSuggestions(numbers));
}
void FireCategoryStatusChanged(Category category, CategoryStatus new_status) {
statuses_[category.id()] = new_status;
- observer_->OnCategoryStatusChanged(category, new_status);
+ observer_->OnCategoryStatusChanged(this, category, new_status);
}
void FireShutdown() {
@@ -156,7 +156,7 @@ class ContentSuggestionsServiceTest : public testing::Test {
ContentSuggestionsProvider*,
ContentSuggestionsService::CompareCategoriesByID>&
providers() {
- return service()->providers_;
+ return service()->providers_by_category_;
}
CategoryFactory* category_factory() { return service()->category_factory(); }
« no previous file with comments | « components/ntp_snippets/content_suggestions_service.cc ('k') | components/ntp_snippets/ntp_snippets_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698