| 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/core/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 "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
| 9 #include "net/test/gtest_util.h" | 9 #include "net/test/gtest_util.h" |
| 10 | 10 |
| 11 using base::StringPiece; | 11 using base::StringPiece; |
| 12 using std::string; | 12 using std::string; |
| 13 using testing::UnorderedElementsAre; | 13 using testing::UnorderedElementsAre; |
| 14 using testing::Pair; | 14 using testing::Pair; |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 headers[":scheme"] = "https"; | 350 headers[":scheme"] = "https"; |
| 351 EXPECT_FALSE(SpdyUtils::UrlIsValid(headers)); | 351 EXPECT_FALSE(SpdyUtils::UrlIsValid(headers)); |
| 352 headers[":authority"] = "www.google.com"; | 352 headers[":authority"] = "www.google.com"; |
| 353 EXPECT_FALSE(SpdyUtils::UrlIsValid(headers)); | 353 EXPECT_FALSE(SpdyUtils::UrlIsValid(headers)); |
| 354 headers[":path"] = "/index.html"; | 354 headers[":path"] = "/index.html"; |
| 355 EXPECT_TRUE(SpdyUtils::UrlIsValid(headers)); | 355 EXPECT_TRUE(SpdyUtils::UrlIsValid(headers)); |
| 356 } | 356 } |
| 357 | 357 |
| 358 } // namespace test | 358 } // namespace test |
| 359 } // namespace net | 359 } // namespace net |
| OLD | NEW |