| 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_http_utils.h" | 5 #include "net/spdy/chromium/spdy_http_utils.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| 11 #include "net/http/http_request_info.h" | 11 #include "net/http/http_request_info.h" |
| 12 #include "net/spdy/spdy_framer.h" | 12 #include "net/spdy/core/spdy_framer.h" |
| 13 #include "net/spdy/spdy_test_utils.h" | 13 #include "net/spdy/core/spdy_test_utils.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 { | 18 namespace { |
| 19 | 19 |
| 20 bool kDirect = true; | 20 bool kDirect = true; |
| 21 | 21 |
| 22 } // namespace | 22 } // namespace |
| 23 | 23 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 EXPECT_EQ("CONNECT", headers[":method"]); | 90 EXPECT_EQ("CONNECT", headers[":method"]); |
| 91 EXPECT_TRUE(headers.end() == headers.find(":scheme")); | 91 EXPECT_TRUE(headers.end() == headers.find(":scheme")); |
| 92 EXPECT_EQ("www.google.com:443", headers[":authority"]); | 92 EXPECT_EQ("www.google.com:443", headers[":authority"]); |
| 93 EXPECT_EQ(headers.end(), headers.find(":path")); | 93 EXPECT_EQ(headers.end(), headers.find(":path")); |
| 94 EXPECT_EQ(headers.end(), headers.find(":scheme")); | 94 EXPECT_EQ(headers.end(), headers.find(":scheme")); |
| 95 EXPECT_TRUE(headers.end() == headers.find(":version")); | 95 EXPECT_TRUE(headers.end() == headers.find(":version")); |
| 96 EXPECT_EQ("Chrome/1.1", headers["user-agent"]); | 96 EXPECT_EQ("Chrome/1.1", headers["user-agent"]); |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace net | 99 } // namespace net |
| OLD | NEW |