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

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

Issue 2402323002: [NTP Snippets] Persist non-article remote suggestions in the DB (Closed)
Patch Set: 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_database_unittest.cc
diff --git a/components/ntp_snippets/remote/ntp_snippets_database_unittest.cc b/components/ntp_snippets/remote/ntp_snippets_database_unittest.cc
index cdb36eb4d756674e8445bee3b97aff62b9cc0265..3a8fc5c300f623f0fb7a523dd658fc09c0db3499 100644
--- a/components/ntp_snippets/remote/ntp_snippets_database_unittest.cc
+++ b/components/ntp_snippets/remote/ntp_snippets_database_unittest.cc
@@ -45,7 +45,8 @@ bool operator==(const NTPSnippet& lhs, const NTPSnippet& rhs) {
namespace {
std::unique_ptr<NTPSnippet> CreateTestSnippet() {
- std::unique_ptr<NTPSnippet> snippet(new NTPSnippet("http://localhost"));
+ std::unique_ptr<NTPSnippet> snippet(new NTPSnippet("http://localhost",
+ kArticlesRemoteId));
snippet->add_source(
SnippetSource(GURL("http://localhost"), "Publisher", GURL("http://amp")));
return snippet;
« no previous file with comments | « components/ntp_snippets/remote/ntp_snippet_unittest.cc ('k') | components/ntp_snippets/remote/ntp_snippets_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698