#include "base/test/scoped_mock_time_message_loop_task_runner.h"
#include <memory>
#include "base/containers/circular_deque.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
#include "base/task/current_thread.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "base/test/test_mock_time_task_runner.h"
#include "base/test/test_pending_task.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
TaskRunner* GetCurrentTaskRunner() { … }
void AssignTrue(bool* out) { … }
TestPendingTask PopFront(base::circular_deque<TestPendingTask>* pending_tasks) { … }
class ScopedMockTimeMessageLoopTaskRunnerTest : public testing::Test { … };
TEST_F(ScopedMockTimeMessageLoopTaskRunnerTest, CurrentTaskRunners) { … }
TEST_F(ScopedMockTimeMessageLoopTaskRunnerTest,
IncompleteTasksAreCopiedToPreviousTaskRunnerAfterDestruction) { … }
}
}