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

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

Issue 2663313002: 📰 Merge the has_fetch_more and has_reload actions (Closed)
Patch Set: rebase Created 3 years, 11 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 035184630c2d44ceea6e93089442e9607c8d3e75..b0bb71a9730b207106b6c05689dbdf0e95781937 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
@@ -156,16 +156,20 @@ private void setupTestData() {
mSnippetsSource.setInfoForCategory(
fullCategory, new SuggestionsCategoryInfo(fullCategory, "Section Title",
- ContentSuggestionsCardLayout.FULL_CARD, false, false, false,
- true, "No suggestions"));
+ ContentSuggestionsCardLayout.FULL_CARD,
+ /*has_fetch_action=*/false,
+ /*has_view_all_action=*/false,
+ /*show_if_empty=*/true, "No suggestions"));
mSnippetsSource.setStatusForCategory(fullCategory, CategoryStatus.AVAILABLE);
mSnippetsSource.setSuggestionsForCategory(
fullCategory, Arrays.asList(shortSnippet, longSnippet));
mSnippetsSource.setInfoForCategory(
minimalCategory, new SuggestionsCategoryInfo(minimalCategory, "Section Title",
- ContentSuggestionsCardLayout.MINIMAL_CARD, false, false,
- false, true, "No suggestions"));
+ ContentSuggestionsCardLayout.MINIMAL_CARD,
+ /* has_fetch_action = */ false,
+ /* has_view_all_action = */ false,
+ /* show_if_empty = */ true, "No suggestions"));
mSnippetsSource.setStatusForCategory(minimalCategory, CategoryStatus.AVAILABLE);
mSnippetsSource.setSuggestionsForCategory(
minimalCategory, Arrays.asList(minimalSnippet, minimalSnippet2));

Powered by Google App Engine
This is Rietveld 408576698