chromium/base/task/sequence_manager/wake_up_queue_unittest.cc

// Copyright 2015 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/task/sequence_manager/wake_up_queue.h"

#include <memory>
#include <optional>

#include "base/memory/ptr_util.h"
#include "base/message_loop/message_pump.h"
#include "base/message_loop/message_pump_type.h"
#include "base/task/sequence_manager/enqueue_order.h"
#include "base/task/sequence_manager/sequence_manager_impl.h"
#include "base/task/sequence_manager/task_queue_impl.h"
#include "base/test/mock_callback.h"
#include "base/test/simple_test_tick_clock.h"
#include "testing/gmock/include/gmock/gmock.h"

_;
AnyNumber;
Mock;

namespace base {
namespace sequence_manager {
namespace internal {

class TaskQueueImplForTest : public internal::TaskQueueImpl {};

class MockWakeUpQueue : public WakeUpQueue {};

class WakeUpQueueTest : public testing::Test {};

TEST_F(WakeUpQueueTest, ScheduleWakeUpForQueue) {}

TEST_F(WakeUpQueueTest, ScheduleWakeUpForQueueSupersedesPreviousWakeUp) {}

TEST_F(
    WakeUpQueueTest,
    ScheduleFlexibleNoSoonerWakeUpForQueueSupersedesPreviousWakeUpWithLeeway) {}

TEST_F(WakeUpQueueTest,
       ScheduleFlexiblePreferEarlyWakeUpForQueueSupersedesPreviousWakeUp) {}

TEST_F(WakeUpQueueTest, SetNextDelayedDoWork_OnlyCalledForEarlierTasks) {}

TEST_F(WakeUpQueueTest, UnregisterQueue) {}

TEST_F(WakeUpQueueTest, MoveReadyDelayedTasksToWorkQueues) {}

TEST_F(WakeUpQueueTest, MoveReadyDelayedTasksToWorkQueuesWithLeeway) {}

TEST_F(WakeUpQueueTest, CancelDelayedWork) {}

TEST_F(WakeUpQueueTest, CancelDelayedWork_TwoQueues) {}

TEST_F(WakeUpQueueTest, HighResolutionWakeUps) {}

TEST_F(WakeUpQueueTest, SetNextWakeUpForQueueInThePast) {}

}  // namespace internal
}  // namespace sequence_manager
}  // namespace base