DescriptionFix MacViews views_unittest simulate FullScreen test for 10.7+ SDKs
bridged_native_widget_unittest.mm currently fails to compile on 10.7+
SDKs because there is no such thing as
NSWindowDidFailToEnterFullScreenNotification (whoops).
The failures don't go through NSNotificationCenter, but to the
NSWindowDelegate protocol directly. So, add a dummy protocol for 10.6
and, in the simulate fullscreen failure test, send
windowDidFailTo{Enter,Exit}FullScreen to the window delegate directly.
Call via `id` so the test compiles on 10.6 SDKs, but return early so the
tests pass when actually running on 10.6.
BUG=378134
TEST=By tracing the simulation test, and manually to generate an actual
failure.
Committed: https://crrev.com/4863f1de058a942ef677ccc05805ea75b9ee4cb9
Cr-Commit-Position: refs/heads/master@{#300366}
Patch Set 1 #Patch Set 2 : Do something sensible when running on Snow Leopard #
Messages
Total messages: 7 (2 generated)
|