#include "src/base/test/test_task_runner.h"
#include <stdio.h>
#include <chrono>
#include "perfetto/base/logging.h"
namespace perfetto {
namespace base {
TestTaskRunner::TestTaskRunner() = default;
TestTaskRunner::~TestTaskRunner() = default;
void TestTaskRunner::Run() { … }
void TestTaskRunner::RunUntilIdle() { … }
void TestTaskRunner::QuitIfIdle() { … }
void TestTaskRunner::RunUntilCheckpoint(const std::string& checkpoint,
uint32_t timeout_ms) { … }
std::function<void()> TestTaskRunner::CreateCheckpoint(
const std::string& checkpoint) { … }
void TestTaskRunner::PostTask(std::function<void()> closure) { … }
void TestTaskRunner::PostDelayedTask(std::function<void()> closure,
uint32_t delay_ms) { … }
void TestTaskRunner::AddFileDescriptorWatch(PlatformHandle fd,
std::function<void()> callback) { … }
void TestTaskRunner::RemoveFileDescriptorWatch(PlatformHandle fd) { … }
bool TestTaskRunner::RunsTasksOnCurrentThread() const { … }
}
}