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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java

Issue 2366443005: Remove local copies of SuggestionsSource. (Closed)
Patch Set: Added ntp OWNERS to ntp tests. Created 4 years, 3 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/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java
index a5a830918a5f4afe2c5b1f7afe1ce7ff656efc7f..768a814f672664df801daac9164cd086a30ce3da 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java
@@ -77,8 +77,7 @@ public class ArticleSnippetsTest extends ChromeActivityTestCaseBase<ChromeActivi
View aboveTheFold = new View(getActivity());
mRecyclerView.setAboveTheFoldView(aboveTheFold);
- mAdapter = new NewTabPageAdapter(mNtpManager, aboveTheFold, mSnippetsSource,
- mUiConfig);
+ mAdapter = new NewTabPageAdapter(mNtpManager, aboveTheFold, mUiConfig);
mRecyclerView.setAdapter(mAdapter);
}
});
@@ -345,5 +344,10 @@ public class ArticleSnippetsTest extends ChromeActivityTestCaseBase<ChromeActivi
public void onLearnMoreClicked() {
throw new UnsupportedOperationException();
}
+
+ @Override
+ public SuggestionsSource getSuggestionsSource() {
+ return mSnippetsSource;
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698