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

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

Issue 2830843002: [Offline pages] Updates to background scheduling to use BTS (Closed)
Patch Set: Fixing the crash on NCN not being initialized 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/junit/src/org/chromium/chrome/browser/offlinepages/TaskExtrasPackerTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/TaskExtrasPackerTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/TaskExtrasPackerTest.java
index c2b05590e62f05b2992c8cee424bbb519853096a..668d520f9b48d5fc104125ebba9ac3006c53dfaa 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/TaskExtrasPackerTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/TaskExtrasPackerTest.java
@@ -5,7 +5,6 @@
package org.chromium.chrome.browser.offlinepages;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertTrue;
@@ -16,7 +15,6 @@ import org.junit.runner.RunWith;
import org.robolectric.annotation.Config;
import org.chromium.base.test.util.Feature;
-import org.chromium.chrome.browser.ChromeBackgroundService;
import org.chromium.testing.local.LocalRobolectricTestRunner;
/** Unit tests for {@link TaskExtrasPacker}. */
@@ -37,15 +35,6 @@ public class TaskExtrasPackerTest {
@Test
@Feature({"OfflinePages"})
- public void testHoldWakelock() {
- Bundle taskExtras = new Bundle();
- assertFalse(taskExtras.getBoolean(ChromeBackgroundService.HOLD_WAKELOCK, false));
- TaskExtrasPacker.packHoldWakelock(taskExtras);
- assertTrue(taskExtras.getBoolean(ChromeBackgroundService.HOLD_WAKELOCK, false));
- }
-
- @Test
- @Feature({"OfflinePages"})
public void testTriggerConditionsExtra() {
Bundle taskExtras = new Bundle();
TriggerConditions conditions1 = new TriggerConditions(true, 25, false);

Powered by Google App Engine
This is Rietveld 408576698