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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SectionListTest.java

Issue 2639533003: [Content suggestions] Report updates in the UI to UMA. (Closed)
Patch Set: Fix errors #2 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/junit/src/org/chromium/chrome/browser/ntp/cards/SectionListTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SectionListTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SectionListTest.java
index 9aaffaca05b7483a105852ab0d8352b38a788990..195e6fd94bda3ceaddda8c53b6608f7955bf6bd0 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SectionListTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SectionListTest.java
@@ -21,6 +21,7 @@ import org.mockito.MockitoAnnotations;
import org.robolectric.annotation.Config;
import org.chromium.base.Callback;
+import org.chromium.base.metrics.RecordHistogram;
import org.chromium.base.test.util.Feature;
import org.chromium.chrome.browser.ntp.cards.ContentSuggestionsTestUtils.CategoryInfoBuilder;
import org.chromium.chrome.browser.ntp.snippets.FakeSuggestionsSource;
@@ -51,6 +52,7 @@ public class SectionListTest {
public void setUp() {
MockitoAnnotations.initMocks(this);
mSuggestionSource = new FakeSuggestionsSource();
+ RecordHistogram.disableForTests();
when(mUiDelegate.getSuggestionsSource()).thenReturn(mSuggestionSource);
when(mUiDelegate.getMetricsReporter()).thenReturn(mMetricsReporter);

Powered by Google App Engine
This is Rietveld 408576698