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

Side by Side 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: address review comment 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698