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

Unified Diff: ash/test/ash_test_helper.cc

Issue 2910773002: cros: CustomFrameViewAsh avatar icon from a window prop (Closed)
Patch Set: add test Created 3 years, 7 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.h ('k') | ash/test/shell_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_helper.cc
diff --git a/ash/test/ash_test_helper.cc b/ash/test/ash_test_helper.cc
index 5bc6bd0051bb0d94e2600623d1c2c670cf187430..913251e3ce4fefe0532ccec1b249db6b0344e1de 100644
--- a/ash/test/ash_test_helper.cc
+++ b/ash/test/ash_test_helper.cc
@@ -4,6 +4,9 @@
#include "ash/test/ash_test_helper.h"
+#include <algorithm>
+#include <set>
+
#include "ash/accelerators/accelerator_controller_delegate_aura.h"
#include "ash/ash_switches.h"
#include "ash/aura/shell_port_classic.h"
@@ -20,7 +23,6 @@
#include "ash/test/ash_test_views_delegate.h"
#include "ash/test/display_configuration_controller_test_api.h"
#include "ash/test/test_screenshot_delegate.h"
-#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_window.h"
@@ -266,13 +268,6 @@ void AshTestHelper::RunAllPendingInMessageLoop() {
run_loop.RunUntilIdle();
}
-// static
-TestSessionStateDelegate* AshTestHelper::GetTestSessionStateDelegate() {
- CHECK(ShellPort::HasInstance());
- return static_cast<TestSessionStateDelegate*>(
- ShellPort::Get()->GetSessionStateDelegate());
-}
-
aura::Window* AshTestHelper::CurrentContext() {
aura::Window* root_window = Shell::GetRootWindowForNewWindows();
if (!root_window)
@@ -332,8 +327,6 @@ void AshTestHelper::CreateMashWindowManager() {
new mus::WindowManager(nullptr, config_, show_primary_root_on_connect));
window_manager_app_->window_manager()->shell_delegate_.reset(
test_shell_delegate_);
- window_manager_app_->window_manager()
- ->create_session_state_delegate_stub_for_test_ = false;
window_tree_client_setup_.InitForWindowManager(
window_manager_app_->window_manager_.get(),
« no previous file with comments | « ash/test/ash_test_helper.h ('k') | ash/test/shell_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698