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

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

Issue 2149333003: 📰 Adjust the card display depending on the screen width. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ZineTabletUI
Patch Set: address comments Created 4 years, 5 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
« no previous file with comments | « chrome/android/java_sources.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21c09f24286f2560597eb604d4d2087439401226..673f361d337b4d76fac1ae75aa45e6614a92ef7d 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
@@ -63,7 +63,8 @@ public Void answer(InvocationOnMock invocation) throws Throwable {
@Test
@Feature({"Ntp"})
public void testSnippetLoading() {
- NewTabPageAdapter ntpa = new NewTabPageAdapter(mNewTabPageManager, null, mSnippetsBridge);
+ NewTabPageAdapter ntpa =
+ new NewTabPageAdapter(mNewTabPageManager, null, mSnippetsBridge, null);
assertEquals(4, ntpa.getItemCount());
assertEquals(NewTabPageListItem.VIEW_TYPE_ABOVE_THE_FOLD, ntpa.getItemViewType(0));
@@ -95,7 +96,8 @@ public void testSnippetLoading() {
@Test
@Feature({"Ntp"})
public void testSnippetLoadingInitiallyEmpty() {
- NewTabPageAdapter ntpa = new NewTabPageAdapter(mNewTabPageManager, null, mSnippetsBridge);
+ NewTabPageAdapter ntpa =
+ new NewTabPageAdapter(mNewTabPageManager, null, mSnippetsBridge, null);
// If we don't get anything, we should be in the same situation as the initial one.
mSnippetsObserver.onSnippetsReceived(new ArrayList<SnippetArticleListItem>());
@@ -128,7 +130,8 @@ public void testSnippetLoadingInitiallyEmpty() {
@Test
@Feature({"Ntp"})
public void testSnippetClearing() {
- NewTabPageAdapter ntpa = new NewTabPageAdapter(mNewTabPageManager, null, mSnippetsBridge);
+ NewTabPageAdapter ntpa =
+ new NewTabPageAdapter(mNewTabPageManager, null, mSnippetsBridge, null);
List<SnippetArticleListItem> snippets = createDummySnippets();
mSnippetsObserver.onSnippetsReceived(snippets);
« no previous file with comments | « chrome/android/java_sources.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698