Index: chrome/browser/ui/cocoa/location_bar/manage_passwords_decoration_unittest.mm |
diff --git a/chrome/browser/ui/cocoa/location_bar/manage_passwords_decoration_unittest.mm b/chrome/browser/ui/cocoa/location_bar/manage_passwords_decoration_unittest.mm |
index f49641a23e09b13164042bf23c64be774470b8bb..37a09360af5c5cbbcfdc930f8f4aaa90a3bd40ac 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/manage_passwords_decoration_unittest.mm |
+++ b/chrome/browser/ui/cocoa/location_bar/manage_passwords_decoration_unittest.mm |
@@ -53,7 +53,8 @@ bool ImagesEqual(NSImage* left, NSImage* right) { |
class ManagePasswordsDecorationTest : public CocoaTest { |
public: |
ManagePasswordsDecorationTest() |
- : commandUpdater_(&commandDelegate_), decoration_(&commandUpdater_) { |
+ : commandUpdater_(&commandDelegate_), |
+ decoration_(&commandUpdater_, NULL) { |
commandUpdater_.UpdateCommandEnabled(IDC_MANAGE_PASSWORDS_FOR_PAGE, true); |
} |
@@ -69,7 +70,7 @@ class ManagePasswordsDecorationTest : public CocoaTest { |
TEST_F(ManagePasswordsDecorationTest, ExecutesManagePasswordsCommandOnClick) { |
EXPECT_TRUE(decoration()->AcceptsMousePress()); |
- EXPECT_TRUE(decoration()->OnMousePressed(NSRect(), NSPoint())); |
+ EXPECT_FALSE(decoration()->OnMousePressed(NSRect(), NSPoint())); |
EXPECT_EQ(IDC_MANAGE_PASSWORDS_FOR_PAGE, commandDelegate()->id()); |
} |