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

Side by Side Diff: ash/mus/workspace/workspace_layout_manager_unittest.cc

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: review comment Created 4 years, 2 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
« no previous file with comments | « ash/extended_desktop_unittest.cc ('k') | ash/screen_util.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/wm/workspace/workspace_layout_manager.h" 5 #include "ash/common/wm/workspace/workspace_layout_manager.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "ash/common/shell_observer.h" 10 #include "ash/common/shell_observer.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 /* 122 /*
123 TEST_F(WorkspaceLayoutManagerTest, KeepMinimumVisibilityInDisplays) { 123 TEST_F(WorkspaceLayoutManagerTest, KeepMinimumVisibilityInDisplays) {
124 if (!SupportsMultipleDisplays()) 124 if (!SupportsMultipleDisplays())
125 return; 125 return;
126 126
127 UpdateDisplay("300x400,400x500"); 127 UpdateDisplay("300x400,400x500");
128 aura::Window::Windows root_windows = Shell::GetAllRootWindows(); 128 aura::Window::Windows root_windows = Shell::GetAllRootWindows();
129 129
130 Shell::GetInstance()->display_manager()->SetLayoutForCurrentDisplays( 130 Shell::GetInstance()->display_manager()->SetLayoutForCurrentDisplays(
131 test::CreateDisplayLayout(display::DisplayPlacement::TOP, 0)); 131 test::CreateDisplayLayout(display_manager(),
132 display::DisplayPlacement::TOP, 0));
132 EXPECT_EQ("0,-500 400x500", root_windows[1]->GetBoundsInScreen().ToString()); 133 EXPECT_EQ("0,-500 400x500", root_windows[1]->GetBoundsInScreen().ToString());
133 134
134 std::unique_ptr<aura::Window> window1( 135 std::unique_ptr<aura::Window> window1(
135 CreateTestWindowInShellWithBounds(gfx::Rect(10, -400, 200, 200))); 136 CreateTestWindowInShellWithBounds(gfx::Rect(10, -400, 200, 200)));
136 EXPECT_EQ("10,-400 200x200", window1->GetBoundsInScreen().ToString()); 137 EXPECT_EQ("10,-400 200x200", window1->GetBoundsInScreen().ToString());
137 138
138 // Make sure the caption is visible. 139 // Make sure the caption is visible.
139 std::unique_ptr<aura::Window> window2( 140 std::unique_ptr<aura::Window> window2(
140 CreateTestWindowInShellWithBounds(gfx::Rect(10, -600, 200, 200))); 141 CreateTestWindowInShellWithBounds(gfx::Rect(10, -600, 200, 200)));
141 EXPECT_EQ("10,-500 200x200", window2->GetBoundsInScreen().ToString()); 142 EXPECT_EQ("10,-500 200x200", window2->GetBoundsInScreen().ToString());
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 occluded_window_bounds.width(), 1090 occluded_window_bounds.width(),
1090 occluded_window_bounds.height()).ToString(), 1091 occluded_window_bounds.height()).ToString(),
1091 window->bounds().ToString()); 1092 window->bounds().ToString());
1092 HideKeyboard(); 1093 HideKeyboard();
1093 EXPECT_EQ(occluded_window_bounds.ToString(), window->bounds().ToString()); 1094 EXPECT_EQ(occluded_window_bounds.ToString(), window->bounds().ToString());
1094 } 1095 }
1095 */ 1096 */
1096 1097
1097 } // namespace mus 1098 } // namespace mus
1098 } // namespace ash 1099 } // namespace ash
OLDNEW
« no previous file with comments | « ash/extended_desktop_unittest.cc ('k') | ash/screen_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698