#include "services/network/websocket_throttler.h"
#include <optional>
#include <vector>
#include "base/test/task_environment.h"
#include "services/network/public/mojom/network_context.mojom-forward.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network {
namespace {
class WebSocketThrottlerTest : public ::testing::Test { … };
TEST(WebSocketPerProcessThrottlerTest, InitialState) { … }
TEST(WebSocketPerProcessThrottlerTest, Pending) { … }
TEST(WebSocketPerProcessThrottlerTest, Complete) { … }
TEST(WebSocketPerProcessThrottlerTest, Failed) { … }
TEST(WebSocketPerProcessThrottlerTest, TooManyPendingConnections) { … }
TEST(WebSocketPerProcessThrottlerTest, CompletedConnectionsDontCount) { … }
TEST(WebSocketPerProcessThrottlerTest, FailedConnectionsDontCount) { … }
TEST(WebSocketPerProcessThrottlerTest, Roll) { … }
TEST(WebSocketPerProcessThrottlerTest, CalculateDelay_3Pending) { … }
TEST(WebSocketPerProcessThrottlerTest, CalculateDelay_7Pending) { … }
TEST(WebSocketPerProcessThrottlerTest, CalculateDelay_16Pending) { … }
TEST(WebSocketPerProcessThrottlerTest, CalculateDelay_3Failure) { … }
TEST(WebSocketPerProcessThrottlerTest, CalculateDelay_7Failure) { … }
TEST(WebSocketPerProcessThrottlerTest, CalculateDelay_16Failure) { … }
TEST(WebSocketPerProcessThrottlerTest, MoveTracker) { … }
TEST_F(WebSocketThrottlerTest, InitialState) { … }
TEST_F(WebSocketThrottlerTest, TooManyPendingConnections) { … }
TEST_F(WebSocketThrottlerTest, BrowserProcessNotThrottled) { … }
}
}