• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef BASE_TASK_SEQUENCE_MANAGER_TEST_FAKE_TASK_H_
6 #define BASE_TASK_SEQUENCE_MANAGER_TEST_FAKE_TASK_H_
7 
8 #include "base/task/sequence_manager/task_queue.h"
9 #include "base/task/sequence_manager/tasks.h"
10 
11 namespace base {
12 namespace sequence_manager {
13 
14 class FakeTask : public Task {
15  public:
16   FakeTask();
17   explicit FakeTask(TaskType task_type);
18 };
19 
20 class FakeTaskTiming : public TaskQueue::TaskTiming {
21  public:
22   FakeTaskTiming();
23   FakeTaskTiming(TimeTicks start, TimeTicks end);
24   FakeTaskTiming(TimeTicks start,
25                  TimeTicks end,
26                  ThreadTicks thread_start,
27                  ThreadTicks thread_end);
28 };
29 
30 }  // namespace sequence_manager
31 }  // namespace base
32 
33 #endif  // BASE_TASK_SEQUENCE_MANAGER_TEST_FAKE_TASK_H_
34