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

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

Issue 2402323002: [NTP Snippets] Persist non-article remote suggestions in the DB (Closed)
Patch Set: . 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_snippet_unittest.cc
diff --git a/components/ntp_snippets/remote/ntp_snippet_unittest.cc b/components/ntp_snippets/remote/ntp_snippet_unittest.cc
index 2c6c95e0d47aab0fcedb4161193044e91d58f859..595ae37117bd9102572d3dc86d22e4c71d1d7d62 100644
--- a/components/ntp_snippets/remote/ntp_snippet_unittest.cc
+++ b/components/ntp_snippets/remote/ntp_snippet_unittest.cc
@@ -19,7 +19,7 @@ std::unique_ptr<NTPSnippet> SnippetFromContentSuggestionJSON(
if (!json_value->GetAsDictionary(&json_dict)) {
return nullptr;
}
- return NTPSnippet::CreateFromContentSuggestionsDictionary(*json_dict);
+ return NTPSnippet::CreateFromContentSuggestionsDictionary(*json_dict, 1);
Bernhard Bauer 2016/10/10 13:54:54 You could expose the remote category in the header
Marc Treib 2016/10/10 15:54:47 Done.
}
TEST(NTPSnippetTest, FromChromeContentSuggestionsDictionary) {

Powered by Google App Engine
This is Rietveld 408576698