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

Unified Diff: components/autofill/core/browser/contact_info_unittest.cc

Issue 2424793002: Revert of Replace for loops with |arraysize| with for each loops (Closed)
Patch Set: Created 4 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/contact_info_unittest.cc
diff --git a/components/autofill/core/browser/contact_info_unittest.cc b/components/autofill/core/browser/contact_info_unittest.cc
index d501b5d782d253e5f1127c210c9385bfe84f6067..a0001a3b91baa71e55328fcbd2e0e3e3d03c16d4 100644
--- a/components/autofill/core/browser/contact_info_unittest.cc
+++ b/components/autofill/core/browser/contact_info_unittest.cc
@@ -48,7 +48,8 @@
};
TEST(NameInfoTest, SetFullName) {
- for (const FullNameTestCase& test_case : full_name_test_cases) {
+ for (size_t i = 0; i < arraysize(full_name_test_cases); ++i) {
+ const FullNameTestCase& test_case = full_name_test_cases[i];
SCOPED_TRACE(test_case.full_name_input);
NameInfo name;
« no previous file with comments | « components/autofill/core/browser/autofill_profile.cc ('k') | components/autofill/core/browser/credit_card.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698