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

Unified Diff: net/spdy/hpack_huffman_table_test.cc

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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_huffman_table.cc ('k') | net/spdy/spdy_frame_builder.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 f3c09d44dec5808f02c520c861f2af883fb153dd..b1da6a881501e972fd8d6cb2dd8722d8ef878c9b 100644
--- a/net/spdy/hpack_huffman_table_test.cc
+++ b/net/spdy/hpack_huffman_table_test.cc
@@ -238,18 +238,12 @@ TEST_F(HpackHuffmanTableTest, ValidateInternalsWithSmallCode) {
{bits32("10011000000000000000000000000000"), 8, 6}, // 8th.
{bits32("10010000000000000000000000000000"), 5, 7}}; // 7th.
EXPECT_TRUE(table_.Initialize(code, arraysize(code)));
-
- EXPECT_THAT(peer_.code_by_id(), ElementsAre(
- bits32("01100000000000000000000000000000"),
- bits32("01110000000000000000000000000000"),
- bits32("00000000000000000000000000000000"),
- bits32("01000000000000000000000000000000"),
- bits32("10000000000000000000000000000000"),
- bits32("10001000000000000000000000000000"),
- bits32("10011000000000000000000000000000"),
- bits32("10010000000000000000000000000000")));
- EXPECT_THAT(peer_.length_by_id(), ElementsAre(
- 4, 4, 2, 3, 5, 5, 8, 5));
+ ASSERT_EQ(arraysize(code), peer_.code_by_id().size());
+ ASSERT_EQ(arraysize(code), peer_.length_by_id().size());
+ for (size_t i = 0; i < arraysize(code); ++i) {
+ EXPECT_EQ(code[i].code, peer_.code_by_id()[i]);
+ EXPECT_EQ(code[i].length, peer_.length_by_id()[i]);
+ }
EXPECT_EQ(1u, peer_.decode_tables().size());
{
« no previous file with comments | « net/spdy/hpack_huffman_table.cc ('k') | net/spdy/spdy_frame_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698