#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[] = …;
std::string GetExpectedTimeoutMessage(const Location& from,
const char* expected_message) { … }
}
TEST(ScopedRunLoopTimeoutTest, OnTimeoutLog) { … }
TEST(ScopedRunLoopTimeoutTest, OnTimeoutLogWithNestedTimeouts) { … }
TEST(ScopedRunLoopTimeoutTest, OverwriteTimeoutCallbackForTesting) { … }
}