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> |
| 7 #include <ostream> |
6 | 8 |
7 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "testing/gtest/include/gtest/gtest-message.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "url/gurl.h" | 12 #include "url/gurl.h" |
10 #include "url/url_canon.h" | 13 #include "url/url_canon.h" |
11 #include "url/url_test_utils.h" | 14 #include "url/url_test_utils.h" |
12 | 15 |
13 namespace url { | 16 namespace url { |
14 | 17 |
15 using test_utils::WStringToUTF16; | 18 using test_utils::WStringToUTF16; |
16 using test_utils::ConvertUTF8ToUTF16; | 19 using test_utils::ConvertUTF8ToUTF16; |
17 | 20 |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 }; | 680 }; |
678 | 681 |
679 for (const auto& test : cases) { | 682 for (const auto& test : cases) { |
680 GURL url(test.url); | 683 GURL url(test.url); |
681 EXPECT_EQ(test.expected, url.path()) << test.url; | 684 EXPECT_EQ(test.expected, url.path()) << test.url; |
682 EXPECT_EQ(test.expected, url.GetContent()) << test.url; | 685 EXPECT_EQ(test.expected, url.GetContent()) << test.url; |
683 } | 686 } |
684 } | 687 } |
685 | 688 |
686 } // namespace url | 689 } // namespace url |
OLD | NEW |