chromium/base/task/task_runner_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/task/task_runner.h"

#include <memory>
#include <utility>

#include "base/functional/bind.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace base {

namespace {

int ReturnFourtyTwo() {}

void StoreValue(int* destination, int value) {}

void StoreDoubleValue(double* destination, double value) {}

int g_foo_destruct_count =;
int g_foo_free_count =;

struct Foo {};

std::unique_ptr<Foo> CreateFoo() {}

void ExpectFoo(std::unique_ptr<Foo> foo) {}

struct FooDeleter {};

std::unique_ptr<Foo, FooDeleter> CreateScopedFoo() {}

void ExpectScopedFoo(std::unique_ptr<Foo, FooDeleter> foo) {}

struct FooWithoutDefaultConstructor {};

FooWithoutDefaultConstructor CreateFooWithoutDefaultConstructor(int value) {}

void SaveFooWithoutDefaultConstructor(int* output_value,
                                      FooWithoutDefaultConstructor input) {}

class TaskRunnerTest : public testing::Test {};

}  // namespace

TEST_F(TaskRunnerTest, PostTaskAndReplyWithResult) {}

TEST_F(TaskRunnerTest, PostTaskAndReplyWithResultRepeatingCallbacks) {}

TEST_F(TaskRunnerTest, PostTaskAndReplyWithResultImplicitConvert) {}

TEST_F(TaskRunnerTest, PostTaskAndReplyWithResultPassed) {}

TEST_F(TaskRunnerTest, PostTaskAndReplyWithResultPassedFreeProc) {}

TEST_F(TaskRunnerTest, PostTaskAndReplyWithResultWithoutDefaultConstructor) {}

}  // namespace base