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

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

Issue 9838071: Implement pepper flash fullscreen on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « ui/base/cocoa/fullscreen_window_manager.mm ('k') | ui/base/cocoa/underlay_opengl_hosting_window.h » ('j') | 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
===================================================================
--- ui/base/cocoa/fullscreen_window_manager_unittest.mm (revision 0)
+++ ui/base/cocoa/fullscreen_window_manager_unittest.mm (revision 0)
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#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"
+
+typedef ui::CocoaTest FullscreenWindowManagerTest;
+
+TEST_F(FullscreenWindowManagerTest, EnterExit) {
+ scoped_nsobject<FullscreenWindowManager> manager(
+ [[FullscreenWindowManager alloc]
+ initWithWindow:test_window()
+ desiredScreen:[NSScreen mainScreen]]);
+
+ SystemUIMode mode = kUIModeNormal;
+ GetSystemUIMode(&mode, NULL);
+ EXPECT_EQ(kUIModeNormal, mode);
+
+ [manager enterFullscreenMode];
+ GetSystemUIMode(&mode, NULL);
+ EXPECT_EQ(kUIModeAllHidden, mode);
+
+ [manager exitFullscreenMode];
+ GetSystemUIMode(&mode, NULL);
+ EXPECT_EQ(kUIModeNormal, mode);
+}
« no previous file with comments | « ui/base/cocoa/fullscreen_window_manager.mm ('k') | ui/base/cocoa/underlay_opengl_hosting_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698