| Index: chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java
|
| diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java
|
| index 24e9d2ebda15fec810b04bf1cad4b1137fe6b39b..bb67f077313e0f577e3b170af99ab76329f46d5d 100644
|
| --- a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java
|
| +++ b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java
|
| @@ -4,6 +4,7 @@
|
|
|
| package org.chromium.chrome.browser.ntp.cards;
|
|
|
| +import org.chromium.chrome.browser.ntp.snippets.CategoryInt;
|
| import org.chromium.chrome.browser.ntp.snippets.ContentSuggestionsCardLayout;
|
| import org.chromium.chrome.browser.ntp.snippets.SnippetArticle;
|
|
|
| @@ -25,13 +26,15 @@ private ContentSuggestionsTestUtils() {}
|
| return suggestions;
|
| }
|
|
|
| - public static SuggestionsCategoryInfo createInfo(boolean moreButton, boolean showIfEmpty) {
|
| + public static SuggestionsCategoryInfo createInfo(
|
| + @CategoryInt int category, boolean moreButton, boolean showIfEmpty) {
|
| return new SuggestionsCategoryInfo(
|
| - "", ContentSuggestionsCardLayout.FULL_CARD, moreButton, showIfEmpty);
|
| + category, "", ContentSuggestionsCardLayout.FULL_CARD, moreButton, showIfEmpty);
|
| }
|
|
|
| public static SuggestionsSection createSection(
|
| boolean moreButton, boolean showIfEmpty, ItemGroup.Observer observer) {
|
| - return new SuggestionsSection(42, createInfo(moreButton, showIfEmpty), observer, null);
|
| + SuggestionsCategoryInfo info = createInfo(42, moreButton, showIfEmpty);
|
| + return new SuggestionsSection(info, observer);
|
| }
|
| }
|
|
|