Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: ui/base/cocoa/fullscreen_window_manager_unittest.mm

Issue 12052012: Switch to Cocoa APIs for fullscreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/notifications/notification_ui_manager_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..710ec79a613129a906a6c349ca63f664bcff1e19 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(static_cast<NSApplicationPresentationOptions>(
+ NSApplicationPresentationHideDock |
+ NSApplicationPresentationHideMenuBar),
+ current_options);
[manager exitFullscreenMode];
- GetSystemUIMode(&mode, NULL);
- EXPECT_EQ(kUIModeNormal, mode);
+ current_options = [NSApp presentationOptions];
+ EXPECT_EQ(NSApplicationPresentationDefault, current_options);
}
« no previous file with comments | « chrome/browser/notifications/notification_ui_manager_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698