| 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 9722e68ca7541d43821fad1b66026eb46dfc8f38..048b85e22a44cd0fb7ceff98b601ba594d9ac8a9 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,6 +12,7 @@
|
| 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.SnippetArticle;
|
| import org.chromium.chrome.browser.ntp.snippets.SnippetsBridge;
|
| import org.chromium.chrome.browser.ntp.snippets.SnippetsBridge.SnippetsObserver;
|
| @@ -132,7 +133,7 @@ public void testSnippetClearing() {
|
| assertEquals(3 + snippets.size(), ntpa.getItemCount());
|
|
|
| // When we clear the snippets, we should go back to the situation with the status card.
|
| - mSnippetsObserver.onSnippetsDisabled();
|
| + mSnippetsObserver.onDisabledReasonChanged(DisabledReason.NONE);
|
| assertEquals(4, ntpa.getItemCount());
|
|
|
| // The adapter should now be waiting for new snippets.
|
|
|