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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadActivityTest.java

Issue 2309503002: [Download Home] Pull out DownloadHistoryWrapper.ItemViewHolder (Closed)
Patch Set: Really uploading this time 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
« 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/javatests/src/org/chromium/chrome/browser/download/DownloadActivityTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadActivityTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadActivityTest.java
index 9444056ff042614398093749f6a18af7b7ee4bf6..08f872249793f4d01c43f87ba86ae9589e7ff773 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadActivityTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadActivityTest.java
@@ -20,7 +20,7 @@ import org.chromium.base.test.BaseActivityInstrumentationTestCase;
import org.chromium.base.test.util.Restriction;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.download.ui.DownloadHistoryAdapter;
-import org.chromium.chrome.browser.download.ui.DownloadHistoryAdapter.ItemViewHolder;
+import org.chromium.chrome.browser.download.ui.DownloadHistoryItemViewHolder;
import org.chromium.chrome.browser.download.ui.DownloadHistoryItemWrapper;
import org.chromium.chrome.browser.download.ui.DownloadItemView;
import org.chromium.chrome.browser.download.ui.DownloadManagerUi;
@@ -217,12 +217,14 @@ public class DownloadActivityTest extends BaseActivityInstrumentationTestCase<Do
// Select the first two items.
ViewHolder mostRecentHolder = mRecyclerView.findViewHolderForAdapterPosition(1);
- assertTrue(mostRecentHolder instanceof ItemViewHolder);
- final DownloadItemView firstItemView = ((ItemViewHolder) mostRecentHolder).mItemView;
+ assertTrue(mostRecentHolder instanceof DownloadHistoryItemViewHolder);
+ final DownloadItemView firstItemView =
+ ((DownloadHistoryItemViewHolder) mostRecentHolder).getItemView();
ViewHolder nextMostRecentHolder = mRecyclerView.findViewHolderForAdapterPosition(2);
- assertTrue(nextMostRecentHolder instanceof ItemViewHolder);
- final DownloadItemView secondItemView = ((ItemViewHolder) nextMostRecentHolder).mItemView;
+ assertTrue(nextMostRecentHolder instanceof DownloadHistoryItemViewHolder);
+ final DownloadItemView secondItemView =
+ ((DownloadHistoryItemViewHolder) nextMostRecentHolder).getItemView();
assertTrue(mAdapterObserver.mOnSelectionItems.isEmpty());
int callCount = mAdapterObserver.onSelectionCallback.getCallCount();
« 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