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

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

Issue 2452543005: 🏠 Merge the context menu code for NTP tiles and suggestions (Closed)
Patch Set: address comments Created 4 years, 2 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/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.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/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 50cd3170323779a117ef523a2be7fa6604a60901..a03b7c5019babb5b3c23d0d785616fa6bd65c56a 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
@@ -20,9 +20,7 @@
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.RecyclerView.AdapterDataObserver;
-import android.view.ContextMenu;
import android.view.Menu;
-import android.view.MenuItem.OnMenuItemClickListener;
import org.junit.After;
import org.junit.Before;
@@ -971,17 +969,13 @@ public MockNewTabPageManager(SuggestionsSource suggestionsSource) {
}
@Override
- public void openMostVisitedItem(MostVisitedItem item) {
+ public void removeMostVisitedItem(MostVisitedItem item) {
throw new UnsupportedOperationException();
- }
- @Override
- public void onCreateContextMenu(ContextMenu menu, OnMenuItemClickListener listener) {
- throw new UnsupportedOperationException();
}
@Override
- public boolean onMenuItemClick(int menuId, MostVisitedItem item) {
+ public void openMostVisitedItem(int windowDisposition, MostVisitedItem item) {
throw new UnsupportedOperationException();
}
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698