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

Unified Diff: chrome/browser/autofill/autofill_manager_unittest.cc

Issue 3029023: AutoFill: Initialize |user_submitted_| a few more places. (Closed)
Patch Set: Created 10 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager_unittest.cc
diff --git a/chrome/browser/autofill/autofill_manager_unittest.cc b/chrome/browser/autofill/autofill_manager_unittest.cc
index a9a915d8d785c9545542ebeb17653fc9343d1c29..ad4b3fdf3c2b99d98ad9d38169c5066c7cebd83f 100644
--- a/chrome/browser/autofill/autofill_manager_unittest.cc
+++ b/chrome/browser/autofill/autofill_manager_unittest.cc
@@ -953,6 +953,7 @@ TEST_F(AutoFillManagerTest, FillPhoneNumber) {
form.method = ASCIIToUTF16("POST");
form.origin = GURL("http://myform.com/phone_form.html");
form.action = GURL("http://myform.com/phone_submit.html");
+ form.user_submitted = true;
webkit_glue::FormField field;
@@ -1024,6 +1025,7 @@ TEST_F(AutoFillManagerTest, FormChangesRemoveField) {
form.method = ASCIIToUTF16("POST");
form.origin = GURL("http://myform.com/form.html");
form.action = GURL("http://myform.com/submit.html");
+ form.user_submitted = true;
webkit_glue::FormField field;
autofill_unittest::CreateTestFormField(
@@ -1067,6 +1069,7 @@ TEST_F(AutoFillManagerTest, FormChangesRemoveField) {
EXPECT_EQ(ASCIIToUTF16("POST"), results.method);
EXPECT_EQ(GURL("http://myform.com/form.html"), results.origin);
EXPECT_EQ(GURL("http://myform.com/submit.html"), results.action);
+ EXPECT_TRUE(results.user_submitted);
ASSERT_EQ(4U, results.fields.size());
autofill_unittest::CreateTestFormField(
@@ -1089,6 +1092,7 @@ TEST_F(AutoFillManagerTest, FormChangesAddField) {
form.method = ASCIIToUTF16("POST");
form.origin = GURL("http://myform.com/form.html");
form.action = GURL("http://myform.com/submit.html");
+ form.user_submitted = true;
webkit_glue::FormField field;
autofill_unittest::CreateTestFormField(
@@ -1132,6 +1136,7 @@ TEST_F(AutoFillManagerTest, FormChangesAddField) {
EXPECT_EQ(ASCIIToUTF16("POST"), results.method);
EXPECT_EQ(GURL("http://myform.com/form.html"), results.origin);
EXPECT_EQ(GURL("http://myform.com/submit.html"), results.action);
+ EXPECT_TRUE(results.user_submitted);
ASSERT_EQ(5U, results.fields.size());
autofill_unittest::CreateTestFormField(
@@ -1157,6 +1162,7 @@ TEST_F(AutoFillManagerTest, HiddenFields) {
form.method = ASCIIToUTF16("POST");
form.origin = GURL("http://myform.com/form.html");
form.action = GURL("http://myform.com/submit.html");
+ form.user_submitted = true;
webkit_glue::FormField field;
autofill_unittest::CreateTestFormField(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698