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

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

Issue 2515713002: Move fetching new suggestions for all categories to the SuggestionsSource. (Closed)
Patch Set: x Created 4 years, 1 month 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/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java ('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/SuggestionsSectionTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSectionTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSectionTest.java
index 9c6c8d4c5de04cd361b5239578b9bc75ce2be34f..3f8de8444b861cad63ab8b64b47f0f9e24bbf9a7 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSectionTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSectionTest.java
@@ -389,13 +389,12 @@ public class SuggestionsSectionTest {
}
private static void verifyAction(SuggestionsSection section, @ActionItem.Action int action) {
- NewTabPageAdapter adapter = mock(NewTabPageAdapter.class);
SuggestionsSource suggestionsSource = mock(SuggestionsSource.class);
NewTabPageManager manager = mock(NewTabPageManager.class);
when(manager.getSuggestionsSource()).thenReturn(suggestionsSource);
try {
- section.getActionItem().performAction(manager, adapter);
+ section.getActionItem().performAction(manager);
} catch (AssertionError e) {
if (action != ActionItem.ACTION_NONE) throw e;
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698