Index: chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java |
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java |
index 048b85e22a44cd0fb7ceff98b601ba594d9ac8a9..4b4c79926155b83c0e05a59a5a541d5e3b5b0b27 100644 |
--- a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java |
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java |
@@ -12,7 +12,7 @@ import static org.mockito.Mockito.mock; |
import org.chromium.base.metrics.RecordHistogram; |
import org.chromium.base.test.util.Feature; |
import org.chromium.chrome.browser.ntp.NewTabPageView.NewTabPageManager; |
-import org.chromium.chrome.browser.ntp.snippets.DisabledReason; |
+import org.chromium.chrome.browser.ntp.snippets.ContentSuggestionsCategoryStatus; |
import org.chromium.chrome.browser.ntp.snippets.SnippetArticle; |
import org.chromium.chrome.browser.ntp.snippets.SnippetsBridge; |
import org.chromium.chrome.browser.ntp.snippets.SnippetsBridge.SnippetsObserver; |
@@ -133,7 +133,7 @@ public class NewTabPageAdapterTest { |
assertEquals(3 + snippets.size(), ntpa.getItemCount()); |
// When we clear the snippets, we should go back to the situation with the status card. |
- mSnippetsObserver.onDisabledReasonChanged(DisabledReason.NONE); |
+ mSnippetsObserver.onCategoryStatusChanged(ContentSuggestionsCategoryStatus.AVAILABLE); |
assertEquals(4, ntpa.getItemCount()); |
// The adapter should now be waiting for new snippets. |