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

Unified Diff: components/autofill/core/browser/autofill_regexes_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_regexes_unittest.cc
diff --git a/components/autofill/core/browser/autofill_regexes_unittest.cc b/components/autofill/core/browser/autofill_regexes_unittest.cc
index fc95c44f51d9e9867347c379358e677e529ea2f6..d77afa79446b31f1206fdc589f01672165debdb3 100644
--- a/components/autofill/core/browser/autofill_regexes_unittest.cc
+++ b/components/autofill/core/browser/autofill_regexes_unittest.cc
@@ -34,7 +34,7 @@ TEST(AutofillRegexesTest, AutofillRegexes) {
// Case-insensitive
{"StRiNg", "string"},
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kPositiveCases); ++i) {
+ for (size_t i = 0; i < arraysize(kPositiveCases); ++i) {
const TestCase& test_case = kPositiveCases[i];
SCOPED_TRACE(test_case.input);
SCOPED_TRACE(test_case.pattern);
@@ -54,7 +54,7 @@ TEST(AutofillRegexesTest, AutofillRegexes) {
{"string", "ring "},
{"string", "rin$"},
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kNegativeCases); ++i) {
+ for (size_t i = 0; i < arraysize(kNegativeCases); ++i) {
const TestCase& test_case = kNegativeCases[i];
SCOPED_TRACE(test_case.input);
SCOPED_TRACE(test_case.pattern);

Powered by Google App Engine
This is Rietveld 408576698