| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/autofill/core/common/form_field_data.h" | 5 #include "components/autofill/core/common/form_field_data.h" |
| 6 | 6 |
| 7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "base/pickle.h" | 8 #include "base/pickle.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "components/autofill/core/common/autofill_util.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 12 |
| 12 namespace autofill { | 13 namespace autofill { |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 void FillCommonFields(FormFieldData* data) { | 17 void FillCommonFields(FormFieldData* data) { |
| 17 data->label = base::ASCIIToUTF16("label"); | 18 data->label = base::ASCIIToUTF16("label"); |
| 18 data->name = base::ASCIIToUTF16("name"); | 19 data->name = base::ASCIIToUTF16("name"); |
| 19 data->value = base::ASCIIToUTF16("value"); | 20 data->value = base::ASCIIToUTF16("value"); |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 291 |
| 291 base::PickleIterator iter(pickle); | 292 base::PickleIterator iter(pickle); |
| 292 FormFieldData actual; | 293 FormFieldData actual; |
| 293 EXPECT_FALSE(DeserializeFormFieldData(&iter, &actual)); | 294 EXPECT_FALSE(DeserializeFormFieldData(&iter, &actual)); |
| 294 | 295 |
| 295 FormFieldData empty; | 296 FormFieldData empty; |
| 296 EXPECT_TRUE(actual.SameFieldAs(empty)); | 297 EXPECT_TRUE(actual.SameFieldAs(empty)); |
| 297 } | 298 } |
| 298 | 299 |
| 299 } // namespace autofill | 300 } // namespace autofill |
| OLD | NEW |