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

Unified Diff: components/omnibox/autocomplete_result_unittest.cc

Issue 658993002: Convert ARRAYSIZE_UNSAFE -> arraysize in components/. (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 | « components/omnibox/autocomplete_match_unittest.cc ('k') | components/omnibox/keyword_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/autocomplete_result_unittest.cc
diff --git a/components/omnibox/autocomplete_result_unittest.cc b/components/omnibox/autocomplete_result_unittest.cc
index c04f14eb196a338df7bfb4758fff0b7d996db297..24bdf776f92e00426ffa0b9aa8699f8b5b91020e 100644
--- a/components/omnibox/autocomplete_result_unittest.cc
+++ b/components/omnibox/autocomplete_result_unittest.cc
@@ -243,10 +243,9 @@ TEST_F(AutocompleteResultTest, CopyOldMatches) {
{ 1, 0, 399 },
};
- ASSERT_NO_FATAL_FAILURE(
- RunCopyOldMatchesTest(last, ARRAYSIZE_UNSAFE(last),
- current, ARRAYSIZE_UNSAFE(current),
- result, ARRAYSIZE_UNSAFE(result)));
+ ASSERT_NO_FATAL_FAILURE(RunCopyOldMatchesTest(last, arraysize(last),
+ current, arraysize(current),
+ result, arraysize(result)));
}
// Tests that matches are copied correctly from two distinct providers.
@@ -268,10 +267,9 @@ TEST_F(AutocompleteResultTest, CopyOldMatches2) {
{ 3, 1, 300 },
};
- ASSERT_NO_FATAL_FAILURE(
- RunCopyOldMatchesTest(last, ARRAYSIZE_UNSAFE(last),
- current, ARRAYSIZE_UNSAFE(current),
- result, ARRAYSIZE_UNSAFE(result)));
+ ASSERT_NO_FATAL_FAILURE(RunCopyOldMatchesTest(last, arraysize(last),
+ current, arraysize(current),
+ result, arraysize(result)));
}
// Tests that matches with empty destination URLs aren't treated as duplicates
« no previous file with comments | « components/omnibox/autocomplete_match_unittest.cc ('k') | components/omnibox/keyword_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698