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

Unified Diff: ash/wm/screen_dimmer_unittest.cc

Issue 128753002: Remove SetHostSize/Bounds from RootWindow in favor of just calling SetBounds() on host() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: weirdness Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/screen_dimmer_unittest.cc
diff --git a/ash/wm/screen_dimmer_unittest.cc b/ash/wm/screen_dimmer_unittest.cc
index a87c71bf08844b0aaca43dd05a0944be7c5ba2b7..b386b01f6a05ce519d888223ffbbecbbb8f9a1d4 100644
--- a/ash/wm/screen_dimmer_unittest.cc
+++ b/ash/wm/screen_dimmer_unittest.cc
@@ -70,9 +70,9 @@ TEST_F(ScreenDimmerTest, ResizeLayer) {
// When we resize the root window, the dimming layer should be resized to
// match.
- gfx::Size kNewSize(400, 300);
- Shell::GetPrimaryRootWindow()->GetDispatcher()->SetHostSize(kNewSize);
- EXPECT_EQ(kNewSize.ToString(), dimming_layer->bounds().size().ToString());
+ gfx::Rect kNewBounds(400, 300);
+ Shell::GetPrimaryRootWindow()->GetDispatcher()->host()->SetBounds(kNewBounds);
+ EXPECT_EQ(kNewBounds.ToString(), dimming_layer->bounds().ToString());
}
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698