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