chromium/content/browser/webtransport/web_transport_throttle_context_unittest.cc

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

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

// The reason for testing with 3 pending connections is that the possible range
// of delays doesn't overlap with 1 pending connection.
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) {}

}  // namespace

}  // namespace content