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 <errno.h> | 5 #include <errno.h> |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "url/third_party/mozilla/url_parse.h" |
9 #include "url/url_canon.h" | 10 #include "url/url_canon.h" |
10 #include "url/url_canon_internal.h" | 11 #include "url/url_canon_internal.h" |
11 #include "url/url_canon_stdstring.h" | 12 #include "url/url_canon_stdstring.h" |
12 #include "url/url_parse.h" | |
13 #include "url/url_test_utils.h" | 13 #include "url/url_test_utils.h" |
14 | 14 |
15 namespace url { | 15 namespace url { |
16 | 16 |
17 using test_utils::WStringToUTF16; | 17 using test_utils::WStringToUTF16; |
18 using test_utils::ConvertUTF8ToUTF16; | 18 using test_utils::ConvertUTF8ToUTF16; |
19 using test_utils::ConvertUTF16ToUTF8; | 19 using test_utils::ConvertUTF16ToUTF8; |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
(...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2122 repl_output.Complete(); | 2122 repl_output.Complete(); |
2123 | 2123 |
2124 // Generate the expected string and check. | 2124 // Generate the expected string and check. |
2125 std::string expected("file:///foo?"); | 2125 std::string expected("file:///foo?"); |
2126 for (size_t i = 0; i < new_query.length(); i++) | 2126 for (size_t i = 0; i < new_query.length(); i++) |
2127 expected.push_back('a'); | 2127 expected.push_back('a'); |
2128 EXPECT_TRUE(expected == repl_str); | 2128 EXPECT_TRUE(expected == repl_str); |
2129 } | 2129 } |
2130 | 2130 |
2131 } // namespace url | 2131 } // namespace url |
OLD | NEW |