aura: Create a single Env instance for aura_unittests.
commit7774360907679c60f9018b1f2cb11a262e84e2cf
authorSadrul Habib Chowdhury <sadrul@chromium.org>
Mon, 17 Aug 2015 22:17:37 +0000 (17 18:17 -0400)
committerSadrul Habib Chowdhury <sadrul@chromium.org>
Mon, 17 Aug 2015 22:18:45 +0000 (17 22:18 +0000)
tree9f18c8bc53dfb851aa80f075f382412e866e35b1
parentaceb37f426b2c0c545bdab0d9e8afa019b69c652
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

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

Cr-Commit-Position: refs/heads/master@{#343760}
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