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

Side by Side Diff: components/url_formatter/url_formatter_unittest.cc

Issue 2865213002: Remove a small range of Tibetan characters from the allowed IDN set on Mac. (Closed)
Patch Set: Created 3 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 | « components/url_formatter/url_formatter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/url_formatter/url_formatter.h" 5 #include "components/url_formatter/url_formatter.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 // Combining Long Solidus Overlay 348 // Combining Long Solidus Overlay
349 {"google.xn--comabc-k8d", L"google.com\x0338" L"abc", false}, 349 {"google.xn--comabc-k8d", L"google.com\x0338" L"abc", false},
350 // Hyphenation Point instead of Katakana Middle dot 350 // Hyphenation Point instead of Katakana Middle dot
351 {"xn--svgy16dha.jp", L"\x30a1\x2027\x30a3.jp", false}, 351 {"xn--svgy16dha.jp", L"\x30a1\x2027\x30a3.jp", false},
352 // Gershayim with other Hebrew characters is allowed. 352 // Gershayim with other Hebrew characters is allowed.
353 {"xn--5db6bh9b.il", L"\x05e9\x05d1\x05f4\x05e6.il", true}, 353 {"xn--5db6bh9b.il", L"\x05e9\x05d1\x05f4\x05e6.il", true},
354 // Hebrew Gershayim with Latin is disallowed. 354 // Hebrew Gershayim with Latin is disallowed.
355 {"xn--ab-yod.com", L"a\x05f4" L"b.com", false}, 355 {"xn--ab-yod.com", L"a\x05f4" L"b.com", false},
356 // Hebrew Gershayim with Arabic is disallowed. 356 // Hebrew Gershayim with Arabic is disallowed.
357 {"xn--5eb7h.eg", L"\x0628\x05f4.eg", false}, 357 {"xn--5eb7h.eg", L"\x0628\x05f4.eg", false},
358 #if defined(OS_MACOSX)
359 // Tibetan transliteration characters are disallowed on Mac.
360 {"xn--com-luma.test.pl", L"\u0f8c.test.pl", false},
361 #endif
358 362
359 // Hyphens (http://unicode.org/cldr/utility/confusables.jsp?a=-) 363 // Hyphens (http://unicode.org/cldr/utility/confusables.jsp?a=-)
360 // Hyphen-Minus (the only hyphen allowed) 364 // Hyphen-Minus (the only hyphen allowed)
361 // abc-def 365 // abc-def
362 {"abc-def.com", L"abc-def.com", true}, 366 {"abc-def.com", L"abc-def.com", true},
363 // Modifier Letter Minus Sign 367 // Modifier Letter Minus Sign
364 {"xn--abcdef-5od.com", L"abc\x02d7" L"def.com", false}, 368 {"xn--abcdef-5od.com", L"abc\x02d7" L"def.com", false},
365 // Hyphen 369 // Hyphen
366 {"xn--abcdef-dg0c.com", L"abc\x2010" L"def.com", false}, 370 {"xn--abcdef-dg0c.com", L"abc\x2010" L"def.com", false},
367 // Non-Breaking Hyphen 371 // Non-Breaking Hyphen
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 0, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, 0, kNpos, kNpos, kNpos, kNpos, 991 0, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, 0, kNpos, kNpos, kNpos, kNpos,
988 0, 1, 2, 3, 4, 5, 6, 7 992 0, 1, 2, 3, 4, 5, 6, 7
989 }; 993 };
990 CheckAdjustedOffsets("http://user@foo.com/", kFormatUrlOmitAll, 994 CheckAdjustedOffsets("http://user@foo.com/", kFormatUrlOmitAll,
991 net::UnescapeRule::NORMAL, omit_all_offsets); 995 net::UnescapeRule::NORMAL, omit_all_offsets);
992 } 996 }
993 997
994 } // namespace 998 } // namespace
995 999
996 } // namespace url_formatter 1000 } // namespace url_formatter
OLDNEW
« no previous file with comments | « components/url_formatter/url_formatter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698