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

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

Issue 1996473002: Track age and score of snippets that are clicked (along with position). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: After code review #3 Created 4 years, 7 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 0f068f83835359d150347195f2e4ee7166752933..201de2084421b3482c1c5e92cdafc0c6777904e8 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
@@ -75,7 +75,7 @@ public class NewTabPageAdapterTest {
// The adapter should ignore any new incoming data.
mSnippetsObserver.onSnippetsReceived(Arrays.asList(new SnippetArticle[] {
- new SnippetArticle("foo", "title1", "pub1", "txt1", "foo", "bar", null, 0, 0)}));
+ new SnippetArticle("foo", "title1", "pub1", "txt1", "foo", "bar", null, 0, 0, 0)}));
assertEquals(loadedItems, ntpa.getItemsForTesting());
}
@@ -106,7 +106,7 @@ public class NewTabPageAdapterTest {
// The adapter should ignore any new incoming data.
mSnippetsObserver.onSnippetsReceived(Arrays.asList(new SnippetArticle[] {
- new SnippetArticle("foo", "title1", "pub1", "txt1", "foo", "bar", null, 0, 0)}));
+ new SnippetArticle("foo", "title1", "pub1", "txt1", "foo", "bar", null, 0, 0, 0)}));
assertEquals(loadedItems, ntpa.getItemsForTesting());
}
@@ -136,10 +136,10 @@ public class NewTabPageAdapterTest {
private List<SnippetArticle> createDummySnippets() {
return Arrays.asList(new SnippetArticle[] {
new SnippetArticle("https://site.com/url1", "title1", "pub1", "txt1",
- "https://site.com/url1", "https://amp.site.com/url1", null, 0, 0),
+ "https://site.com/url1", "https://amp.site.com/url1", null, 0, 0, 0),
new SnippetArticle("https://site.com/url2", "title2", "pub2", "txt2",
- "https://site.com/url2", "https://amp.site.com/url1", null, 0, 0),
+ "https://site.com/url2", "https://amp.site.com/url1", null, 0, 0, 0),
new SnippetArticle("https://site.com/url3", "title3", "pub3", "txt3",
- "https://site.com/url3", "https://amp.site.com/url1", null, 0, 0)});
+ "https://site.com/url3", "https://amp.site.com/url1", null, 0, 0, 0)});
}
}

Powered by Google App Engine
This is Rietveld 408576698