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

Unified Diff: ash/test/ash_test_helper.cc

Issue 2808723004: Renames WmShell to ShellPort (Closed)
Patch Set: feedback Created 3 years, 8 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
Index: ash/test/ash_test_helper.cc
diff --git a/ash/test/ash_test_helper.cc b/ash/test/ash_test_helper.cc
index a60e8aaeac6afedf2f56d670cbc1c249666d4bcf..54a50bf644c5f42d0deba0b38f277ba34d6162ca 100644
--- a/ash/test/ash_test_helper.cc
+++ b/ash/test/ash_test_helper.cc
@@ -5,14 +5,15 @@
#include "ash/test/ash_test_helper.h"
#include "ash/accelerators/accelerator_controller_delegate_aura.h"
-#include "ash/aura/wm_shell_aura.h"
-#include "ash/mus/bridge/wm_shell_mus.h"
+#include "ash/aura/shell_port_classic.h"
+#include "ash/mus/bridge/shell_port_mash.h"
#include "ash/mus/screen_mus.h"
#include "ash/mus/window_manager.h"
#include "ash/mus/window_manager_application.h"
#include "ash/public/cpp/config.h"
#include "ash/shell.h"
#include "ash/shell_init_params.h"
+#include "ash/shell_port.h"
#include "ash/system/screen_layout_observer.h"
#include "ash/test/ash_test_environment.h"
#include "ash/test/ash_test_views_delegate.h"
@@ -21,7 +22,6 @@
#include "ash/test/test_session_state_delegate.h"
#include "ash/test/test_shell_delegate.h"
#include "ash/test/test_system_tray_delegate.h"
-#include "ash/wm_shell.h"
#include "ash/wm_window.h"
#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
@@ -167,13 +167,13 @@ void AshTestHelper::SetUp(bool start_session) {
// TODO: disabled for mash as AcceleratorControllerDelegateAura isn't
// created in mash http://crbug.com/632111.
test_screenshot_delegate_ = new TestScreenshotDelegate();
- WmShellAura::Get()
+ ShellPortClassic::Get()
->accelerator_controller_delegate()
->SetScreenshotDelegate(
std::unique_ptr<ScreenshotDelegate>(test_screenshot_delegate_));
} else if (config_ == Config::MUS) {
test_screenshot_delegate_ = new TestScreenshotDelegate();
- mus::WmShellMus::Get()
+ mus::ShellPortMash::Get()
->accelerator_controller_delegate_mus()
->SetScreenshotDelegate(
std::unique_ptr<ScreenshotDelegate>(test_screenshot_delegate_));
@@ -231,9 +231,9 @@ void AshTestHelper::RunAllPendingInMessageLoop() {
// static
TestSessionStateDelegate* AshTestHelper::GetTestSessionStateDelegate() {
- CHECK(WmShell::HasInstance());
+ CHECK(ShellPort::HasInstance());
return static_cast<TestSessionStateDelegate*>(
- WmShell::Get()->GetSessionStateDelegate());
+ ShellPort::Get()->GetSessionStateDelegate());
}
aura::Window* AshTestHelper::CurrentContext() {

Powered by Google App Engine
This is Rietveld 408576698