Chromium Code Reviews| Index: chrome/browser/autofill/form_structure_unittest.cc |
| diff --git a/chrome/browser/autofill/form_structure_unittest.cc b/chrome/browser/autofill/form_structure_unittest.cc |
| index bd2bded40da44dd115bc02fdc6c296cd953c4c69..fe7cf54a5289ca20c0a9d46bfb51dbb4d2360d3b 100644 |
| --- a/chrome/browser/autofill/form_structure_unittest.cc |
| +++ b/chrome/browser/autofill/form_structure_unittest.cc |
| @@ -87,6 +87,22 @@ TEST(FormStructureTest, FieldCount) { |
| EXPECT_EQ(3U, form_structure.field_count()); |
| } |
| +TEST(FormStructureTest, AutofillFlowInfo) { |
| + FormData form; |
| + form.method = ASCIIToUTF16("post"); |
| + |
| + FormFieldData field; |
| + field.label = ASCIIToUTF16("username"); |
| + field.name = ASCIIToUTF16("username"); |
| + field.form_control_type = "text"; |
| + form.fields.push_back(field); |
| + |
| + FormStructure form_structure(form); |
| + |
| + EXPECT_FALSE(form_structure.IsStartOfAutofillableFlow()); |
| + EXPECT_FALSE(form_structure.IsInAutofillableFlow()); |
|
Ilya Sherman
2013/01/15 06:31:52
Please add more thorough tests for these methods.
Raman Kakilate
2013/01/15 23:02:33
Added more tests.
|
| +} |
| + |
| TEST(FormStructureTest, AutofillCount) { |
| FormData form; |
| form.method = ASCIIToUTF16("post"); |