| // Copyright 2018 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 BASE_TASK_SEQUENCE_MANAGER_TEST_FAKE_TASK_H_ |
| #define BASE_TASK_SEQUENCE_MANAGER_TEST_FAKE_TASK_H_ |
| |
| #include "base/task/sequence_manager/task_queue.h" |
| #include "base/task/sequence_manager/tasks.h" |
| |
| namespace base { |
| namespace sequence_manager { |
| |
| class FakeTask : public Task { |
| public: |
| FakeTask(); |
| explicit FakeTask(int task_type); |
| }; |
| |
| class FakeTaskTiming : public TaskQueue::TaskTiming { |
| public: |
| FakeTaskTiming(); |
| FakeTaskTiming(TimeTicks start, TimeTicks end); |
| FakeTaskTiming(TimeTicks start, |
| TimeTicks end, |
| ThreadTicks thread_start, |
| ThreadTicks thread_end); |
| }; |
| |
| } // namespace sequence_manager |
| } // namespace base |
| |
| #endif // BASE_TASK_SEQUENCE_MANAGER_TEST_FAKE_TASK_H_ |