#include "net/server/web_socket_encoder.h"
#include <stddef.h>
#include "base/strings/strcat.h"
#include "net/websockets/websocket_deflate_parameters.h"
#include "net/websockets/websocket_extension.h"
#include "net/websockets/websocket_frame.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
TEST(WebSocketEncoderHandshakeTest, EmptyRequestShouldBeRejected) { … }
TEST(WebSocketEncoderHandshakeTest,
CreateServerWithoutClientMaxWindowBitsParameter) { … }
TEST(WebSocketEncoderHandshakeTest,
CreateServerWithServerNoContextTakeoverParameter) { … }
TEST(WebSocketEncoderHandshakeTest, FirstExtensionShouldBeChosen) { … }
TEST(WebSocketEncoderHandshakeTest, FirstValidExtensionShouldBeChosen) { … }
TEST(WebSocketEncoderHandshakeTest, AllExtensionsAreUnknownOrMalformed) { … }
class WebSocketEncoderTest : public testing::Test { … };
class WebSocketEncoderCompressionTest : public WebSocketEncoderTest { … };
TEST_F(WebSocketEncoderTest, DeflateDisabledEncoder) { … }
TEST_F(WebSocketEncoderTest, ClientToServer) { … }
TEST_F(WebSocketEncoderTest, ServerToClient) { … }
TEST_F(WebSocketEncoderTest, DecodeFragmentedMessageClientToServerDivided2) { … }
TEST_F(WebSocketEncoderTest, DecodeFragmentedMessageClientToServerDivided3) { … }
TEST_F(WebSocketEncoderTest, DecodeFragmentedMessageServerToClientDivided2) { … }
TEST_F(WebSocketEncoderTest, DecodeFragmentedMessageServerToClientDivided3) { … }
TEST_F(WebSocketEncoderCompressionTest, ClientToServer) { … }
TEST_F(WebSocketEncoderCompressionTest, ServerToClient) { … }
TEST_F(WebSocketEncoderCompressionTest, LongFrame) { … }
TEST_F(WebSocketEncoderCompressionTest, DecodeFragmentedMessageClientToServer) { … }
TEST_F(WebSocketEncoderCompressionTest, DecodeFragmentedMessageServerToClient) { … }
TEST_F(WebSocketEncoderCompressionTest, CheckPongFrameNotCompressed) { … }
TEST_F(WebSocketEncoderCompressionTest, CheckCloseFrameNotCompressed) { … }
}