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

Unified Diff: components/ntp_snippets/content_suggestions_service_unittest.cc

Issue 2223073002: Add per-section clearing and dismissed suggestions to snippets-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix non-Debug builds 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 6943a36f9490cad1de67489b7f06b5e84196c942..6f4780e83bf92611b9797d21cabd25a9341fda98 100644
--- a/components/ntp_snippets/content_suggestions_service_unittest.cc
+++ b/components/ntp_snippets/content_suggestions_service_unittest.cc
@@ -80,8 +80,10 @@ class MockProvider : public ContentSuggestionsProvider {
observer()->OnCategoryStatusChanged(this, category, new_status);
}
- MOCK_METHOD0(ClearCachedSuggestionsForDebugging, void());
- MOCK_METHOD0(ClearDismissedSuggestionsForDebugging, void());
+ MOCK_METHOD1(ClearCachedSuggestionsForDebugging, void(Category category));
+ MOCK_METHOD1(GetDismissedSuggestionsForDebugging,
+ std::vector<ContentSuggestion>(Category category));
+ MOCK_METHOD1(ClearDismissedSuggestionsForDebugging, void(Category category));
MOCK_METHOD1(DismissSuggestion, void(const std::string& suggestion_id));
MOCK_METHOD2(FetchSuggestionImage,
void(const std::string& suggestion_id,
« no previous file with comments | « components/ntp_snippets/content_suggestions_service.cc ('k') | components/ntp_snippets/ntp_snippets_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698