chromium/third_party/perfetto/src/base/test/test_task_runner.cc

/*
 * Copyright (C) 2017 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#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) {}

// TaskRunner implementation.
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 {}

}  // namespace base
}  // namespace perfetto