aura: Create a single Env instance for aura_unittests.
commite154b2e7b40f709f008a6d88f15ca46abf7d865d
authorsadrul <sadrul@chromium.org>
Tue, 1 Sep 2015 17:27:11 +0000 (1 10:27 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 1 Sep 2015 17:27:40 +0000 (1 17:27 +0000)
tree8dc4136bb66781cfdda3ef70cf0404446bce3b05
parent82038fa9e3caa91817c75e3433134bd90c6be37b
aura: Create a single Env instance for aura_unittests.

Create the Env instance for running the tests in AuraTestSuite. Also fix some
flaky tests that used to install pre-target handlers on the root-window, but
did not remove them. This can cause a crash since root_window() outlives the
pre-target handlers, and synthetic mouse-events can be dispatched to the
root-window during tear-down.

BUG=none
R=sky@chromium.org

Previously committed in http://crrev.com/343760, reverted in http://crrev.com/344064

Review URL: https://codereview.chromium.org/1287073004

Cr-Commit-Position: refs/heads/master@{#346680}
ui/aura/test/aura_test_helper.cc
ui/aura/test/env_test_helper.h
ui/aura/test/run_all_unittests.cc
ui/aura/window_event_dispatcher_unittest.cc
ui/aura/window_unittest.cc