OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/quic/core/quic_header_list.h" | 5 #include "net/quic/core/quic_header_list.h" |
6 | 6 |
7 #include "net/quic/core/quic_flags.h" | 7 #include "net/quic/platform/api/quic_flags.h" |
8 #include "net/quic/test_tools/quic_test_utils.h" | 8 #include "net/quic/test_tools/quic_test_utils.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 using std::string; | 11 using std::string; |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 // This test verifies that QuicHeaderList accumulates header pairs in order. | 15 // This test verifies that QuicHeaderList accumulates header pairs in order. |
16 TEST(QuicHeaderListTest, OnHeader) { | 16 TEST(QuicHeaderListTest, OnHeader) { |
17 QuicHeaderList headers; | 17 QuicHeaderList headers; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 headers.OnHeader("beep", ""); | 51 headers.OnHeader("beep", ""); |
52 | 52 |
53 QuicHeaderList headers2(headers); | 53 QuicHeaderList headers2(headers); |
54 QuicHeaderList headers3 = headers; | 54 QuicHeaderList headers3 = headers; |
55 | 55 |
56 EXPECT_EQ("{ foo=bar, april=fools, beep=, }", headers2.DebugString()); | 56 EXPECT_EQ("{ foo=bar, april=fools, beep=, }", headers2.DebugString()); |
57 EXPECT_EQ("{ foo=bar, april=fools, beep=, }", headers3.DebugString()); | 57 EXPECT_EQ("{ foo=bar, april=fools, beep=, }", headers3.DebugString()); |
58 } | 58 } |
59 | 59 |
60 } // namespace net | 60 } // namespace net |
OLD | NEW |