OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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> |
| 6 |
5 #include "base/macros.h" | 7 #include "base/macros.h" |
6 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
7 #include "url/third_party/mozilla/url_parse.h" | 9 #include "url/third_party/mozilla/url_parse.h" |
8 #include "url/url_canon.h" | 10 #include "url/url_canon.h" |
9 #include "url/url_canon_stdstring.h" | 11 #include "url/url_canon_stdstring.h" |
10 #include "url/url_test_utils.h" | 12 #include "url/url_test_utils.h" |
11 #include "url/url_util.h" | 13 #include "url/url_util.h" |
12 | 14 |
13 namespace url { | 15 namespace url { |
14 | 16 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 353 |
352 bool valid = ResolveRelative(base, strlen(base), | 354 bool valid = ResolveRelative(base, strlen(base), |
353 base_parsed, rel, | 355 base_parsed, rel, |
354 strlen(rel), NULL, &output, | 356 strlen(rel), NULL, &output, |
355 &resolved_parsed); | 357 &resolved_parsed); |
356 EXPECT_TRUE(valid); | 358 EXPECT_TRUE(valid); |
357 EXPECT_FALSE(resolved_parsed.ref.is_valid()); | 359 EXPECT_FALSE(resolved_parsed.ref.is_valid()); |
358 } | 360 } |
359 | 361 |
360 } // namespace url | 362 } // namespace url |
OLD | NEW |