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

Unified Diff: components/autofill/browser/autofill_external_delegate_unittest.cc

Issue 15660018: [autofill] Add support for PSL domain matching for password autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated regexp, sanitized result, escaped form domain and added comments. Created 7 years, 6 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/browser/autofill_external_delegate_unittest.cc
diff --git a/components/autofill/browser/autofill_external_delegate_unittest.cc b/components/autofill/browser/autofill_external_delegate_unittest.cc
index 331daacb1b90908ce5227a46ad06a95f39d9b6f1..e6faf16016049e9285d82ff303a62455d9967a8b 100644
--- a/components/autofill/browser/autofill_external_delegate_unittest.cc
+++ b/components/autofill/browser/autofill_external_delegate_unittest.cc
@@ -279,8 +279,11 @@ TEST_F(AutofillExternalDelegateUnitTest,
// suggestions.
TEST_F(AutofillExternalDelegateUnitTest, ExternalDelegatePasswordSuggestions) {
static const base::string16 kUsername = ASCIIToUTF16("username");
+ static const base::string16 kSignonRealm = ASCIIToUTF16("signon_realm");
std::vector<base::string16> suggestions;
suggestions.push_back(kUsername);
+ std::vector<base::string16> realms;
+ realms.push_back(kSignonRealm);
FormFieldData field;
field.is_focusable = true;
@@ -303,6 +306,7 @@ TEST_F(AutofillExternalDelegateUnitTest, ExternalDelegatePasswordSuggestions) {
_));
external_delegate_->OnShowPasswordSuggestions(suggestions,
+ realms,
field,
element_bounds);

Powered by Google App Engine
This is Rietveld 408576698