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

Unified Diff: ui/aura/test/aura_test_helper.cc

Issue 11363124: Move DisplayManager and DisplayChangeObserverX11 from aura to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ios fix Created 8 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: ui/aura/test/aura_test_helper.cc
diff --git a/ui/aura/test/aura_test_helper.cc b/ui/aura/test/aura_test_helper.cc
index 73ab56a7ef69e23320517563f74f85723aee7248..d6db502db14fec076f0162b0348174fe00059113 100644
--- a/ui/aura/test/aura_test_helper.cc
+++ b/ui/aura/test/aura_test_helper.cc
@@ -10,9 +10,7 @@
#include "ui/aura/client/default_capture_client.h"
#include "ui/aura/env.h"
#include "ui/aura/focus_manager.h"
-#include "ui/aura/display_manager.h"
#include "ui/aura/root_window.h"
-#include "ui/aura/single_display_manager.h"
#include "ui/aura/test/test_activation_client.h"
#include "ui/aura/test/test_screen.h"
#include "ui/aura/test/test_stacking_client.h"
@@ -44,10 +42,10 @@ AuraTestHelper::~AuraTestHelper() {
void AuraTestHelper::SetUp() {
setup_called_ = true;
- Env::GetInstance()->SetDisplayManager(new SingleDisplayManager);
- root_window_.reset(aura::DisplayManager::CreateRootWindowForPrimaryDisplay());
- test_screen_.reset(new aura::TestScreen(root_window_.get()));
+ aura::Env::GetInstance();
+ test_screen_.reset(new TestScreen());
gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, test_screen_.get());
ananta 2012/11/09 18:39:51 This four line pattern has been repeated multiple
oshima 2012/11/09 18:53:49 I'd rather change other files to use AuraTestHelpe
+ root_window_.reset(test_screen_->CreateRootWindowForPrimaryDisplay());
ui_controls::InstallUIControlsAura(CreateUIControlsAura(root_window_.get()));
focus_manager_.reset(new FocusManager);

Powered by Google App Engine
This is Rietveld 408576698