OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "net/quic/spdy_utils.h" | 4 #include "net/quic/spdy_utils.h" |
5 | 5 |
6 #include "base/macros.h" | 6 #include "base/macros.h" |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "net/test/gtest_util.h" | 8 #include "net/test/gtest_util.h" |
9 | 9 |
10 using std::string; | 10 using std::string; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 EXPECT_FALSE(SpdyUtils::UrlIsValid(headers)); | 130 EXPECT_FALSE(SpdyUtils::UrlIsValid(headers)); |
131 headers[":scheme"] = "https"; | 131 headers[":scheme"] = "https"; |
132 EXPECT_FALSE(SpdyUtils::UrlIsValid(headers)); | 132 EXPECT_FALSE(SpdyUtils::UrlIsValid(headers)); |
133 headers[":authority"] = "www.google.com"; | 133 headers[":authority"] = "www.google.com"; |
134 EXPECT_FALSE(SpdyUtils::UrlIsValid(headers)); | 134 EXPECT_FALSE(SpdyUtils::UrlIsValid(headers)); |
135 headers[":path"] = "/index.html"; | 135 headers[":path"] = "/index.html"; |
136 EXPECT_TRUE(SpdyUtils::UrlIsValid(headers)); | 136 EXPECT_TRUE(SpdyUtils::UrlIsValid(headers)); |
137 } | 137 } |
138 | 138 |
139 } // namespace test | 139 } // namespace test |
140 } // namespace net_quic | 140 } // namespace net |
OLD | NEW |