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

Side by Side Diff: ash/display/display_util_unittest.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build Created 4 years, 1 month 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
« no previous file with comments | « ash/display/display_util.cc ('k') | ash/display/extended_mouse_warp_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/display/display_util.h" 5 #include "ash/display/display_util.h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
10 #include "ash/test/display_manager_test_api.h"
11 10
12 namespace ash { 11 namespace ash {
13 12
14 typedef test::AshTestBase DisplayUtilTest; 13 typedef test::AshTestBase DisplayUtilTest;
15 14
16 TEST_F(DisplayUtilTest, RotatedDisplay) { 15 TEST_F(DisplayUtilTest, RotatedDisplay) {
17 if (!SupportsMultipleDisplays()) 16 if (!SupportsMultipleDisplays())
18 return; 17 return;
19 { 18 {
20 UpdateDisplay("10+10-500x400,600+10-1000x600/r"); 19 UpdateDisplay("10+10-500x400,600+10-1000x600/r");
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 AshWindowTreeHost* host1 = 84 AshWindowTreeHost* host1 =
86 GetRootWindowController(root_windows[1])->ash_host(); 85 GetRootWindowController(root_windows[1])->ash_host();
87 gfx::Rect rect0 = GetNativeEdgeBounds(host0, gfx::Rect(499, 10, 1, 300)); 86 gfx::Rect rect0 = GetNativeEdgeBounds(host0, gfx::Rect(499, 10, 1, 300));
88 gfx::Rect rect1 = GetNativeEdgeBounds(host1, gfx::Rect(500, 10, 1, 300)); 87 gfx::Rect rect1 = GetNativeEdgeBounds(host1, gfx::Rect(500, 10, 1, 300));
89 EXPECT_EQ("10,99 1x300", rect0.ToString()); 88 EXPECT_EQ("10,99 1x300", rect0.ToString());
90 EXPECT_EQ("600,20 1x300", rect1.ToString()); 89 EXPECT_EQ("600,20 1x300", rect1.ToString());
91 } 90 }
92 } 91 }
93 92
94 } // namespace ash 93 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/display_util.cc ('k') | ash/display/extended_mouse_warp_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698