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

Unified Diff: ash/test/ash_test_base.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
Index: ash/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index 128c2b9d43bc1ff0287883ac5a21c1282d07a942..20562512d14c9cb7aac85789574dca90d34bfb14 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -217,6 +217,12 @@ void AshTestBase::UpdateDisplay(const std::string& display_specs) {
.UpdateDisplay(display_specs);
}
+int64_t AshTestBase::SetFirstDisplayAsInternalDisplay() {
+ return display::test::DisplayManagerTestApi(
+ Shell::GetInstance()->display_manager())
+ .SetFirstDisplayAsInternalDisplay();
+}
+
aura::Window* AshTestBase::CurrentContext() {
return ash_test_helper_->CurrentContext();
}

Powered by Google App Engine
This is Rietveld 408576698