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

Unified Diff: net/spdy/hpack_huffman_table_test.cc

Issue 980393003: Remove some dead code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert removal of DebugLogTableState() definition. Created 5 years, 9 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/spdy_framer.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 b1da6a881501e972fd8d6cb2dd8722d8ef878c9b..6a911491f303b9a787380604019ee7d36f67899a 100644
--- a/net/spdy/hpack_huffman_table_test.cc
+++ b/net/spdy/hpack_huffman_table_test.cc
@@ -18,7 +18,6 @@
using base::StringPiece;
using net::test::a2b_hex;
using std::string;
-using testing::ElementsAre;
using testing::ElementsAreArray;
using testing::Pointwise;
@@ -55,32 +54,6 @@ class HpackHuffmanTablePeer {
table_.decode_entries_.begin() + decode_table.entries_offset;
return std::vector<DecodeEntry>(begin, begin + decode_table.size());
}
- void DumpDecodeTable(const DecodeTable& table) {
- std::vector<DecodeEntry> entries = decode_entries(table);
- LOG(INFO) << "Table size " << (1 << table.indexed_length)
- << " prefix " << unsigned(table.prefix_length)
- << " indexed " << unsigned(table.indexed_length);
- size_t i = 0;
- while (i != table.size()) {
- const DecodeEntry& entry = entries[i];
- LOG(INFO) << i << ":"
- << " next_table " << unsigned(entry.next_table_index)
- << " length " << unsigned(entry.length)
- << " symbol " << unsigned(entry.symbol_id);
- size_t j = 1;
- for (; (i + j) != table.size(); j++) {
- const DecodeEntry& next = entries[i + j];
- if (next.next_table_index != entry.next_table_index ||
- next.length != entry.length ||
- next.symbol_id != entry.symbol_id)
- break;
- }
- if (j > 1) {
- LOG(INFO) << " (repeats " << j << " times)";
- }
- i += j;
- }
- }
private:
const HpackHuffmanTable& table_;
« no previous file with comments | « net/spdy/hpack_encoder_test.cc ('k') | net/spdy/spdy_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698