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

Unified Diff: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_blacklist_view_controller_unittest.mm

Issue 1212633003: Don't show any password manager icon when a user visits a blacklisted site. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blank line Created 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/passwords/manage_passwords_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_blacklist_view_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_blacklist_view_controller_unittest.mm b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_blacklist_view_controller_unittest.mm
index 84a8a53a82f67f3eab83b4ed71b37dfb47a4a9bd..9fbf84b5bcd6450b8009533cec2564cb06c001db 100644
--- a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_blacklist_view_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_blacklist_view_controller_unittest.mm
@@ -75,16 +75,6 @@ TEST_F(ManagePasswordsBubbleBlacklistViewControllerTest,
TEST_F(ManagePasswordsBubbleBlacklistViewControllerTest,
ShouldDismissAndUnblacklistWhenUnblacklistClicked) {
- // Unblacklisting requires passwords to exist for the site.
- scoped_ptr<autofill::PasswordForm> form(new autofill::PasswordForm);
- form->username_value = base::ASCIIToUTF16("username");
- form->password_value = base::ASCIIToUTF16("password");
- form->blacklisted_by_user = true;
- autofill::PasswordFormMap map;
- map.insert(base::ASCIIToUTF16("username"), form.Pass());
- ui_controller()->OnBlacklistBlockedAutofill(map);
-
- EXPECT_EQ(password_manager::ui::BLACKLIST_STATE, ui_controller()->state());
NSButton* undoButton = controller().undoBlacklistButton;
[undoButton performClick:nil];
EXPECT_TRUE(delegate().dismissed);
« no previous file with comments | « no previous file | chrome/browser/ui/passwords/manage_passwords_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698