Introduce NON_ZERO_DURATION for animation unit tests
commit2a291911f39e27fccba073356cb4ca6a1942174e
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 29 Jul 2014 04:22:05 +0000 (29 04:22 +0000)
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 29 Jul 2014 04:22:05 +0000 (29 04:22 +0000)
treeab85a88015f38fbdd03f6ce50eb86f04687b28c3
parent3f832aace784c5c6bef49107f8e4f4560f7bad06
Introduce NON_ZERO_DURATION for animation unit tests

Animations are usually disabled in unit tests for performance. However, to
test the animation system itself some tests request "normal" durations.
Under some conditions (remote desktop, animation disabled for accessibility)
the "normal" duration could still be zero.

This was causing test failures and use-after-frees in ash_unittests on the
drmemory bots and for developers using remote desktop.

Introduce NON_ZERO_DURATION to signal that animation must be enabled and the
duration must be non-zero, but other than that can be as short as possible.

BUG=397478,396969
TEST=ash_unittests on drmemory, Windows and Chrome OS bots

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286089 0039d316-1c4b-4281-b951-d872f2087c98
17 files changed:
ash/desktop_background/desktop_background_controller_unittest.cc
ash/shelf/shelf_layout_manager_unittest.cc
ash/wm/overview/window_selector_unittest.cc
ash/wm/window_animations_unittest.cc
ash/wm/workspace_controller_unittest.cc
content/browser/web_contents/aura/window_slider_unittest.cc
tools/valgrind/drmemory/suppressions.txt
tools/valgrind/gtest_exclude/ash_unittests.gtest-drmemory_win32.txt [deleted file]
ui/aura/window_unittest.cc
ui/compositor/layer_animation_element.cc
ui/compositor/layer_animator_unittest.cc
ui/compositor/scoped_animation_duration_scale_mode.h
ui/keyboard/keyboard_controller_unittest.cc
ui/views/controls/textfield/textfield.cc
ui/views/widget/widget_unittest.cc
ui/wm/core/visibility_controller_unittest.cc
ui/wm/core/window_animations.cc