summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorinferno@chromium.org <inferno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-10 23:19:17 +0000
committerinferno@chromium.org <inferno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-10 23:19:17 +0000
commitcf2016d357ca3bc39895c05c691b4def860699e0 (patch)
tree7d4986e1b256172c1d237f289fd85655cf7a16a4 /chrome/browser
parent82adf415b1316fadba9371e4f8f35cde4396cdab (diff)
downloadchromium_src-cf2016d357ca3bc39895c05c691b4def860699e0.zip
chromium_src-cf2016d357ca3bc39895c05c691b4def860699e0.tar.gz
chromium_src-cf2016d357ca3bc39895c05c691b4def860699e0.tar.bz2
Unittest fix. Need to put usersubmitted = true for unittests.
BUG=51727 Review URL: http://codereview.chromium.org/3151006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55632 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/autocomplete_history_manager_unittest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete_history_manager_unittest.cc b/chrome/browser/autocomplete_history_manager_unittest.cc
index 591d096..f60ccce 100644
--- a/chrome/browser/autocomplete_history_manager_unittest.cc
+++ b/chrome/browser/autocomplete_history_manager_unittest.cc
@@ -51,6 +51,7 @@ TEST_F(AutocompleteHistoryManagerTest, CreditCardNumberValue) {
form.method = ASCIIToUTF16("POST");
form.origin = GURL("http://myform.com/form.html");
form.action = GURL("http://myform.com/submit.html");
+ form.user_submitted = true;
// Valid Visa credit card number pulled from the paypal help site.
webkit_glue::FormField valid_cc(ASCIIToUTF16("Credit Card"),
@@ -73,6 +74,7 @@ TEST_F(AutocompleteHistoryManagerTest, NonCreditCardNumberValue) {
form.method = ASCIIToUTF16("POST");
form.origin = GURL("http://myform.com/form.html");
form.action = GURL("http://myform.com/submit.html");
+ form.user_submitted = true;
// Invalid credit card number.
webkit_glue::FormField invalid_cc(ASCIIToUTF16("Credit Card"),
@@ -93,6 +95,7 @@ TEST_F(AutocompleteHistoryManagerTest, SSNValue) {
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 ssn(ASCIIToUTF16("Social Security Number"),
ASCIIToUTF16("ssn"),