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

Unified Diff: chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac_unittest.mm

Issue 1456213002: Revert of [Extensions] Don't count bubble dismissal from focus loss as acknowledgment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac_unittest.mm
diff --git a/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac_unittest.mm b/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac_unittest.mm
index 4f9a44394119fcd4f49423d0ea1a8b6f0fc7ebe3..6c266f4cda1f1599eb5c8274eb5960d3425588e7 100644
--- a/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac_unittest.mm
+++ b/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac_unittest.mm
@@ -117,14 +117,11 @@
case ToolbarActionsBarBubbleDelegate::CLOSE_EXECUTE:
button = [bubble actionButton];
break;
- case ToolbarActionsBarBubbleDelegate::CLOSE_DISMISS_USER_ACTION:
+ case ToolbarActionsBarBubbleDelegate::CLOSE_DISMISS:
button = [bubble dismissButton];
break;
case ToolbarActionsBarBubbleDelegate::CLOSE_LEARN_MORE:
button = [bubble learnMoreButton];
- break;
- case ToolbarActionsBarBubbleDelegate::CLOSE_DISMISS_DEACTIVATION:
- NOTREACHED(); // Deactivation is tested below.
break;
}
ASSERT_TRUE(button);
@@ -147,7 +144,7 @@
TEST_F(ToolbarActionsBarBubbleMacTest, CloseActionAndDismiss) {
// Test all the possible actions.
TestBubbleButton(ToolbarActionsBarBubbleDelegate::CLOSE_EXECUTE);
- TestBubbleButton(ToolbarActionsBarBubbleDelegate::CLOSE_DISMISS_USER_ACTION);
+ TestBubbleButton(ToolbarActionsBarBubbleDelegate::CLOSE_DISMISS);
TestBubbleButton(ToolbarActionsBarBubbleDelegate::CLOSE_LEARN_MORE);
{
@@ -163,7 +160,7 @@
[bubble close];
chrome::testing::NSRunLoopRunAllPending();
ASSERT_TRUE(delegate.close_action());
- EXPECT_EQ(ToolbarActionsBarBubbleDelegate::CLOSE_DISMISS_DEACTIVATION,
+ EXPECT_EQ(ToolbarActionsBarBubbleDelegate::CLOSE_DISMISS,
*delegate.close_action());
EXPECT_TRUE([windowObserver windowIsClosing]);
}

Powered by Google App Engine
This is Rietveld 408576698