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

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

Issue 2771803004: Glue OfflineContentProvider to the download service (Closed)
Patch Set: Fixing test failure Created 3 years, 9 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/download/MockDownloadNotificationService.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java b/chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java
index 76dccd0885904c066e30ca96be5a2723c80f609d..0b260ae5b65a0ac7716302e827cb53b029a0687f 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java
@@ -96,12 +96,13 @@ public class MockDownloadNotificationService extends DownloadNotificationService
@Override
public int notifyDownloadSuccessful(final ContentId id, final String filePath,
final String fileName, final long systemDownloadId, final boolean isOffTheRecord,
- final boolean isSupportedMimeType) {
+ final boolean isSupportedMimeType, final boolean isOpenable) {
return ThreadUtils.runOnUiThreadBlockingNoException(new Callable<Integer>() {
@Override
public Integer call() throws Exception {
return MockDownloadNotificationService.super.notifyDownloadSuccessful(id, filePath,
- fileName, systemDownloadId, isOffTheRecord, isSupportedMimeType);
+ fileName, systemDownloadId, isOffTheRecord, isSupportedMimeType,
+ isOpenable);
}
});
}
@@ -110,13 +111,13 @@ public class MockDownloadNotificationService extends DownloadNotificationService
public void notifyDownloadProgress(final ContentId id, final String fileName,
final int percentage, final long bytesReceived, final long timeRemainingInMillis,
final long startTime, final boolean isOffTheRecord,
- final boolean canDownloadWhileMetered) {
+ final boolean canDownloadWhileMetered, final boolean isTransient) {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
public void run() {
MockDownloadNotificationService.super.notifyDownloadProgress(id, fileName,
percentage, bytesReceived, timeRemainingInMillis, startTime, isOffTheRecord,
- canDownloadWhileMetered);
+ canDownloadWhileMetered, isTransient);
}
});
}

Powered by Google App Engine
This is Rietveld 408576698