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 3cf3dc2ec9e755f440312d4299d86314fe842bcf..1bf91db51893f24909fac3312e6076ca4ccd7d9c 100644 |
--- a/ui/views/cocoa/bridged_native_widget_unittest.mm |
+++ b/ui/views/cocoa/bridged_native_widget_unittest.mm |
@@ -490,7 +490,8 @@ TEST_F(BridgedNativeWidgetSimulateFullscreenTest, FailToEnterAndExit) { |
// is no equivalent notification for failure). Called via id so that this |
// compiles on 10.6. |
id window_delegate = [window delegate]; |
- [window_delegate windowDidFailToEnterFullScreen:window]; |
+ [window_delegate performSelector:@selector(windowDidFailToEnterFullScreen:) |
+ withObject:window]; |
Nico
2015/05/12 22:29:38
why this change?
erikchen
2015/05/12 22:41:39
The method windowDidFailToEnterFullScreen: is only
Nico
2015/05/12 22:45:00
Huh, if you declare it it should be possible to ca
erikchen
2015/05/12 23:49:19
Just to confirm: You would prefer it if I cast win
Nico
2015/05/13 00:18:30
Are you sure that you need the cast and the export
erikchen
2015/05/13 00:26:21
Ah, they are not necessary.
One caveat: This cla
erikchen
2015/05/13 16:56:43
Hm. Removing NSWindowDelegateFullScreenAdditions f
|
EXPECT_FALSE(bridge()->target_fullscreen_state()); |
// Now perform a successful fullscreen operation. |
@@ -508,7 +509,8 @@ TEST_F(BridgedNativeWidgetSimulateFullscreenTest, FailToEnterAndExit) { |
// On a failure, Cocoa sends a failure message, but then just dumps the window |
// out of fullscreen anyway (in that order). |
- [window_delegate windowDidFailToExitFullScreen:window]; |
+ [window_delegate performSelector:@selector(windowDidFailToExitFullScreen:) |
+ withObject:window]; |
EXPECT_FALSE(bridge()->target_fullscreen_state()); |
[center postNotificationName:NSWindowDidExitFullScreenNotification |
object:window]; |