chromium/content/browser/startup_task_runner_unittest.cc

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

#include "content/browser/startup_task_runner.h"

#include <utility>

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/task_runner.h"

#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace content {
namespace {

_;
Assign;
Invoke;

int observer_calls =;
int task_count =;
int observer_result;

void Observer(int result) {}

class StartupTaskRunnerTest : public testing::Test {};

// We can't use the real message loop, even if we want to, since doing so on
// Android requires a complex Java infrastructure. The test would have to built
// as a content_shell test; but content_shell startup invokes the class we are
// trying to test.
//
// The mocks are not directly in TaskRunnerProxy because reference counted
// objects seem to confuse the mocking framework

class MockTaskRunner {};

class TaskRunnerProxy : public base::SingleThreadTaskRunner {};

TEST_F(StartupTaskRunnerTest, SynchronousExecution) {}

TEST_F(StartupTaskRunnerTest, NullObserver) {}

TEST_F(StartupTaskRunnerTest, SynchronousExecutionFailedTask) {}

TEST_F(StartupTaskRunnerTest, AsynchronousExecution) {}

TEST_F(StartupTaskRunnerTest, AsynchronousExecutionFailedTask) {}
}  // namespace
}  // namespace content