#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 {
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
}
}