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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridgeTest.java

Issue 2245733004: Serve offline page for online URL on disconnected or bad networks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment in test Created 4 years, 4 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/junit/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridgeTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridgeTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridgeTest.java
index 8c8522c4568ce25b5dcebdfe070845d9e81f1583..10654814e55129bcdaf7ebdba9970f9704d809a9 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridgeTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridgeTest.java
@@ -140,10 +140,10 @@ public class OfflinePageDownloadBridgeTest {
@Feature({"OfflinePages"})
public void testOpenItemByGuid() {
OfflinePageDownloadItem item = createDownloadItem1();
- // null as URL skips actual intent so no tabs are attempted to be created.
- doReturn(null).when(mBridge).nativeGetOfflineUrlByGuid(anyLong(), eq(item.getGuid()));
+ // null as item skips actual intent so no tabs are attempted to be created.
+ doReturn(null).when(mBridge).nativeGetItemByGuid(anyLong(), eq(item.getGuid()));
mBridge.openItem(item.getGuid());
- verify(mBridge, times(1)).nativeGetOfflineUrlByGuid(eq(0L), eq(item.getGuid()));
+ verify(mBridge, times(1)).nativeGetItemByGuid(eq(0L), eq(item.getGuid()));
}
@Test

Powered by Google App Engine
This is Rietveld 408576698