Commit 2917c5ca authored by bnc's avatar bnc Committed by Commit bot

Minor cleanup.

Minor cleanup after https://crrev.com/2217173002 to reduce code divergence.

BUG=488484

Review-Url: https://codereview.chromium.org/2344613002
Cr-Commit-Position: refs/heads/master@{#418734}
parent 94676744
......@@ -56,7 +56,7 @@ class NET_EXPORT_PRIVATE HpackDecoderInterface {
virtual void SetHeaderTableDebugVisitor(
std::unique_ptr<HpackHeaderTable::DebugVisitorInterface> visitor) = 0;
// How much encoded data this decoder is willing to buffer.
// Set how much encoded data this decoder is willing to buffer.
virtual void set_max_decode_buffer_size_bytes(
size_t max_decode_buffer_size_bytes) = 0;
};
......
......@@ -135,7 +135,7 @@ TEST_P(HpackDecoderTest, AddHeaderDataWithHandleControlFrameHeadersData) {
second_input.size()));
// A string which would push the buffer over the threshold is refused.
const int kThirdInputSize =
(kMaxBufferSizeBytes - (first_input.size() + second_input.size())) + 1;
kMaxBufferSizeBytes - (first_input.size() + second_input.size()) + 1;
string third_input = string(kThirdInputSize, 'y');
ASSERT_GT(first_input.size() + second_input.size() + third_input.size(),
kMaxBufferSizeBytes);
......
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