summaryrefslogtreecommitdiffstats
path: root/ui/aura/window_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura/window_unittest.cc')
-rw-r--r--ui/aura/window_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc
index d955719..54a2458 100644
--- a/ui/aura/window_unittest.cc
+++ b/ui/aura/window_unittest.cc
@@ -934,22 +934,22 @@ TEST_F(WindowTest, ReleaseCaptureOnDestroy) {
EXPECT_EQ(NULL, aura::client::GetCaptureWindow(root_window()));
}
-TEST_F(WindowTest, GetBoundsInRootWindow) {
+TEST_F(WindowTest, GetRootWindowBounds) {
scoped_ptr<Window> viewport(CreateTestWindowWithBounds(
gfx::Rect(0, 0, 300, 300), NULL));
scoped_ptr<Window> child(CreateTestWindowWithBounds(
gfx::Rect(0, 0, 100, 100), viewport.get()));
// Sanity check.
- EXPECT_EQ("0,0 100x100", child->GetBoundsInRootWindow().ToString());
+ EXPECT_EQ("0,0 100x100", child->GetRootWindowBounds().ToString());
// The |child| window's screen bounds should move along with the |viewport|.
viewport->SetBounds(gfx::Rect(-100, -100, 300, 300));
- EXPECT_EQ("-100,-100 100x100", child->GetBoundsInRootWindow().ToString());
+ EXPECT_EQ("-100,-100 100x100", child->GetRootWindowBounds().ToString());
// The |child| window is moved to the 0,0 in screen coordinates.
- // |GetBoundsInRootWindow()| should return 0,0.
+ // |GetRootWindowBounds()| should return 0,0.
child->SetBounds(gfx::Rect(100, 100, 100, 100));
- EXPECT_EQ("0,0 100x100", child->GetBoundsInRootWindow().ToString());
+ EXPECT_EQ("0,0 100x100", child->GetRootWindowBounds().ToString());
}
class MouseEnterExitWindowDelegate : public TestWindowDelegate {