Index: ui/views/cocoa/bridged_native_widget_unittest.mm |
diff --git a/ui/views/cocoa/bridged_native_widget_unittest.mm b/ui/views/cocoa/bridged_native_widget_unittest.mm |
index fb4c679fb3114fcbc2c8ffb9e0dc958cf827900b..4394deac5217c4d605a13f9fad24fee743003019 100644 |
--- a/ui/views/cocoa/bridged_native_widget_unittest.mm |
+++ b/ui/views/cocoa/bridged_native_widget_unittest.mm |
@@ -227,6 +227,7 @@ class BridgedNativeWidgetTest : public BridgedNativeWidgetTestBase { |
scoped_ptr<views::View> view_; |
scoped_ptr<BridgedNativeWidget> bridge_; |
BridgedContentView* ns_view_; // Weak. Owned by bridge_. |
+ base::MessageLoopForUI message_loop_; |
private: |
DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidgetTest); |
@@ -658,8 +659,7 @@ TEST_F(BridgedNativeWidgetSimulateFullscreenTest, FailToEnterAndExit) { |
EXPECT_FALSE(bridge()->target_fullscreen_state()); |
// Cocoa follows up with a failure notification. |
- [center postNotificationName:NSWindowDidFailToEnterFullScreenNotification |
- object:window]; |
+ [[window delegate] windowDidFailToEnterFullScreen:window]; |
EXPECT_FALSE(bridge()->target_fullscreen_state()); |
// Now perform a successful fullscreen operation. |
@@ -677,8 +677,7 @@ TEST_F(BridgedNativeWidgetSimulateFullscreenTest, FailToEnterAndExit) { |
// On a failure, Cocoa sends a failure notification, but then just dumps the |
// Window out of fullscreen anyway (in that order). |
- [center postNotificationName:NSWindowDidFailToExitFullScreenNotification |
- object:window]; |
+ [[window delegate] windowDidFailToExitFullScreen:window]; |
EXPECT_FALSE(bridge()->target_fullscreen_state()); |
[center postNotificationName:NSWindowDidExitFullScreenNotification |
object:window]; |