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 eee50974ab717d232b6e8290061e24bbf1edba3e..a3b67095100666588aa1b8f0f138e1304ae09dae 100644 |
--- a/ui/base/cocoa/fullscreen_window_manager_unittest.mm |
+++ b/ui/base/cocoa/fullscreen_window_manager_unittest.mm |
@@ -4,7 +4,6 @@ |
#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" |
@@ -17,15 +16,18 @@ TEST_F(FullscreenWindowManagerTest, EnterExit) { |
initWithWindow:test_window() |
desiredScreen:[NSScreen mainScreen]]); |
- SystemUIMode mode = kUIModeNormal; |
- GetSystemUIMode(&mode, NULL); |
- EXPECT_EQ(kUIModeNormal, mode); |
+ NSApplicationPresentationOptions current_options = |
+ [NSApp presentationOptions]; |
+ EXPECT_EQ(NSApplicationPresentationDefault, current_options); |
[manager enterFullscreenMode]; |
- GetSystemUIMode(&mode, NULL); |
- EXPECT_EQ(kUIModeAllHidden, mode); |
+ current_options = [NSApp presentationOptions]; |
+ EXPECT_EQ((NSApplicationPresentationOptions) |
Avi (use Gerrit)
2012/12/28 05:23:10
Without this I get an error comparing unsigned to
Robert Sesek
2012/12/28 20:18:54
C++ style cast
Avi (use Gerrit)
2012/12/28 21:02:44
Done.
|
+ NSApplicationPresentationHideDock | |
+ NSApplicationPresentationHideMenuBar, |
+ current_options); |
[manager exitFullscreenMode]; |
- GetSystemUIMode(&mode, NULL); |
- EXPECT_EQ(kUIModeNormal, mode); |
+ current_options = [NSApp presentationOptions]; |
+ EXPECT_EQ(NSApplicationPresentationDefault, current_options); |
} |