Index: ui/base/cocoa/fullscreen_window_manager_unittest.mm |
diff --git a/ui/base/cocoa/fullscreen_window_manager_unittest.mm b/ui/base/cocoa/fullscreen_window_manager_unittest.mm |
index 710ec79a613129a906a6c349ca63f664bcff1e19..eee50974ab717d232b6e8290061e24bbf1edba3e 100644 |
--- a/ui/base/cocoa/fullscreen_window_manager_unittest.mm |
+++ b/ui/base/cocoa/fullscreen_window_manager_unittest.mm |
@@ -4,6 +4,7 @@ |
#import "ui/base/cocoa/fullscreen_window_manager.h" |
+ |
#include "testing/gtest/include/gtest/gtest.h" |
#include "testing/platform_test.h" |
#import "ui/base/test/ui_cocoa_test_helper.h" |
@@ -16,18 +17,15 @@ TEST_F(FullscreenWindowManagerTest, EnterExit) { |
initWithWindow:test_window() |
desiredScreen:[NSScreen mainScreen]]); |
- NSApplicationPresentationOptions current_options = |
- [NSApp presentationOptions]; |
- EXPECT_EQ(NSApplicationPresentationDefault, current_options); |
+ SystemUIMode mode = kUIModeNormal; |
+ GetSystemUIMode(&mode, NULL); |
+ EXPECT_EQ(kUIModeNormal, mode); |
[manager enterFullscreenMode]; |
- current_options = [NSApp presentationOptions]; |
- EXPECT_EQ(static_cast<NSApplicationPresentationOptions>( |
- NSApplicationPresentationHideDock | |
- NSApplicationPresentationHideMenuBar), |
- current_options); |
+ GetSystemUIMode(&mode, NULL); |
+ EXPECT_EQ(kUIModeAllHidden, mode); |
[manager exitFullscreenMode]; |
- current_options = [NSApp presentationOptions]; |
- EXPECT_EQ(NSApplicationPresentationDefault, current_options); |
+ GetSystemUIMode(&mode, NULL); |
+ EXPECT_EQ(kUIModeNormal, mode); |
} |