| Index: components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| diff --git a/components/autofill/core/browser/webdata/autofill_table_unittest.cc b/components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| index 7eb241f1ca010fc0672e9e242b11984bb4cdf60d..dbef60bbf97f9f50e9839b81931bc00ec8c9d00f 100644
|
| --- a/components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| +++ b/components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| @@ -1996,10 +1996,10 @@
|
| {nullptr, nullptr}},
|
| };
|
|
|
| - for (const auto& test_case : kTestCases) {
|
| + for (size_t i = 0; i < arraysize(kTestCases); ++i) {
|
| SCOPED_TRACE(testing::Message()
|
| - << "suggestion = " << test_case.field_suggestion[0]
|
| - << ", contents = " << test_case.field_contents);
|
| + << "suggestion = " << kTestCases[i].field_suggestion[0]
|
| + << ", contents = " << kTestCases[i].field_contents);
|
|
|
| Time t1 = Time::Now();
|
|
|
| @@ -2008,17 +2008,18 @@
|
| FormFieldData field;
|
| for (size_t k = 0; k < kMaxCount; ++k) {
|
| field.name = ASCIIToUTF16("Name");
|
| - field.value = ASCIIToUTF16(test_case.field_suggestion[k]);
|
| + field.value = ASCIIToUTF16(kTestCases[i].field_suggestion[k]);
|
| table_->AddFormFieldValue(field, &changes);
|
| }
|
|
|
| std::vector<base::string16> v;
|
| table_->GetFormValuesForElementName(
|
| - ASCIIToUTF16("Name"), ASCIIToUTF16(test_case.field_contents), &v, 6);
|
| -
|
| - EXPECT_EQ(test_case.expected_suggestion_count, v.size());
|
| - for (size_t j = 0; j < test_case.expected_suggestion_count; ++j) {
|
| - EXPECT_EQ(ASCIIToUTF16(test_case.expected_suggestion[j]), v[j]);
|
| + ASCIIToUTF16("Name"), ASCIIToUTF16(kTestCases[i].field_contents), &v,
|
| + 6);
|
| +
|
| + EXPECT_EQ(kTestCases[i].expected_suggestion_count, v.size());
|
| + for (size_t j = 0; j < kTestCases[i].expected_suggestion_count; ++j) {
|
| + EXPECT_EQ(ASCIIToUTF16(kTestCases[i].expected_suggestion[j]), v[j]);
|
| }
|
|
|
| changes.clear();
|
|
|