chromium/base/test/scoped_run_loop_timeout_unittest.cc

// Copyright 2020 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/test/scoped_run_loop_timeout.h"

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/bind.h"
#include "base/test/gtest_util.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest-spi.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace base::test {

TEST(ScopedRunLoopTimeoutTest, TimesOut) {}

TEST(ScopedRunLoopTimeoutTest, RunTasksUntilTimeout) {}

TEST(ScopedRunLoopTimeoutTest, TimesOutWithInheritedTimeoutValue) {}

TEST(ScopedRunLoopTimeoutTest, RunTasksUntilTimeoutWithInheritedTimeoutValue) {}

namespace {

constexpr char kErrorMessage[] =;

// Previously these tests hard-coded the file and line numbers; this function
// instead generates the expected message given any `FROM_HERE` type location.
std::string GetExpectedTimeoutMessage(const Location& from,
                                      const char* expected_message) {}

}  // namespace

TEST(ScopedRunLoopTimeoutTest, OnTimeoutLog) {}

TEST(ScopedRunLoopTimeoutTest, OnTimeoutLogWithNestedTimeouts) {}

TEST(ScopedRunLoopTimeoutTest, OverwriteTimeoutCallbackForTesting) {}

}  // namespace base::test