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

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

Issue 2524873002: Rename WindowTreeHost G|SetBounds to indicate they are in pixels. (Closed)
Patch Set: rebase 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/native_widget_mus.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/native_widget_mus_unittest.cc
diff --git a/ui/views/mus/native_widget_mus_unittest.cc b/ui/views/mus/native_widget_mus_unittest.cc
index 86beee68a63d961119300c5d3b696273e171eb85..0ef78eca005e723330374daf0afcf48a29f7c8b0 100644
--- a/ui/views/mus/native_widget_mus_unittest.cc
+++ b/ui/views/mus/native_widget_mus_unittest.cc
@@ -530,7 +530,8 @@ TEST_F(NativeWidgetMusTest, SetMusWindowBounds) {
EXPECT_NE(start_bounds, end_bounds);
EXPECT_EQ(start_bounds, mus_window->bounds());
- EXPECT_EQ(start_bounds, native_widget->window_tree_host()->GetBounds());
+ EXPECT_EQ(start_bounds,
+ native_widget->window_tree_host()->GetBoundsInPixels());
mus_window->SetBounds(end_bounds);
@@ -538,7 +539,7 @@ TEST_F(NativeWidgetMusTest, SetMusWindowBounds) {
// Main check for this test: Setting |mus_window| bounds while bypassing
// |native_widget| must update window_tree_host bounds.
- EXPECT_EQ(end_bounds, native_widget->window_tree_host()->GetBounds());
+ EXPECT_EQ(end_bounds, native_widget->window_tree_host()->GetBoundsInPixels());
}
// Verifies visibility of the aura::Window and ui::Window are updated when the
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698