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

Unified Diff: ash/test/ash_test_impl_aura.cc

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: review comment Created 4 years, 2 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/test/ash_test_helper.cc ('k') | ash/test/display_manager_test_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_impl_aura.cc
diff --git a/ash/test/ash_test_impl_aura.cc b/ash/test/ash_test_impl_aura.cc
index cf32bc448a44aced969712b2d212f14cd3bffe4c..c80612da71f3e2ea43db93ccaff37b14cb5859a6 100644
--- a/ash/test/ash_test_impl_aura.cc
+++ b/ash/test/ash_test_impl_aura.cc
@@ -67,14 +67,15 @@ std::unique_ptr<WindowOwner> AshTestImplAura::CreateTestWindow(
}
display::Display AshTestImplAura::GetSecondaryDisplay() {
- return ScreenUtil::GetSecondaryDisplay();
+ return Shell::GetInstance()->display_manager()->GetSecondaryDisplay();
}
bool AshTestImplAura::SetSecondaryDisplayPlacement(
display::DisplayPlacement::Position position,
int offset) {
Shell::GetInstance()->display_manager()->SetLayoutForCurrentDisplays(
- test::CreateDisplayLayout(position, 0));
+ test::CreateDisplayLayout(Shell::GetInstance()->display_manager(),
+ position, 0));
return true;
}
« no previous file with comments | « ash/test/ash_test_helper.cc ('k') | ash/test/display_manager_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698