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

Unified Diff: net/spdy/hpack_input_stream_test.cc

Issue 355493003: Update net/spdy naming per style guideline with clang_tidy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | net/spdy/spdy_frame_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack_input_stream_test.cc
diff --git a/net/spdy/hpack_input_stream_test.cc b/net/spdy/hpack_input_stream_test.cc
index 215d1c6959d9d319e74acec57675132bc06d9408..3686a32b4d9d67fab0d544690ba2d393a9fe179c 100644
--- a/net/spdy/hpack_input_stream_test.cc
+++ b/net/spdy/hpack_input_stream_test.cc
@@ -25,13 +25,14 @@ using test::a2b_hex;
const size_t kLiteralBound = 1024;
class HpackInputStreamTest : public ::testing::Test {
- protected:
+ public:
virtual void SetUp() {
std::vector<HpackHuffmanSymbol> code = HpackHuffmanCode();
- EXPECT_TRUE(huffman_table.Initialize(&code[0], code.size()));
+ EXPECT_TRUE(huffman_table_.Initialize(&code[0], code.size()));
}
- HpackHuffmanTable huffman_table;
+ protected:
+ HpackHuffmanTable huffman_table_;
};
// Hex representation of encoded length and Huffman string.
@@ -521,7 +522,7 @@ TEST_F(HpackInputStreamTest, DecodeNextHuffmanString) {
HpackInputStream input_stream(arraysize(kDecodedHuffmanFixture)-1, input);
EXPECT_TRUE(input_stream.HasMoreData());
- EXPECT_TRUE(input_stream.DecodeNextHuffmanString(huffman_table, &output));
+ EXPECT_TRUE(input_stream.DecodeNextHuffmanString(huffman_table_, &output));
EXPECT_EQ(kDecodedHuffmanFixture, output);
EXPECT_FALSE(input_stream.HasMoreData());
}
@@ -533,7 +534,7 @@ TEST_F(HpackInputStreamTest, DecodeNextHuffmanStringSizeLimit) {
// Decoded string overflows the max string literal.
EXPECT_TRUE(input_stream.HasMoreData());
- EXPECT_FALSE(input_stream.DecodeNextHuffmanString(huffman_table, &output));
+ EXPECT_FALSE(input_stream.DecodeNextHuffmanString(huffman_table_, &output));
}
TEST_F(HpackInputStreamTest, DecodeNextHuffmanStringNotEnoughInput) {
@@ -543,7 +544,7 @@ TEST_F(HpackInputStreamTest, DecodeNextHuffmanStringNotEnoughInput) {
// Not enough buffer for declared encoded length.
EXPECT_TRUE(input_stream.HasMoreData());
- EXPECT_FALSE(input_stream.DecodeNextHuffmanString(huffman_table, &output));
+ EXPECT_FALSE(input_stream.DecodeNextHuffmanString(huffman_table_, &output));
}
TEST_F(HpackInputStreamTest, PeekBitsAndConsume) {
« no previous file with comments | « no previous file | net/spdy/spdy_frame_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698