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

Unified Diff: components/autofill/core/browser/autofill_manager_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
Index: components/autofill/core/browser/autofill_manager_unittest.cc
diff --git a/components/autofill/core/browser/autofill_manager_unittest.cc b/components/autofill/core/browser/autofill_manager_unittest.cc
index 8e2e1dfeb285dd6ad27ea6ed20657396c4b2c208..06cbd801d2e6ccf597adea3a5e190693cc43f2f8 100644
--- a/components/autofill/core/browser/autofill_manager_unittest.cc
+++ b/components/autofill/core/browser/autofill_manager_unittest.cc
@@ -1493,7 +1493,7 @@ TEST_F(AutofillManagerTest, GetProfileSuggestionsForPhonePrefixOrSuffix) {
{"Phone Extension", "ext", 5, "tel-extension"}};
FormFieldData field;
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_fields); ++i) {
+ for (size_t i = 0; i < arraysize(test_fields); ++i) {
test::CreateTestFormField(
test_fields[i].label, test_fields[i].name, "", "text", &field);
field.max_length = test_fields[i].max_length;
@@ -2135,7 +2135,7 @@ TEST_F(AutofillManagerTest, FillPhoneNumber) {
FormFieldData field;
const size_t default_max_length = field.max_length;
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_fields); ++i) {
+ for (size_t i = 0; i < arraysize(test_fields); ++i) {
test::CreateTestFormField(
test_fields[i].label, test_fields[i].name, "", "text", &field);
field.max_length = test_fields[i].max_length;

Powered by Google App Engine
This is Rietveld 408576698