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

Unified Diff: chrome/browser/autocomplete/autocomplete_provider_unittest.cc

Issue 655413002: Convert ARRAYSIZE_UNSAFE -> arraysize in chrome/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « chrome/browser/about_flags.cc ('k') | chrome/browser/autocomplete/bookmark_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_provider_unittest.cc
diff --git a/chrome/browser/autocomplete/autocomplete_provider_unittest.cc b/chrome/browser/autocomplete/autocomplete_provider_unittest.cc
index 3d8660784546b0dc27498d45c1eaedce894c050c..4695b7aecc2aa9ddf4b2b78dca5123d1258fd07f 100644
--- a/chrome/browser/autocomplete/autocomplete_provider_unittest.cc
+++ b/chrome/browser/autocomplete/autocomplete_provider_unittest.cc
@@ -571,7 +571,7 @@ TEST_F(AutocompleteProviderTest, RedundantKeywordsIgnoredInResult) {
SCOPED_TRACE("Duplicate url");
RunKeywordTest(base::ASCIIToUTF16("fo"), duplicate_url,
- ARRAYSIZE_UNSAFE(duplicate_url));
+ arraysize(duplicate_url));
}
{
@@ -583,7 +583,7 @@ TEST_F(AutocompleteProviderTest, RedundantKeywordsIgnoredInResult) {
SCOPED_TRACE("Duplicate url with keyword match");
RunKeywordTest(base::ASCIIToUTF16("fo"), keyword_match,
- ARRAYSIZE_UNSAFE(keyword_match));
+ arraysize(keyword_match));
}
{
@@ -598,7 +598,7 @@ TEST_F(AutocompleteProviderTest, RedundantKeywordsIgnoredInResult) {
SCOPED_TRACE("Duplicate url with multiple keywords");
RunKeywordTest(base::ASCIIToUTF16("fo"), multiple_keyword,
- ARRAYSIZE_UNSAFE(multiple_keyword));
+ arraysize(multiple_keyword));
}
}
@@ -615,7 +615,7 @@ TEST_F(AutocompleteProviderTest, ExactMatchKeywords) {
SCOPED_TRACE("keyword match as usual");
RunKeywordTest(base::ASCIIToUTF16("fo"), keyword_match,
- ARRAYSIZE_UNSAFE(keyword_match));
+ arraysize(keyword_match));
}
// The same result set with an input of "f" (versus "fo") should get
@@ -630,7 +630,7 @@ TEST_F(AutocompleteProviderTest, ExactMatchKeywords) {
SCOPED_TRACE("keyword exact match");
RunKeywordTest(base::ASCIIToUTF16("f"), keyword_match,
- ARRAYSIZE_UNSAFE(keyword_match));
+ arraysize(keyword_match));
}
}
@@ -652,7 +652,7 @@ TEST_F(AutocompleteProviderTest, UpdateAssistedQueryStats) {
{ AutocompleteMatchType::SEARCH_WHAT_YOU_TYPED, "chrome..69i57" }
};
SCOPED_TRACE("One match");
- RunAssistedQueryStatsTest(test_data, ARRAYSIZE_UNSAFE(test_data));
+ RunAssistedQueryStatsTest(test_data, arraysize(test_data));
}
{
@@ -675,7 +675,7 @@ TEST_F(AutocompleteProviderTest, UpdateAssistedQueryStats) {
"chrome.7.69i57j69i58j5l2j0l3j69i59" },
};
SCOPED_TRACE("Multiple matches");
- RunAssistedQueryStatsTest(test_data, ARRAYSIZE_UNSAFE(test_data));
+ RunAssistedQueryStatsTest(test_data, arraysize(test_data));
}
}
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/autocomplete/bookmark_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698