| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/spdy_header_block.h" | 5 #include "net/spdy/spdy_header_block.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "net/log/net_log.h" | 11 #include "net/log/net_log_capture_mode.h" |
| 12 #include "net/spdy/spdy_test_utils.h" | 12 #include "net/spdy/spdy_test_utils.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 using std::make_pair; | 16 using std::make_pair; |
| 17 using std::string; | 17 using std::string; |
| 18 using ::testing::ElementsAre; | 18 using ::testing::ElementsAre; |
| 19 | 19 |
| 20 namespace net { | 20 namespace net { |
| 21 namespace test { | 21 namespace test { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 EXPECT_EQ("key1=value1; key2=value2; key3=value3", block["cookie"]); | 197 EXPECT_EQ("key1=value1; key2=value2; key3=value3", block["cookie"]); |
| 198 EXPECT_EQ("baz", block["foo"]); | 198 EXPECT_EQ("baz", block["foo"]); |
| 199 EXPECT_EQ(string("h1v1\0h1v2\0h1v3", 14), block["h1"]); | 199 EXPECT_EQ(string("h1v1\0h1v2\0h1v3", 14), block["h1"]); |
| 200 EXPECT_EQ(string("h2v1\0h2v2\0h2v3", 14), block["h2"]); | 200 EXPECT_EQ(string("h2v1\0h2v2\0h2v3", 14), block["h2"]); |
| 201 EXPECT_EQ(string("h3v1\0h3v2\0h3v3", 14), block["h3"]); | 201 EXPECT_EQ(string("h3v1\0h3v2\0h3v3", 14), block["h3"]); |
| 202 EXPECT_EQ("h4v1", block["h4"]); | 202 EXPECT_EQ("h4v1", block["h4"]); |
| 203 } | 203 } |
| 204 | 204 |
| 205 } // namespace test | 205 } // namespace test |
| 206 } // namespace net | 206 } // namespace net |
| OLD | NEW |