naiveproxy/base/task/sequence_manager/test/fake_task.h

33 lines
876 B
C
Raw Normal View History

2018-08-15 01:19:20 +03:00
// 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"
namespace base {
namespace sequence_manager {
class FakeTask : public TaskQueue::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_