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

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

Issue 2618893003: 📰 Tweak the suggestion ranks for UMA to handle fetchMore (Closed)
Patch Set: try skipping UMA for test 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/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 36f0bf7f1c99a68eedb9fcd50b7fa06d392dc531..ef11feef4d8457af98a04cf0c372fa7f27dec84a 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
@@ -223,7 +223,7 @@ public void testSuggestionLoading() {
// The adapter should ignore any new incoming data.
mSource.setSuggestionsForCategory(KnownCategories.ARTICLES,
Arrays.asList(new SnippetArticle[] {
- new SnippetArticle(0, "foo", "title1", "pub1", "txt1", "url", 0, 0, 0)}));
+ new SnippetArticle(0, "foo", "title1", "pub1", "txt1", "url", 0, 0)}));
assertItemsFor(section(numSuggestions));
}
@@ -251,7 +251,7 @@ public void testSuggestionLoadingInitiallyEmpty() {
// The adapter should ignore any new incoming data.
mSource.setSuggestionsForCategory(KnownCategories.ARTICLES,
Arrays.asList(new SnippetArticle[] {
- new SnippetArticle(0, "foo", "title1", "pub1", "txt1", "url", 0, 0, 0)}));
+ new SnippetArticle(0, "foo", "title1", "pub1", "txt1", "url", 0, 0)}));
assertItemsFor(section(numSuggestions));
}
@@ -299,7 +299,7 @@ public void testSuggestionLoadingBlock() {
// If we have snippets, we should not load the new list (i.e. the extra item does *not*
// appear).
suggestions.add(new SnippetArticle(0, "https://site.com/url1", "title1", "pub1", "txt1",
- "https://site.com/url1", 0, 0, 0));
+ "https://site.com/url1", 0, 0));
mSource.setSuggestionsForCategory(KnownCategories.ARTICLES, suggestions);
assertItemsFor(section(3));

Powered by Google App Engine
This is Rietveld 408576698