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

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

Issue 2216683002: [M53][NTP Client] Fix test compilation on branch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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 | « no previous file | 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 87d7c99212d209f71aee701355ef3dd5625bf53d..22ee5700804fe85be7731e602c6802b395c33319 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
@@ -156,14 +156,14 @@ public void testSnippetClearing() {
public void testSnippetLoadingBlock() {
NewTabPageAdapter ntpa = new NewTabPageAdapter(mNewTabPageManager, null, mSnippetsBridge);
- List<SnippetArticleListItem> snippets = createDummySnippets();
+ List<SnippetArticle> snippets = createDummySnippets();
// By default, state is DisabledReason.NONE, so we can load snippets
mSnippetsObserver.onSnippetsReceived(snippets);
assertEquals(3 + snippets.size(), ntpa.getItemCount());
// If we have snippets, we should not load the new list.
- snippets.add(new SnippetArticleListItem("https://site.com/url1", "title1", "pub1", "txt1",
+ snippets.add(new SnippetArticle("https://site.com/url1", "title1", "pub1", "txt1",
"https://site.com/url1", "https://amp.site.com/url1", null, 0, 0, 0));
mSnippetsObserver.onSnippetsReceived(snippets);
assertEquals(3 + snippets.size() - 1, ntpa.getItemCount());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698