Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: net/spdy/hpack_huffman_table_test.cc

Issue 247793002: HPACK: Refactor and simplify HpackOutputStream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/hpack_encoder_test.cc ('k') | net/spdy/hpack_output_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack_huffman_table_test.cc
diff --git a/net/spdy/hpack_huffman_table_test.cc b/net/spdy/hpack_huffman_table_test.cc
index 0c6417bb7e5f7f623cfced10f5e4b6f15aa64396..c4ceb97d95086aefba080dd987329e5c8ae1da5f 100644
--- a/net/spdy/hpack_huffman_table_test.cc
+++ b/net/spdy/hpack_huffman_table_test.cc
@@ -260,7 +260,7 @@ TEST(HpackHuffmanTableTest, ValidateInternalsWithSmallCode) {
StringPiece expect(expect_storage, arraysize(expect_storage));
string buffer_in, buffer_out;
- HpackOutputStream output_stream(kuint32max);
+ HpackOutputStream output_stream;
table.EncodeString(input, &output_stream);
output_stream.TakeString(&buffer_in);
EXPECT_EQ(buffer_in, expect);
@@ -390,7 +390,7 @@ TEST(HpackHuffmanTableTest, SpecRequestExamples) {
const string& encoded(test_table[i]);
const string& decoded(test_table[i+1]);
HpackInputStream input_stream(kuint32max, encoded);
- HpackOutputStream output_stream(kuint32max);
+ HpackOutputStream output_stream;
buffer.reserve(decoded.size());
EXPECT_TRUE(table.DecodeString(&input_stream, decoded.size(), &buffer));
@@ -426,7 +426,7 @@ TEST(HpackHuffmanTableTest, SpecResponseExamples) {
const string& encoded(test_table[i]);
const string& decoded(test_table[i+1]);
HpackInputStream input_stream(kuint32max, encoded);
- HpackOutputStream output_stream(kuint32max);
+ HpackOutputStream output_stream;
buffer.reserve(decoded.size());
EXPECT_TRUE(table.DecodeString(&input_stream, decoded.size(), &buffer));
@@ -446,7 +446,7 @@ TEST(HpackHuffmanTableTest, RoundTripIndvidualSymbols) {
StringPiece input(storage, arraysize(storage));
string buffer_in, buffer_out(input.size(), '\0');
- HpackOutputStream output_stream(kuint32max);
+ HpackOutputStream output_stream;
table.EncodeString(input, &output_stream);
output_stream.TakeString(&buffer_in);
@@ -467,7 +467,7 @@ TEST(HpackHuffmanTableTest, RoundTripSymbolSequence) {
StringPiece input(storage, arraysize(storage));
string buffer_in, buffer_out(input.size(), '\0');
- HpackOutputStream output_stream(kuint32max);
+ HpackOutputStream output_stream;
table.EncodeString(input, &output_stream);
output_stream.TakeString(&buffer_in);
« no previous file with comments | « net/spdy/hpack_encoder_test.cc ('k') | net/spdy/hpack_output_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698