You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
894 B
34 lines
894 B
// Copyright 2018 The Chromium Authors
|
|
// 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(TaskType 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_
|