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

Unified Diff: components/search_engines/template_url_unittest.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 years, 8 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 1f7f6c26ebe42ac88b6d79632a891bcf1a5ebd57..828559760d7873da2c45ea457738d403ce346ffb 100644
--- a/components/search_engines/template_url_unittest.cc
+++ b/components/search_engines/template_url_unittest.cc
@@ -1635,21 +1635,20 @@ TEST_F(TemplateURLTest, ContextualSearchParameters) {
}
TEST_F(TemplateURLTest, GenerateKeyword) {
- std::string accept_languages = "en,ru";
ASSERT_EQ(ASCIIToUTF16("foo"),
- TemplateURL::GenerateKeyword(GURL("http://foo"), accept_languages));
+ TemplateURL::GenerateKeyword(GURL("http://foo")));
// www. should be stripped.
- ASSERT_EQ(ASCIIToUTF16("foo"), TemplateURL::GenerateKeyword(
- GURL("http://www.foo"), accept_languages));
+ ASSERT_EQ(ASCIIToUTF16("foo"),
+ TemplateURL::GenerateKeyword(GURL("http://www.foo")));
// Make sure we don't get a trailing '/'.
- ASSERT_EQ(ASCIIToUTF16("blah"), TemplateURL::GenerateKeyword(
- GURL("http://blah/"), accept_languages));
+ ASSERT_EQ(ASCIIToUTF16("blah"),
+ TemplateURL::GenerateKeyword(GURL("http://blah/")));
// Don't generate the empty string.
- ASSERT_EQ(ASCIIToUTF16("www"), TemplateURL::GenerateKeyword(
- GURL("http://www."), accept_languages));
+ ASSERT_EQ(ASCIIToUTF16("www"),
+ TemplateURL::GenerateKeyword(GURL("http://www.")));
ASSERT_EQ(
base::UTF8ToUTF16("\xd0\xb0\xd0\xb1\xd0\xb2"),
- TemplateURL::GenerateKeyword(GURL("http://xn--80acd"), accept_languages));
+ TemplateURL::GenerateKeyword(GURL("http://xn--80acd")));
}
TEST_F(TemplateURLTest, GenerateSearchURL) {
« no previous file with comments | « components/search_engines/template_url_service.cc ('k') | components/security_interstitials/core/bad_clock_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698