Commit 291369f7 authored by Canon Mukai's avatar Canon Mukai Committed by Commit Bot

Remove accidentally submitted WebSocketDeflaterTest

WebSocketDeflaterTest.WindowBits11 was added by accident in
https://chromium-review.googlesource.com/c/chromium/src/+/1767285.
Remove it.

Bug: 757387
Change-Id: I41e66514eaedf1b76612b2bc4f929f69bf51c979
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1773883Reviewed-by: default avatarAdam Rice <ricea@chromium.org>
Commit-Queue: Canon Mukai <canonmukai@google.com>
Cr-Commit-Position: refs/heads/master@{#691046}
parent 71a797ee
...@@ -132,24 +132,6 @@ TEST(WebSocketDeflaterTest, WindowBits10) { ...@@ -132,24 +132,6 @@ TEST(WebSocketDeflaterTest, WindowBits10) {
ToString(actual.get())); ToString(actual.get()));
} }
// I add this test.
TEST(WebSocketDeflaterTest, WindowBits11) {
WebSocketDeflater deflater(WebSocketDeflater::DO_NOT_TAKE_OVER_CONTEXT);
deflater.Initialize(10);
// Set the head and tail of |input| so that back-reference
// can be used if the window size is sufficiently-large.
const std::string word = "Chromium";
std::string input = word + std::string(256, 'a') + word;
scoped_refptr<IOBufferWithSize> actual;
ASSERT_TRUE(deflater.AddBytes(input.data(), input.size()));
ASSERT_TRUE(deflater.Finish());
actual = deflater.GetOutput(deflater.CurrentOutputSize());
EXPECT_EQ(
std::string("r\xce(\xca\xcf\xcd,\xcdM\x1c\xe1\xc0\x19\x1a\x0e\0\0", 17),
ToString(actual.get()));
}
} // namespace } // namespace
} // namespace net } // namespace net
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment