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

Unified Diff: net/spdy/core/hpack/hpack_huffman_decoder_test.cc

Issue 2908763002: Change HpackHuffmanDecoder::CanonicalToSource() return type. (Closed)
Patch Set: Re: #15. Created 3 years, 7 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/core/hpack/hpack_huffman_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/core/hpack/hpack_huffman_decoder_test.cc
diff --git a/net/spdy/core/hpack/hpack_huffman_decoder_test.cc b/net/spdy/core/hpack/hpack_huffman_decoder_test.cc
index ddf1bcd1cd22d29e832f95695c071e78eaec4e5a..8ab010f06b9077eb8c2f2199749fcf23b0698a4e 100644
--- a/net/spdy/core/hpack/hpack_huffman_decoder_test.cc
+++ b/net/spdy/core/hpack/hpack_huffman_decoder_test.cc
@@ -47,7 +47,7 @@ class HpackHuffmanDecoderPeer {
return HpackHuffmanDecoder::DecodeToCanonical(code_length, bits);
}
- static char CanonicalToSource(HuffmanWord canonical) {
+ static uint8_t CanonicalToSource(HuffmanWord canonical) {
return HpackHuffmanDecoder::CanonicalToSource(canonical);
}
};
@@ -68,8 +68,7 @@ class HpackHuffmanDecoderTest : public ::testing::Test {
if (canonical == 256u) {
return canonical;
}
- return static_cast<unsigned char>(
- HpackHuffmanDecoderPeer::CanonicalToSource(canonical));
+ return HpackHuffmanDecoderPeer::CanonicalToSource(canonical);
}
void EncodeString(SpdyStringPiece input, SpdyString* encoded) {
« no previous file with comments | « net/spdy/core/hpack/hpack_huffman_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698