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

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

Issue 2094013003: Uses TriggerConditions in the BackgroundScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some naming and improved documentation on the backup scheduling Created 4 years, 6 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/BackgroundSchedulerTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerTest.java
index 1ab794badd61842fac2645bb28359149fbe9588e..d17b2185d8435a8ea1dd574ad633d9bf836ec16f 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerTest.java
@@ -54,6 +54,8 @@ public class BackgroundSchedulerTest {
assertEquals(OfflinePageUtils.TASK_TAG, task.getTag());
long scheduledTimeMillis = TaskExtrasPacker.unpackTimeFromBundle(task.getExtras());
assertTrue(scheduledTimeMillis > 0L);
+ assertEquals(
+ mConditions1, TaskExtrasPacker.unpackTriggerConditionsFromBundle(task.getExtras()));
}
@Test

Powered by Google App Engine
This is Rietveld 408576698