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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java

Issue 2447163004: [NTP Snippets] Pass "no suggestions" message from the backend to the UI (Closed)
Patch Set: tests 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: chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java
index 87d443d63b914e1f006a592b0c55c9070c4759da..36a1a021ce32a09dcd462483c11f94d18263b0ae 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java
@@ -175,7 +175,7 @@ public class ArticleSnippetsTest extends ChromeActivityTestCaseBase<ChromeActivi
mSnippetsSource.setInfoForCategory(KnownCategories.ARTICLES,
new SuggestionsCategoryInfo(KnownCategories.ARTICLES, "Section Title",
- ContentSuggestionsCardLayout.FULL_CARD, false, true));
+ ContentSuggestionsCardLayout.FULL_CARD, false, true, "No suggestions"));
dgn 2016/10/26 14:05:40 Just use ContentSuggestionsTestUtils#createInfo he
Marc Treib 2016/10/26 14:29:09 That's in junit/..., while this file is in javates
mSnippetsSource.setStatusForCategory(KnownCategories.ARTICLES,
CategoryStatus.AVAILABLE);
mSnippetsSource.setSuggestionsForCategory(KnownCategories.ARTICLES,

Powered by Google App Engine
This is Rietveld 408576698