| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "ui/base/cocoa/fullscreen_window_manager.h" |
| 6 |
| 7 |
| 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "testing/platform_test.h" |
| 10 #import "ui/base/test/ui_cocoa_test_helper.h" |
| 11 |
| 12 typedef ui::CocoaTest FullscreenWindowManagerTest; |
| 13 |
| 14 TEST_F(FullscreenWindowManagerTest, EnterExit) { |
| 15 scoped_nsobject<FullscreenWindowManager> manager( |
| 16 [[FullscreenWindowManager alloc] |
| 17 initWithWindow:test_window() |
| 18 desiredScreen:[NSScreen mainScreen]]); |
| 19 |
| 20 SystemUIMode mode = kUIModeNormal; |
| 21 GetSystemUIMode(&mode, NULL); |
| 22 EXPECT_EQ(kUIModeNormal, mode); |
| 23 |
| 24 [manager enterFullscreenMode]; |
| 25 GetSystemUIMode(&mode, NULL); |
| 26 EXPECT_EQ(kUIModeAllHidden, mode); |
| 27 |
| 28 [manager exitFullscreenMode]; |
| 29 GetSystemUIMode(&mode, NULL); |
| 30 EXPECT_EQ(kUIModeNormal, mode); |
| 31 } |
| OLD | NEW |