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

Unified Diff: components/mus/ws/window_manager_state_unittest.cc

Issue 2089023002: Promotes remaining global window manager state into WindowManagerState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override Created 4 years, 6 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 | « components/mus/ws/window_manager_state.cc ('k') | components/mus/ws/window_manager_window_tree_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_manager_state_unittest.cc
diff --git a/components/mus/ws/window_manager_state_unittest.cc b/components/mus/ws/window_manager_state_unittest.cc
index a99e21a78109597948c6865676d67abf504179b2..d4f699fadb998a4293403a9eebcc66eec57554b4 100644
--- a/components/mus/ws/window_manager_state_unittest.cc
+++ b/components/mus/ws/window_manager_state_unittest.cc
@@ -14,6 +14,7 @@
#include "components/mus/common/event_matcher_util.h"
#include "components/mus/surfaces/surfaces_state.h"
#include "components/mus/ws/accelerator.h"
+#include "components/mus/ws/display.h"
#include "components/mus/ws/display_binding.h"
#include "components/mus/ws/platform_display.h"
#include "components/mus/ws/platform_display_init_params.h"
@@ -22,6 +23,7 @@
#include "components/mus/ws/test_server_window_delegate.h"
#include "components/mus/ws/test_utils.h"
#include "components/mus/ws/window_manager_access_policy.h"
+#include "components/mus/ws/window_manager_display_root.h"
#include "components/mus/ws/window_manager_state.h"
#include "components/mus/ws/window_server.h"
#include "components/mus/ws/window_tree.h"
@@ -120,8 +122,9 @@ void WindowManagerStateTest::OnEventAckTimeout(
void WindowManagerStateTest::SetUp() {
window_event_targeting_helper_.SetTaskRunner(task_runner_);
- window_manager_state_ =
- window_event_targeting_helper_.display()->GetActiveWindowManagerState();
+ window_manager_state_ = window_event_targeting_helper_.display()
+ ->GetActiveWindowManagerDisplayRoot()
+ ->window_manager_state();
window_ = window_event_targeting_helper_.CreatePrimaryTree(
gfx::Rect(0, 0, 100, 100), gfx::Rect(0, 0, 50, 50));
window_tree_ = window_event_targeting_helper_.last_binding()->tree();
« no previous file with comments | « components/mus/ws/window_manager_state.cc ('k') | components/mus/ws/window_manager_window_tree_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698