OLD | NEW |
(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 } |
OLD | NEW |