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

Unified Diff: ui/views/mus/window_manager_connection_unittest.cc

Issue 2431473002: Change single-display screens to use ScreenBase and DisplayList. (Closed)
Patch Set: renderer test 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/mus/screen_mus.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_manager_connection_unittest.cc
diff --git a/ui/views/mus/window_manager_connection_unittest.cc b/ui/views/mus/window_manager_connection_unittest.cc
index 299cb7c0cd84824e9dd35da929fd98310d28406b..b3f28d1d21f1d861efd583f5e85fe44e81e62ba2 100644
--- a/ui/views/mus/window_manager_connection_unittest.cc
+++ b/ui/views/mus/window_manager_connection_unittest.cc
@@ -90,8 +90,10 @@ TEST_F(WindowManagerConnectionTest, GetWindowAtScreenPointDisplayOffset) {
// Make the first display offset by 50.
test::WindowManagerConnectionTestApi api(connection());
- api.screen()->display_list()->FindDisplayById(displays[0].id())->
- set_bounds(gfx::Rect(44, 44, 50, 50));
+ display::Display display(
+ *api.screen()->display_list().FindDisplayById(displays[0].id()));
+ display.set_bounds(gfx::Rect(44, 44, 50, 50));
+ api.screen()->display_list().UpdateDisplay(display);
EXPECT_EQ(one, GetWindowAtScreenPoint(gfx::Point(50, 50)));
}
« no previous file with comments | « ui/views/mus/screen_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698