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

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

Issue 2657283003: mash: make Env::last_mouse_location() accurate for Mus (Closed)
Patch Set: fix test 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
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 a232d817d39f72ddb4bcf29b50d9deee3fc10ec6..e88c452a6426236515ac8e126734e23d1bbf3cd3 100644
--- a/ui/aura/test/aura_test_helper.cc
+++ b/ui/aura/test/aura_test_helper.cc
@@ -99,6 +99,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);

Powered by Google App Engine
This is Rietveld 408576698