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/hpack/hpack_decoder.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
13 #include "net/spdy/hpack/hpack_encoder.h" | 12 #include "net/spdy/hpack/hpack_encoder.h" |
14 #include "net/spdy/hpack/hpack_input_stream.h" | 13 #include "net/spdy/hpack/hpack_input_stream.h" |
15 #include "net/spdy/hpack/hpack_output_stream.h" | 14 #include "net/spdy/hpack/hpack_output_stream.h" |
16 #include "net/spdy/spdy_headers_handler_interface.h" | 15 #include "net/spdy/spdy_headers_handler_interface.h" |
17 #include "net/spdy/spdy_protocol.h" | 16 #include "net/spdy/spdy_protocol.h" |
18 #include "net/spdy/spdy_test_utils.h" | 17 #include "net/spdy/spdy_test_utils.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 "foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU;" | 690 "foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU;" |
692 " max-age=3600; version=1"); | 691 " max-age=3600; version=1"); |
693 expectEntry(63, 52, "content-encoding", "gzip"); | 692 expectEntry(63, 52, "content-encoding", "gzip"); |
694 expectEntry(64, 65, "date", "Mon, 21 Oct 2013 20:13:22 GMT"); | 693 expectEntry(64, 65, "date", "Mon, 21 Oct 2013 20:13:22 GMT"); |
695 EXPECT_EQ(215u, decoder_peer_.header_table()->size()); | 694 EXPECT_EQ(215u, decoder_peer_.header_table()->size()); |
696 } | 695 } |
697 | 696 |
698 } // namespace | 697 } // namespace |
699 } // namespace test | 698 } // namespace test |
700 } // namespace net | 699 } // namespace net |
OLD | NEW |