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

Side by Side Diff: components/background_task_scheduler/android/junit/src/org/chromium/components/background_task_scheduler/TestBackgroundTask.java

Issue 2779753002: [Android] Adding scheduling through GcmNetworkManager (Closed)
Patch Set: Ensuring task is called on UI thread 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.components.background_task_scheduler;
6
7 import android.content.Context;
8
9 /** Dummy implementation of a background task used for testing. */
10 class TestBackgroundTask implements BackgroundTask {
11 public TestBackgroundTask() {}
12
13 @Override
14 public boolean onStartTask(
15 Context context, TaskParameters taskParameters, TaskFinishedCallback callback) {
16 return false;
17 }
18
19 @Override
20 public boolean onStopTask(Context context, TaskParameters taskParameters) {
21 return false;
22 }
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698