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

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

Issue 2447513002: Update ICU to 58.1 (Closed)
Patch Set: fix a typo in html comment Created 4 years, 1 month 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 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // Thai tone mark malek(U+0E48) repeated 183 // Thai tone mark malek(U+0E48) repeated
184 {"xn--03c0b3ca.th", L"\x0e23\x0e35\x0e48\x0e48.th", false}, 184 {"xn--03c0b3ca.th", L"\x0e23\x0e35\x0e48\x0e48.th", false},
185 // Accute accent repeated 185 // Accute accent repeated
186 {"xn--a-xbba.com", L"a\x0301\x0301.com", false}, 186 {"xn--a-xbba.com", L"a\x0301\x0301.com", false},
187 // 'a' with acuted accent + another acute accent 187 // 'a' with acuted accent + another acute accent
188 {"xn--1ca20i.com", L"\x00e1\x0301.com", false}, 188 {"xn--1ca20i.com", L"\x00e1\x0301.com", false},
189 189
190 // Mixed script confusable 190 // Mixed script confusable
191 // google with Armenian Small Letter Oh(U+0585) 191 // google with Armenian Small Letter Oh(U+0585)
192 {"xn--gogle-lkg.com", L"g\x0585ogle.com", false}, 192 {"xn--gogle-lkg.com", L"g\x0585ogle.com", false},
193 {"xn--range-kkg.com", L"\x0585range.com", false},
194 {"xn--cucko-pkg.com", L"cucko\x0585.com", false},
195 // Latin 'o' in Armenian.
196 {"xn--o-ybcg0cu0cq.com",
197 L"o\x0585\x0580\x0574\x0578\x0582\x0566\x0568.com", false},
193 // Hiragana HE(U+3078) mixed with Katakana 198 // Hiragana HE(U+3078) mixed with Katakana
194 {"xn--49jxi3as0d0fpc.com", 199 {"xn--49jxi3as0d0fpc.com",
195 L"\x30e2\x30d2\x30fc\x30c8\x3078\x30d6\x30f3.com", false}, 200 L"\x30e2\x30d2\x30fc\x30c8\x3078\x30d6\x30f3.com", false},
196 // U+30FC + Han 201 // U+30FC + Han
197 {"xn--weka801xo02a.com", L"\x30fc\x52d5\x753b\x30fc.com", false}, 202 {"xn--weka801xo02a.com", L"\x30fc\x52d5\x753b\x30fc.com", false},
198 // Han + U+30FC + Han 203 // Han + U+30FC + Han
199 {"xn--wekz60nb2ay85atj0b.jp", L"\x65e5\x672c\x30fc\x91ce\x7403.jp", false}, 204 {"xn--wekz60nb2ay85atj0b.jp", L"\x65e5\x672c\x30fc\x91ce\x7403.jp", false},
200 // Latin + U+30FC + Latin 205 // Latin + U+30FC + Latin
201 {"xn--abcdef-r64e.jp", L"abc\x30fc" L"def.jp", false}, 206 {"xn--abcdef-r64e.jp", L"abc\x30fc" L"def.jp", false},
202 // Latin + U+30FB + Latin 207 // Latin + U+30FB + Latin
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 0, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, 0, kNpos, kNpos, kNpos, kNpos, 893 0, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, 0, kNpos, kNpos, kNpos, kNpos,
889 0, 1, 2, 3, 4, 5, 6, 7 894 0, 1, 2, 3, 4, 5, 6, 7
890 }; 895 };
891 CheckAdjustedOffsets("http://user@foo.com/", kFormatUrlOmitAll, 896 CheckAdjustedOffsets("http://user@foo.com/", kFormatUrlOmitAll,
892 net::UnescapeRule::NORMAL, omit_all_offsets); 897 net::UnescapeRule::NORMAL, omit_all_offsets);
893 } 898 }
894 899
895 } // namespace 900 } // namespace
896 901
897 } // namespace url_formatter 902 } // namespace url_formatter
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698