#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "net/websockets/websocket_inflater.h"
#include <string>
#include <vector>
#include "net/base/io_buffer.h"
#include "net/websockets/websocket_deflater.h"
#include "net/websockets/websocket_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
std::string ToString(IOBufferWithSize* buffer) { … }
TEST(WebSocketInflaterTest, Construct) { … }
TEST(WebSocketInflaterTest, InflateHelloTakeOverContext) { … }
TEST(WebSocketInflaterTest, InflateHelloSmallCapacity) { … }
TEST(WebSocketInflaterTest, InflateHelloSmallCapacityGetTotalOutput) { … }
TEST(WebSocketInflaterTest, InflateInvalidData) { … }
TEST(WebSocketInflaterTest, ChokedInvalidData) { … }
TEST(WebSocketInflaterTest, MultipleAddBytesCalls) { … }
TEST(WebSocketInflaterTest, Reset) { … }
TEST(WebSocketInflaterTest, ResetAndLostContext) { … }
TEST(WebSocketInflaterTest, CallAddBytesAndFinishWithoutGetOutput) { … }
TEST(WebSocketInflaterTest, CallAddBytesAndFinishWithoutGetOutputChoked) { … }
TEST(WebSocketInflaterTest, LargeRandomDeflateInflate) { … }
}
}