Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: url/url_canon_unittest.cc

Issue 1561693003: IWYU fixes for url/... Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added IWYU-pragma-keep in a few places. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include <stddef.h> 6 #include <ostream>
7 #include <string>
7 8
8 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "testing/gtest/include/gtest/gtest-death-test.h"
11 #include "testing/gtest/include/gtest/gtest-message.h"
9 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
10 #include "url/third_party/mozilla/url_parse.h" 13 #include "url/third_party/mozilla/url_parse.h"
11 #include "url/url_canon.h" 14 #include "url/url_canon.h"
12 #include "url/url_canon_internal.h" 15 #include "url/url_canon_internal.h"
13 #include "url/url_canon_stdstring.h" 16 #include "url/url_canon_stdstring.h"
14 #include "url/url_test_utils.h" 17 #include "url/url_test_utils.h"
15 18
16 namespace url { 19 namespace url {
17 20
18 using test_utils::WStringToUTF16; 21 using test_utils::WStringToUTF16;
(...skipping 2140 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 repl_output.Complete(); 2162 repl_output.Complete();
2160 2163
2161 // Generate the expected string and check. 2164 // Generate the expected string and check.
2162 std::string expected("file:///foo?"); 2165 std::string expected("file:///foo?");
2163 for (size_t i = 0; i < new_query.length(); i++) 2166 for (size_t i = 0; i < new_query.length(); i++)
2164 expected.push_back('a'); 2167 expected.push_back('a');
2165 EXPECT_TRUE(expected == repl_str); 2168 EXPECT_TRUE(expected == repl_str);
2166 } 2169 }
2167 2170
2168 } // namespace url 2171 } // namespace url
OLDNEW
« url/url_canon_icu.cc ('K') | « url/url_canon_stdurl.cc ('k') | url/url_parse_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698