#include "quiche/http2/core/priority_write_scheduler.h"
#include "quiche/http2/core/spdy_protocol.h"
#include "quiche/http2/test_tools/spdy_test_utils.h"
#include "quiche/common/platform/api/quiche_expect_bug.h"
#include "quiche/common/platform/api/quiche_test.h"
namespace http2 {
namespace test {
SpdyPriority;
SpdyStreamId;
Eq;
Optional;
template <typename StreamIdType>
class PriorityWriteSchedulerPeer { … };
namespace {
class PriorityWriteSchedulerTest : public quiche::test::QuicheTest { … };
TEST_F(PriorityWriteSchedulerTest, RegisterUnregisterStreams) { … }
TEST_F(PriorityWriteSchedulerTest, GetStreamPriority) { … }
TEST_F(PriorityWriteSchedulerTest, PopNextReadyStreamAndPriority) { … }
TEST_F(PriorityWriteSchedulerTest, UpdateStreamPriority) { … }
TEST_F(PriorityWriteSchedulerTest, MarkStreamReadyBack) { … }
TEST_F(PriorityWriteSchedulerTest, MarkStreamReadyFront) { … }
TEST_F(PriorityWriteSchedulerTest, MarkStreamReadyBackAndFront) { … }
TEST_F(PriorityWriteSchedulerTest, MarkStreamNotReady) { … }
TEST_F(PriorityWriteSchedulerTest, UnregisterRemovesStream) { … }
TEST_F(PriorityWriteSchedulerTest, ShouldYield) { … }
TEST_F(PriorityWriteSchedulerTest, GetLatestEventWithPriority) { … }
}
}
}