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

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

Issue 2478463002: Reland of place for loops with |arraysize| with for each loops (Closed)
Patch Set: Created 4 years, 1 month 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 a0001a3b91baa71e55328fcbd2e0e3e3d03c16d4..d501b5d782d253e5f1127c210c9385bfe84f6067 100644
--- a/components/autofill/core/browser/contact_info_unittest.cc
+++ b/components/autofill/core/browser/contact_info_unittest.cc
@@ -48,8 +48,7 @@
};
TEST(NameInfoTest, SetFullName) {
- for (size_t i = 0; i < arraysize(full_name_test_cases); ++i) {
- const FullNameTestCase& test_case = full_name_test_cases[i];
+ for (const FullNameTestCase& test_case : full_name_test_cases) {
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