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

Unified Diff: components/omnibox/browser/autocomplete_match_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
« no previous file with comments | « components/omnibox/browser/autocomplete_match.cc ('k') | components/omnibox/browser/autocomplete_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/autocomplete_match_unittest.cc
diff --git a/components/omnibox/browser/autocomplete_match_unittest.cc b/components/omnibox/browser/autocomplete_match_unittest.cc
index b51fda0900abe15e82632a8edb8096103f012c01..a91d4a5c1acd320ff4b7eda0dfb8d5fa675bea6b 100644
--- a/components/omnibox/browser/autocomplete_match_unittest.cc
+++ b/components/omnibox/browser/autocomplete_match_unittest.cc
@@ -189,14 +189,14 @@ TEST(AutocompleteMatchTest, Duplicates) {
base::WideToUTF16(cases[i].input), base::string16::npos, std::string(),
GURL(), metrics::OmniboxEventProto::INVALID_SPEC, false, false, true,
true, false, TestSchemeClassifier());
- AutocompleteMatch m1(NULL, 100, false,
+ AutocompleteMatch m1(nullptr, 100, false,
AutocompleteMatchType::URL_WHAT_YOU_TYPED);
m1.destination_url = GURL(cases[i].url1);
- m1.ComputeStrippedDestinationURL(input, "zh-CN", NULL);
- AutocompleteMatch m2(NULL, 100, false,
+ m1.ComputeStrippedDestinationURL(input, nullptr);
+ AutocompleteMatch m2(nullptr, 100, false,
AutocompleteMatchType::URL_WHAT_YOU_TYPED);
m2.destination_url = GURL(cases[i].url2);
- m2.ComputeStrippedDestinationURL(input, "zh-CN", NULL);
+ m2.ComputeStrippedDestinationURL(input, nullptr);
EXPECT_EQ(cases[i].expected_duplicate,
AutocompleteMatch::DestinationsEqual(m1, m2));
}
« no previous file with comments | « components/omnibox/browser/autocomplete_match.cc ('k') | components/omnibox/browser/autocomplete_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698