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_decoder.h" | 5 #include "net/spdy/core/hpack/hpack_decoder.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "net/spdy/hpack/hpack_encoder.h" | 10 #include "net/spdy/chromium/spdy_flags.h" |
11 #include "net/spdy/hpack/hpack_input_stream.h" | 11 #include "net/spdy/core/hpack/hpack_encoder.h" |
12 #include "net/spdy/hpack/hpack_output_stream.h" | 12 #include "net/spdy/core/hpack/hpack_input_stream.h" |
13 #include "net/spdy/spdy_flags.h" | 13 #include "net/spdy/core/hpack/hpack_output_stream.h" |
14 #include "net/spdy/spdy_protocol.h" | 14 #include "net/spdy/core/spdy_protocol.h" |
15 #include "net/spdy/spdy_test_utils.h" | 15 #include "net/spdy/core/spdy_test_utils.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 namespace test { | 20 namespace test { |
21 | 21 |
22 class HpackDecoderPeer { | 22 class HpackDecoderPeer { |
23 public: | 23 public: |
24 explicit HpackDecoderPeer(HpackDecoder* decoder) : decoder_(decoder) {} | 24 explicit HpackDecoderPeer(HpackDecoder* decoder) : decoder_(decoder) {} |
25 | 25 |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 "foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU;" | 843 "foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU;" |
844 " max-age=3600; version=1"); | 844 " max-age=3600; version=1"); |
845 expectEntry(63, 52, "content-encoding", "gzip"); | 845 expectEntry(63, 52, "content-encoding", "gzip"); |
846 expectEntry(64, 65, "date", "Mon, 21 Oct 2013 20:13:22 GMT"); | 846 expectEntry(64, 65, "date", "Mon, 21 Oct 2013 20:13:22 GMT"); |
847 EXPECT_EQ(215u, decoder_peer_.header_table()->size()); | 847 EXPECT_EQ(215u, decoder_peer_.header_table()->size()); |
848 } | 848 } |
849 | 849 |
850 } // namespace | 850 } // namespace |
851 } // namespace test | 851 } // namespace test |
852 } // namespace net | 852 } // namespace net |
OLD | NEW |