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

Side by Side Diff: url/url_parse_unittest.cc

Issue 1152373003: url: Fix the TODO in url_parse.h header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « url/url_parse_internal.h ('k') | url/url_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/url_parse.h" 5 #include "url/third_party/mozilla/url_parse.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/url_parse.h" 9 #include "url/third_party/mozilla/url_parse.h"
10 10
11 // Interesting IE file:isms... 11 // Interesting IE file:isms...
12 // 12 //
13 // file:/foo/bar file:///foo/bar 13 // file:/foo/bar file:///foo/bar
14 // The result here seems totally invalid!?!? This isn't UNC. 14 // The result here seems totally invalid!?!? This isn't UNC.
15 // 15 //
16 // file:/ 16 // file:/
17 // file:// or any other number of slashes 17 // file:// or any other number of slashes
18 // IE6 doesn't do anything at all if you click on this link. No error: 18 // IE6 doesn't do anything at all if you click on this link. No error:
19 // nothing. IE6's history system seems to always color this link, so I'm 19 // 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
679 // The remaining components are never used for filesystem urls. 679 // The remaining components are never used for filesystem urls.
680 ExpectInvalidComponent(parsed.username); 680 ExpectInvalidComponent(parsed.username);
681 ExpectInvalidComponent(parsed.password); 681 ExpectInvalidComponent(parsed.password);
682 ExpectInvalidComponent(parsed.host); 682 ExpectInvalidComponent(parsed.host);
683 ExpectInvalidComponent(parsed.port); 683 ExpectInvalidComponent(parsed.port);
684 } 684 }
685 } 685 }
686 686
687 } // namespace 687 } // namespace
688 } // namespace url 688 } // namespace url
OLDNEW
« no previous file with comments | « url/url_parse_internal.h ('k') | url/url_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698