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

Unified Diff: ui/views/mus/desktop_window_tree_host_mus_unittest.cc

Issue 2714763002: Change FocusSynchronizer to maintain active focus client and window. (Closed)
Patch Set: test Created 3 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 | « ui/views/mus/desktop_window_tree_host_mus.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/desktop_window_tree_host_mus_unittest.cc
diff --git a/ui/views/mus/desktop_window_tree_host_mus_unittest.cc b/ui/views/mus/desktop_window_tree_host_mus_unittest.cc
index 247c0e438f518d0594b0b09785aa0244a3ec653c..6e7cdf73b5230929eacd544c2367c7dd8a77374a 100644
--- a/ui/views/mus/desktop_window_tree_host_mus_unittest.cc
+++ b/ui/views/mus/desktop_window_tree_host_mus_unittest.cc
@@ -12,6 +12,7 @@
#include "ui/aura/client/transient_window_client.h"
#include "ui/aura/env.h"
#include "ui/aura/mus/capture_synchronizer.h"
+#include "ui/aura/mus/focus_synchronizer.h"
#include "ui/aura/mus/in_flight_change.h"
#include "ui/aura/mus/window_mus.h"
#include "ui/aura/mus/window_tree_client.h"
@@ -207,8 +208,10 @@ TEST_F(DesktopWindowTreeHostMusTest, ActivateBeforeShow) {
aura::client::FocusClient* widget_focus_client =
aura::client::GetFocusClient(widget1->GetNativeWindow());
ASSERT_TRUE(widget_focus_client);
- EXPECT_EQ(widget_focus_client,
- aura::Env::GetInstance()->active_focus_client());
+ EXPECT_EQ(widget_focus_client, MusClient::Get()
+ ->window_tree_client()
+ ->focus_synchronizer()
+ ->active_focus_client());
}
TEST_F(DesktopWindowTreeHostMusTest, CursorClientDuringTearDown) {
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698