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

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

Issue 2657283003: mash: make Env::last_mouse_location() accurate for Mus (Closed)
Patch Set: merge Created 3 years, 11 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/aura/test/aura_test_base.cc ('k') | ui/aura/test/env_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7c9e5cbb5705cfc8eac579464dc8519c9bd015a9..b215374acb0c984b96512371969c76d722d0b482 100644
--- a/ui/aura/test/aura_test_helper.cc
+++ b/ui/aura/test/aura_test_helper.cc
@@ -109,6 +109,9 @@ void AuraTestHelper::SetUp(ui::ContextFactory* context_factory,
// above.
env_helper.SetMode(env_mode);
env_helper.SetWindowTreeClient(window_tree_client_);
+ // Tests assume they can set the mouse location on Env() and have it reflected
+ // in tests.
+ env_helper.SetAlwaysUseLastMouseLocation(true);
Env::GetInstance()->SetActiveFocusClient(focus_client_.get(), nullptr);
Env::GetInstance()->set_context_factory(context_factory);
Env::GetInstance()->set_context_factory_private(context_factory_private);
« no previous file with comments | « ui/aura/test/aura_test_base.cc ('k') | ui/aura/test/env_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698