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

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

Issue 2064323004: Defines initial DeviceConditions and and plumbs down through StartProcessing() call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge 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/BackgroundOfflinerTaskTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTaskTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTaskTest.java
index 0029d3da9f47f39e5ee54c072d328e0f1733735b..6097860c30b7ec8a7eac66db83b93ff26a3f664a 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTaskTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTaskTest.java
@@ -10,6 +10,7 @@ import android.os.Bundle;
import org.chromium.base.BaseChromiumApplication;
import org.chromium.base.test.util.Feature;
+import org.chromium.net.ConnectionType;
import org.chromium.testing.local.LocalRobolectricTestRunner;
import org.junit.Before;
import org.junit.Test;
@@ -40,7 +41,9 @@ public class BackgroundOfflinerTaskTest {
public void testIncomingTask() {
BackgroundOfflinerTask task =
new BackgroundOfflinerTask(mStubBackgroundSchedulerProcessor);
- task.processBackgroundRequests(mTaskExtras);
+ DeviceConditions deviceConditions =
+ new DeviceConditions(false, 51, ConnectionType.CONNECTION_WIFI);
+ task.processBackgroundRequests(mTaskExtras, deviceConditions);
// Check with ShadowBackgroundBackgroundSchedulerProcessor that startProcessing got called.
assertTrue(mStubBackgroundSchedulerProcessor.getStartProcessingCalled());

Powered by Google App Engine
This is Rietveld 408576698