| 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 "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 "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 Loading... |
| 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 |
| OLD | NEW |