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

Unified Diff: components/autofill/content/common/autofill_types_struct_traits_unittest.cc

Issue 2747733004: [Password Manager] Send username correction votes (Closed)
Patch Set: Rebase Created 3 years, 9 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
Index: components/autofill/content/common/autofill_types_struct_traits_unittest.cc
diff --git a/components/autofill/content/common/autofill_types_struct_traits_unittest.cc b/components/autofill/content/common/autofill_types_struct_traits_unittest.cc
index 9699519c7488a14eb9d9dc68c59a163a88193ccc..b60bff05a7effef9becc1c4a62d76dbbfea8fe83 100644
--- a/components/autofill/content/common/autofill_types_struct_traits_unittest.cc
+++ b/components/autofill/content/common/autofill_types_struct_traits_unittest.cc
@@ -68,8 +68,10 @@ void CreateTestPasswordForm(PasswordForm* form) {
form->username_element = base::ASCIIToUTF16("username");
form->username_marked_by_site = true;
form->username_value = base::ASCIIToUTF16("test@gmail.com");
- form->other_possible_usernames.push_back(base::ASCIIToUTF16("Jerry_1"));
- form->other_possible_usernames.push_back(base::ASCIIToUTF16("Jerry_2"));
+ form->other_possible_usernames.push_back(PossibleUsernamePair(
+ base::ASCIIToUTF16("Jerry_1"), base::ASCIIToUTF16("id1")));
+ form->other_possible_usernames.push_back(PossibleUsernamePair(
+ base::ASCIIToUTF16("Jerry_2"), base::ASCIIToUTF16("id2")));
form->password_element = base::ASCIIToUTF16("password");
form->password_value = base::ASCIIToUTF16("test");
form->password_value_is_default = true;

Powered by Google App Engine
This is Rietveld 408576698