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

Unified Diff: ash/display/screen_ash_unittest.cc

Issue 1608053002: Remove now-unnecessary wrappers around gfx::Screen::GetScreen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-5
Patch Set: cros Created 4 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
« no previous file with comments | « ash/display/screen_ash.cc ('k') | ash/display/screen_position_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_ash_unittest.cc
diff --git a/ash/display/screen_ash_unittest.cc b/ash/display/screen_ash_unittest.cc
index 798b5e6a048d951d804a166a6dbb4da6f6f05944..a60d54fba20cefd10ecf4b882a54d74a475d6b26 100644
--- a/ash/display/screen_ash_unittest.cc
+++ b/ash/display/screen_ash_unittest.cc
@@ -15,8 +15,6 @@ class ScreenAshTest : public test::AshTestBase {
ScreenAshTest() {}
~ScreenAshTest() override {}
- static gfx::Screen* Screen() { return Shell::GetScreen(); }
-
private:
DISALLOW_COPY_AND_ASSIGN(ScreenAshTest);
};
@@ -38,8 +36,10 @@ TEST_F(ScreenAshTest, TestGetWindowAtScreenPoint) {
ASSERT_NE(win1->GetRootWindow(), win2->GetRootWindow());
- EXPECT_EQ(win1.get(), Screen()->GetWindowAtScreenPoint(gfx::Point(50, 60)));
- EXPECT_EQ(win2.get(), Screen()->GetWindowAtScreenPoint(gfx::Point(250, 260)));
+ EXPECT_EQ(win1.get(), gfx::Screen::GetScreen()->GetWindowAtScreenPoint(
+ gfx::Point(50, 60)));
+ EXPECT_EQ(win2.get(), gfx::Screen::GetScreen()->GetWindowAtScreenPoint(
+ gfx::Point(250, 260)));
}
} // namespace ash
« no previous file with comments | « ash/display/screen_ash.cc ('k') | ash/display/screen_position_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698