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

Unified Diff: components/search_engines/template_url_unittest.cc

Issue 1238683003: Unpunycode search keywords and short names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rebased to origin/master. Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/search_engines/template_url_unittest.cc
diff --git a/components/search_engines/template_url_unittest.cc b/components/search_engines/template_url_unittest.cc
index b905ded6d6086c7a419d1fcd2225e194f7d2758a..3284032d1a0495404c44b3d8522616ce451b3d30 100644
--- a/components/search_engines/template_url_unittest.cc
+++ b/components/search_engines/template_url_unittest.cc
@@ -1705,6 +1705,8 @@ TEST_F(TemplateURLTest, GenerateKeyword) {
// Don't generate the empty string.
ASSERT_EQ(ASCIIToUTF16("www"),
TemplateURL::GenerateKeyword(GURL("http://www.")));
+ ASSERT_EQ(base::UTF8ToUTF16("абв"),
Peter Kasting 2015/07/14 18:05:33 Don't put Unicode characters directly in source fi
alshabalin 2015/07/15 15:19:50 Done.
+ TemplateURL::GenerateKeyword(GURL("http://xn--80acd")));
}
TEST_F(TemplateURLTest, GenerateSearchURL) {

Powered by Google App Engine
This is Rietveld 408576698