OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/spdy/hpack/hpack_input_stream.h" | 5 #include "net/spdy/core/hpack/hpack_input_stream.h" |
6 | 6 |
7 #include <bitset> | 7 #include <bitset> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "net/spdy/hpack/hpack_constants.h" | 11 #include "net/spdy/core/hpack/hpack_constants.h" |
12 #include "net/spdy/spdy_test_utils.h" | 12 #include "net/spdy/core/spdy_test_utils.h" |
13 #include "net/test/gtest_util.h" | 13 #include "net/test/gtest_util.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 namespace test { | 18 namespace test { |
19 | 19 |
20 using test::a2b_hex; | 20 using test::a2b_hex; |
21 | 21 |
22 // Hex representation of encoded length and Huffman string. | 22 // Hex representation of encoded length and Huffman string. |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 HpackInputStream input_stream2(input); | 771 HpackInputStream input_stream2(input); |
772 HpackInputStreamPeer input_stream2_peer(&input_stream2); | 772 HpackInputStreamPeer input_stream2_peer(&input_stream2); |
773 EXPECT_FALSE(input_stream2.DecodeNextHuffmanString(&output)); | 773 EXPECT_FALSE(input_stream2.DecodeNextHuffmanString(&output)); |
774 EXPECT_EQ(1u, input_stream2_peer.ParsedBytesCurrent()); | 774 EXPECT_EQ(1u, input_stream2_peer.ParsedBytesCurrent()); |
775 EXPECT_TRUE(input_stream2.NeedMoreData()); | 775 EXPECT_TRUE(input_stream2.NeedMoreData()); |
776 } | 776 } |
777 | 777 |
778 } // namespace test | 778 } // namespace test |
779 | 779 |
780 } // namespace net | 780 } // namespace net |
OLD | NEW |