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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/precache/PrecacheServiceTest.java

Issue 1272443002: Only set precache.last_time when precache ran. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@filter_stats
Patch Set: Don't retry often unless backend pending. Created 5 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/javatests/src/org/chromium/chrome/browser/precache/PrecacheServiceTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/precache/PrecacheServiceTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/precache/PrecacheServiceTest.java
index 56345f2bbcf85220be2827c789341f23a7441177..1e4ab3848a61e2595bca2243a92b3557a9f9d9e5 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/precache/PrecacheServiceTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/precache/PrecacheServiceTest.java
@@ -38,8 +38,8 @@ public class PrecacheServiceTest extends ServiceTestCase<MockPrecacheService> {
public void cancel() {}
@Override
- protected void onPrecacheCompleted() {
- mService.handlePrecacheCompleted();
+ protected void onPrecacheCompleted(boolean precacheStarted) {
+ mService.handlePrecacheCompleted(precacheStarted);
}
}
@@ -125,7 +125,7 @@ public class PrecacheServiceTest extends ServiceTestCase<MockPrecacheService> {
setupService();
startAndChangeDeviceState(getService(), true, false, true);
assertTrue("Precaching should be in progress", getService().isPrecaching());
- mPrecacheLauncher.onPrecacheCompleted();
+ mPrecacheLauncher.onPrecacheCompleted(true);
assertFalse("Precaching should not be in progress after completion",
getService().isPrecaching());
}

Powered by Google App Engine
This is Rietveld 408576698