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

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

Issue 2030773002: Add unit tests for the Background Scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/java/src/org/chromium/chrome/browser/offlinepages/SchedulerBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/SchedulerBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/SchedulerBridge.java
new file mode 100644
index 0000000000000000000000000000000000000000..10eeed02d086491f7dcae0b89e5264669dc5089f
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/SchedulerBridge.java
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.chrome.browser.offlinepages;
+
+import org.chromium.chrome.browser.offlinepages.interfaces.SchedulerBridgeInterface;
+
+/**
+ * Interface to allow mocking out our BackgroundSchedulerBridge.
+ */
+public class SchedulerBridge implements SchedulerBridgeInterface {
+
+ @Override
+ public boolean startProcessing(
+ SchedulerBridgeInterface.ProcessingDoneCallback callback) {
chili 2016/06/02 00:37:25 nit - this fits in previous line?
Pete Williamson 2016/06/02 20:51:33 Yep, it does. Fixed (this function got a lot of n
+
+ BackgroundSchedulerBridge.startProcessing(callback);
+
+ return true;
+ }
+
+}

Powered by Google App Engine
This is Rietveld 408576698