chromium/net/base/prioritized_dispatcher_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/base/prioritized_dispatcher.h"

#include <memory>
#include <string>

#include "base/check.h"
#include "base/compiler_specific.h"
#include "base/memory/raw_ptr.h"
#include "base/test/gtest_util.h"
#include "net/base/request_priority.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace net {

namespace {

// We rely on the priority enum values being sequential having starting at 0,
// and increasing for higher priorities.
static_assert;

class PrioritizedDispatcherTest : public testing::Test {};

TEST_F(PrioritizedDispatcherTest, GetLimits) {}

TEST_F(PrioritizedDispatcherTest, AddAFIFO) {}

TEST_F(PrioritizedDispatcherTest, AddPriority) {}

TEST_F(PrioritizedDispatcherTest, AddAtHead) {}

TEST_F(PrioritizedDispatcherTest, EnforceLimits) {}

TEST_F(PrioritizedDispatcherTest, ChangePriority) {}

TEST_F(PrioritizedDispatcherTest, Cancel) {}

TEST_F(PrioritizedDispatcherTest, Evict) {}

TEST_F(PrioritizedDispatcherTest, EvictFromEmpty) {}

TEST_F(PrioritizedDispatcherTest, AddWhileZeroLimits) {}

TEST_F(PrioritizedDispatcherTest, ReduceLimitsWhileJobQueued) {}

TEST_F(PrioritizedDispatcherTest, ZeroLimitsThenCancel) {}

TEST_F(PrioritizedDispatcherTest, ZeroLimitsThenIncreasePriority) {}

#if GTEST_HAS_DEATH_TEST
TEST_F(PrioritizedDispatcherTest, CancelNull) {}

TEST_F(PrioritizedDispatcherTest, CancelMissing) {}
#endif  // GTEST_HAS_DEATH_TEST

}  // namespace

}  // namespace net