#include "web_transport_throttle_context.h"
#include "base/check_op.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace {
ThrottleResult;
Tracker;
class WebTransportThrottleContextTest : public testing::Test { … };
class CallTrackingCallback { … };
TEST_F(WebTransportThrottleContextTest, PerformThrottleSyncWithNonePending) { … }
TEST_F(WebTransportThrottleContextTest, PerformThrottleNotSyncWithOnePending) { … }
TEST_F(WebTransportThrottleContextTest, Max64Connections) { … }
TEST_F(WebTransportThrottleContextTest, DelayWithOnePending) { … }
TEST_F(WebTransportThrottleContextTest, DelayWithThreePending) { … }
TEST_F(WebTransportThrottleContextTest, DelayIsTruncated) { … }
TEST_F(WebTransportThrottleContextTest, EstablishedRemainsPendingFor10ms) { … }
TEST_F(WebTransportThrottleContextTest, FailedRemainsPendingFor3m) { … }
TEST_F(WebTransportThrottleContextTest, HandshakeCompletionTriggersPending) { … }
TEST_F(WebTransportThrottleContextTest, HandshakeCompletionResetsTimer) { … }
TEST_F(WebTransportThrottleContextTest,
ManyHandshakeCompletionsTriggerPending) { … }
}
}