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

Unified Diff: ash/display/screen_ash_unittest.cc

Issue 2361283002: Add GetDisplayWithDisplayId to display::Screen. (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 | « no previous file | ash/test/ash_test_base.h » ('j') | extensions/shell/browser/shell_screen_unittest.cc » ('J')
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 747474f6878b7c205835bc29e34e27c0bf0625d2..6498155cd701c004ebefbe418b0c08b0005491d7 100644
--- a/ash/display/screen_ash_unittest.cc
+++ b/ash/display/screen_ash_unittest.cc
@@ -42,4 +42,17 @@ TEST_F(ScreenAshTest, TestGetWindowAtScreenPoint) {
gfx::Point(250, 260)));
}
+TEST_F(ScreenAshTest, TestGetDisplayById) {
+ if (!SupportsMultipleDisplays())
+ return;
+
+ UpdateDisplay("200x200,400x400");
+ int64_t id = SetFirstDisplayAsInternalDisplay();
+ display::Display display;
+ bool has_display =
+ display::Screen::GetScreen()->GetDisplayWithDisplayId(id, &display);
+ EXPECT_TRUE(has_display);
+ EXPECT_EQ(id, display.id());
+}
+
} // namespace ash
« no previous file with comments | « no previous file | ash/test/ash_test_base.h » ('j') | extensions/shell/browser/shell_screen_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698