OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 #include <ostream> |
7 | 8 |
8 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "testing/gtest/include/gtest/gtest-message.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "url/gurl.h" | 12 #include "url/gurl.h" |
11 #include "url/scheme_host_port.h" | 13 #include "url/scheme_host_port.h" |
12 | 14 |
13 namespace { | 15 namespace { |
14 | 16 |
15 TEST(SchemeHostPortTest, Invalid) { | 17 TEST(SchemeHostPortTest, Invalid) { |
16 url::SchemeHostPort invalid; | 18 url::SchemeHostPort invalid; |
17 EXPECT_EQ("", invalid.scheme()); | 19 EXPECT_EQ("", invalid.scheme()); |
18 EXPECT_EQ("", invalid.host()); | 20 EXPECT_EQ("", invalid.host()); |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 for (size_t j = i; j < arraysize(tuples); j++) { | 212 for (size_t j = i; j < arraysize(tuples); j++) { |
211 url::SchemeHostPort to_compare(tuples[j].scheme, tuples[j].host, | 213 url::SchemeHostPort to_compare(tuples[j].scheme, tuples[j].host, |
212 tuples[j].port); | 214 tuples[j].port); |
213 EXPECT_EQ(i < j, current < to_compare) << i << " < " << j; | 215 EXPECT_EQ(i < j, current < to_compare) << i << " < " << j; |
214 EXPECT_EQ(j < i, to_compare < current) << j << " < " << i; | 216 EXPECT_EQ(j < i, to_compare < current) << j << " < " << i; |
215 } | 217 } |
216 } | 218 } |
217 } | 219 } |
218 | 220 |
219 } // namespace url | 221 } // namespace url |
OLD | NEW |