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

Unified Diff: components/ntp_snippets/content_suggestions_service_unittest.cc

Issue 2292003002: Move OnURLsDeleted from NTPSnippetsService to ContentSuggestionsService (Closed)
Patch Set: Created 4 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: 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 842b097dd8e4bba8e9641b40e68f5d72f2a5061f..19c9c1a0c1550915f60d80f8d28aff21e83e0cf1 100644
--- a/components/ntp_snippets/content_suggestions_service_unittest.cc
+++ b/components/ntp_snippets/content_suggestions_service_unittest.cc
@@ -100,6 +100,8 @@ class MockProvider : public ContentSuggestionsProvider {
observer()->OnSuggestionInvalidated(this, category, suggestion_id);
}
+ MOCK_METHOD2(RemoveURLsFromHistory,
+ void(bool all_history, const std::vector<GURL>& deleted_urls));
MOCK_METHOD3(ClearHistory,
void(base::Time begin,
base::Time end,
@@ -205,7 +207,8 @@ class ContentSuggestionsServiceTest : public testing::Test {
void CreateContentSuggestionsService(
ContentSuggestionsService::State enabled) {
ASSERT_FALSE(service_);
- service_.reset(new ContentSuggestionsService(enabled));
+ service_.reset(
+ new ContentSuggestionsService(enabled, /*history_service=*/nullptr));
}
ContentSuggestionsService* service() { return service_.get(); }

Powered by Google App Engine
This is Rietveld 408576698