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/gurl.h" | 9 #include "url/gurl.h" |
8 #include "url/url_canon.h" | 10 #include "url/url_canon.h" |
9 #include "url/url_test_utils.h" | 11 #include "url/url_test_utils.h" |
10 | 12 |
11 namespace url { | 13 namespace url { |
12 | 14 |
13 using test_utils::WStringToUTF16; | 15 using test_utils::WStringToUTF16; |
14 using test_utils::ConvertUTF8ToUTF16; | 16 using test_utils::ConvertUTF8ToUTF16; |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 }; | 677 }; |
676 | 678 |
677 for (const auto& test : cases) { | 679 for (const auto& test : cases) { |
678 GURL url(test.url); | 680 GURL url(test.url); |
679 EXPECT_EQ(test.expected, url.path()) << test.url; | 681 EXPECT_EQ(test.expected, url.path()) << test.url; |
680 EXPECT_EQ(test.expected, url.GetContent()) << test.url; | 682 EXPECT_EQ(test.expected, url.GetContent()) << test.url; |
681 } | 683 } |
682 } | 684 } |
683 | 685 |
684 } // namespace url | 686 } // namespace url |
OLD | NEW |