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

Unified Diff: ash/test/ash_test_base.cc

Issue 12746002: Re-implement overscan & Implement Display Rotation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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/system/chromeos/tray_display.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_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index a1cf63740a66ce77cc3e83cc8d226bcaedf8f8f4..0082da2524c9f9ad55505af75fb7b9a78e4064fa 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -55,7 +55,7 @@ class AshEventGeneratorDelegate : public aura::test::EventGeneratorDelegate {
// aura::test::EventGeneratorDelegate overrides:
virtual aura::RootWindow* GetRootWindowAt(
const gfx::Point& point_in_screen) const OVERRIDE {
- gfx::Screen* screen = Shell::GetInstance()->screen();
+ gfx::Screen* screen = Shell::GetScreen();
gfx::Display display = screen->GetDisplayNearestPoint(point_in_screen);
return Shell::GetInstance()->display_controller()->
GetRootWindowForDisplayId(display.id());
@@ -107,12 +107,16 @@ void AshTestBase::SetUp() {
message_center::MessageCenter::Initialize();
#endif
ash::Shell::CreateInstance(test_shell_delegate_);
+ Shell* shell = Shell::GetInstance();
+ test::DisplayManagerTestApi(shell->display_manager()).
+ DisableChangeDisplayUponHostResize();
+
Shell::GetPrimaryRootWindow()->Show();
Shell::GetPrimaryRootWindow()->ShowRootWindow();
// Move the mouse cursor to far away so that native events doesn't
// interfere test expectations.
Shell::GetPrimaryRootWindow()->MoveCursorTo(gfx::Point(-1000, -1000));
- Shell::GetInstance()->cursor_manager()->EnableMouseEvents();
+ shell->cursor_manager()->EnableMouseEvents();
#if defined(OS_WIN)
if (base::win::GetVersion() >= base::win::VERSION_WIN8) {
« no previous file with comments | « ash/system/chromeos/tray_display.cc ('k') | ash/test/display_manager_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698