OLD | NEW |
| (Empty) |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "net/http2/hpack/decoder/hpack_varint_decoder.h" | |
6 | |
7 #include <sstream> | |
8 | |
9 namespace net { | |
10 | |
11 std::string HpackVarintDecoder::DebugString() const { | |
12 std::stringstream ss; | |
13 ss << "HpackVarintDecoder(value=" << value_ << ", offset=" << offset_ << ")"; | |
14 return ss.str(); | |
15 } | |
16 | |
17 DecodeStatus HpackVarintDecoder::StartForTest(uint8_t prefix_value, | |
18 uint8_t prefix_mask, | |
19 DecodeBuffer* db) { | |
20 return Start(prefix_value, prefix_mask, db); | |
21 } | |
22 | |
23 DecodeStatus HpackVarintDecoder::StartExtendedForTest(uint8_t prefix_mask, | |
24 DecodeBuffer* db) { | |
25 return StartExtended(prefix_mask, db); | |
26 } | |
27 | |
28 DecodeStatus HpackVarintDecoder::ResumeForTest(DecodeBuffer* db) { | |
29 return Resume(db); | |
30 } | |
31 | |
32 std::ostream& operator<<(std::ostream& out, const HpackVarintDecoder& v) { | |
33 return out << v.DebugString(); | |
34 } | |
35 | |
36 } // namespace net | |
OLD | NEW |