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

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

Issue 2861863002: offline_items_collection : Added helper class to determine progress (Closed)
Patch Set: findbugs Created 3 years, 7 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 43e4e9f01683690d65e14cbb49e525748b608225..1e7f39381aba79d950a6c82cc751acac35ecb935 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
@@ -11,6 +11,7 @@ import android.util.Pair;
import org.chromium.base.ThreadUtils;
import org.chromium.components.offline_items_collection.ContentId;
+import org.chromium.components.offline_items_collection.OfflineItem.Progress;
import java.util.ArrayList;
import java.util.List;
@@ -110,14 +111,14 @@ public class MockDownloadNotificationService extends DownloadNotificationService
@Override
public void notifyDownloadProgress(final ContentId id, final String fileName,
- final int percentage, final long bytesReceived, final long timeRemainingInMillis,
+ final Progress progress, final long bytesReceived, final long timeRemainingInMillis,
final long startTime, final boolean isOffTheRecord,
final boolean canDownloadWhileMetered, final boolean isTransient, final Bitmap icon) {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
public void run() {
- MockDownloadNotificationService.super.notifyDownloadProgress(id, fileName,
- percentage, bytesReceived, timeRemainingInMillis, startTime, isOffTheRecord,
+ MockDownloadNotificationService.super.notifyDownloadProgress(id, fileName, progress,
+ bytesReceived, timeRemainingInMillis, startTime, isOffTheRecord,
canDownloadWhileMetered, isTransient, icon);
}
});

Powered by Google App Engine
This is Rietveld 408576698