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

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

Issue 2493543003: [Downloads] Pass more DownloadItem state to java (Closed)
Patch Set: Removed dependency 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
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 c5e332b203af83cd2890d288ba7c4820796999ef..5f606830fb30db0e8e01f94b285b659b731034ec 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
@@ -35,7 +35,6 @@ import org.chromium.chrome.browser.widget.selection.SelectionDelegate.SelectionO
import org.chromium.chrome.test.util.ChromeRestriction;
import org.chromium.content.browser.test.util.Criteria;
import org.chromium.content.browser.test.util.CriteriaHelper;
-import org.chromium.content_public.browser.DownloadState;
import java.util.List;
@@ -158,7 +157,7 @@ public class DownloadActivityTest extends BaseActivityInstrumentationTestCase<Do
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
- mAdapter.onDownloadItemUpdated(updateItem, false, DownloadState.COMPLETE);
+ mAdapter.onDownloadItemUpdated(updateItem, false);
}
});
mAdapterObserver.onSpaceDisplayUpdatedCallback.waitForCallback(callCount);
@@ -171,7 +170,7 @@ public class DownloadActivityTest extends BaseActivityInstrumentationTestCase<Do
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
- mAdapter.onDownloadItemUpdated(deletedItem, false, DownloadState.COMPLETE);
+ mAdapter.onDownloadItemUpdated(deletedItem, false);
}
});
mAdapterObserver.onSpaceDisplayUpdatedCallback.waitForCallback(callCount);
@@ -287,8 +286,8 @@ public class DownloadActivityTest extends BaseActivityInstrumentationTestCase<Do
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
- mAdapter.onDownloadItemUpdated(item7, false, DownloadState.COMPLETE);
- mAdapter.onDownloadItemUpdated(item8, false, DownloadState.COMPLETE);
+ mAdapter.onDownloadItemUpdated(item7, false);
+ mAdapter.onDownloadItemUpdated(item8, false);
}
});
mAdapterObserver.onSpaceDisplayUpdatedCallback.waitForCallback(callCount, 2);
@@ -364,8 +363,8 @@ public class DownloadActivityTest extends BaseActivityInstrumentationTestCase<Do
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
- mAdapter.onDownloadItemUpdated(item7, false, DownloadState.COMPLETE);
- mAdapter.onDownloadItemUpdated(item8, false, DownloadState.COMPLETE);
+ mAdapter.onDownloadItemUpdated(item7, false);
+ mAdapter.onDownloadItemUpdated(item8, false);
}
});
mAdapterObserver.onSpaceDisplayUpdatedCallback.waitForCallback(callCount, 2);

Powered by Google App Engine
This is Rietveld 408576698