| Index: chrome/browser/ui/cocoa/passwords/account_chooser_view_controller_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/passwords/account_chooser_view_controller_unittest.mm b/chrome/browser/ui/cocoa/passwords/account_chooser_view_controller_unittest.mm
|
| index 80419d5ed86430e5de266e1a49fe2d27e01d240f..e368440e182913f6242212161c8a97ae2e6f9eaa 100644
|
| --- a/chrome/browser/ui/cocoa/passwords/account_chooser_view_controller_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/passwords/account_chooser_view_controller_unittest.mm
|
| @@ -145,8 +145,10 @@ TEST_F(AccountChooserViewControllerTest, ConfiguresViews) {
|
| TEST_F(AccountChooserViewControllerTest, ConfiguresFederatedCredential) {
|
| const char federation[] = "https://google.com/idp";
|
| const char name[] = "Peter the Great";
|
| + const char username[] = "pete";
|
| +
|
| PasswordDialogController::FormsVector local_forms;
|
| - local_forms.push_back(Credential("pizza"));
|
| + local_forms.push_back(Credential(username));
|
| local_forms.back()->federation_origin = url::Origin(GURL(federation));
|
| local_forms.back()->display_name = base::ASCIIToUTF16(name);
|
| SetUpAccountChooser(&local_forms);
|
| @@ -158,6 +160,7 @@ TEST_F(AccountChooserViewControllerTest, ConfiguresFederatedCredential) {
|
| base::SysNSStringToUTF8([base::mac::ObjCCastStrict<CredentialItemButton>(
|
| [buttons objectAtIndex:0]) title]);
|
| EXPECT_THAT(title, testing::HasSubstr(name));
|
| + EXPECT_THAT(title, testing::HasSubstr(username));
|
| EXPECT_THAT(title, testing::HasSubstr(GURL(federation).host()));
|
| }
|
|
|
|
|