| // Copyright 2017 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. |
| #ifndef COMPONENTS_OFFLINE_PAGES_TASK_TEST_TASK_RUNNER_H_ |
| #define COMPONENTS_OFFLINE_PAGES_TASK_TEST_TASK_RUNNER_H_ |
| namespace offline_pages { |
| // Tool for running (task queue related) tasks in test. |
| // Runs task with expectation that it correctly completes. |
| // Task is also cleaned up after completing. |
| static void RunTask(std::unique_ptr<Task> task); |
| // Runs task with expectation that it correctly completes. |
| // Task is not cleaned up after completing. |
| static void RunTask(Task* task); |
| } // namespace offline_pages |
| #endif // COMPONENTS_OFFLINE_PAGES_TASK_TEST_TASK_RUNNER_H_ |