chromium/content/browser/scheduler/browser_task_queues_unittest.cc

// Copyright 2019 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/scheduler/browser_task_queues.h"

#include <array>
#include <memory>

#include "base/functional/callback_helpers.h"
#include "base/message_loop/message_pump.h"
#include "base/message_loop/message_pump_type.h"
#include "base/run_loop.h"
#include "base/task/sequence_manager/sequence_manager.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "base/test/mock_callback.h"
#include "content/browser/scheduler/browser_task_priority.h"
#include "content/public/browser/browser_thread.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace content {
namespace {

RunLoop;
CreateSequenceManagerOnCurrentThreadWithPump;
SequenceManager;
Invoke;
Mock;

StrictMockTask;

QueueType;

class BrowserTaskQueuesTest : public testing::Test {};

TEST_F(BrowserTaskQueuesTest, NoTaskRunsUntilQueuesAreEnabled) {}

TEST_F(BrowserTaskQueuesTest, OnlyDefaultQueueRunsTasksOnCreation) {}

TEST_F(BrowserTaskQueuesTest, TasksRunWhenQueuesAreEnabled) {}

TEST_F(BrowserTaskQueuesTest, SimplePosting) {}

TEST_F(BrowserTaskQueuesTest, RunAllPendingTasksForTesting) {}

TEST_F(BrowserTaskQueuesTest, RunAllPendingTasksForTestingRunsAllTasks) {}

TEST_F(BrowserTaskQueuesTest, RunAllPendingTasksForTestingIsReentrant) {}

TEST_F(BrowserTaskQueuesTest,
       RunAllPendingTasksForTestingIgnoresBestEffortIfNotEnabled) {}

TEST_F(BrowserTaskQueuesTest,
       RunAllPendingTasksForTestingRunsBestEffortTasksWhenEnabled) {}

TEST_F(BrowserTaskQueuesTest, HandleStillWorksWhenQueuesDestroyed) {}

}  // namespace
}  // namespace content