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

Side by Side Diff: url/url_parse_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 "url/third_party/mozilla/url_parse.h" 5 #include "url/third_party/mozilla/url_parse.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h>
9 #include <ostream>
8 10
9 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "testing/gtest/include/gtest/gtest-message.h"
10 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
11 #include "url/third_party/mozilla/url_parse.h"
12 14
13 // Interesting IE file:isms... 15 // Interesting IE file:isms...
14 // 16 //
15 // file:/foo/bar file:///foo/bar 17 // file:/foo/bar file:///foo/bar
16 // The result here seems totally invalid!?!? This isn't UNC. 18 // The result here seems totally invalid!?!? This isn't UNC.
17 // 19 //
18 // file:/ 20 // file:/
19 // file:// or any other number of slashes 21 // file:// or any other number of slashes
20 // IE6 doesn't do anything at all if you click on this link. No error: 22 // IE6 doesn't do anything at all if you click on this link. No error:
21 // nothing. IE6's history system seems to always color this link, so I'm 23 // nothing. IE6's history system seems to always color this link, so I'm
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 // The remaining components are never used for filesystem URLs. 683 // The remaining components are never used for filesystem URLs.
682 ExpectInvalidComponent(parsed.username); 684 ExpectInvalidComponent(parsed.username);
683 ExpectInvalidComponent(parsed.password); 685 ExpectInvalidComponent(parsed.password);
684 ExpectInvalidComponent(parsed.host); 686 ExpectInvalidComponent(parsed.host);
685 ExpectInvalidComponent(parsed.port); 687 ExpectInvalidComponent(parsed.port);
686 } 688 }
687 } 689 }
688 690
689 } // namespace 691 } // namespace
690 } // namespace url 692 } // namespace url
OLDNEW
« url/url_canon_icu.cc ('K') | « url/url_parse_file.cc ('k') | url/url_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698