#include "ui/views/animation/widget_fade_animator.h"
#include <memory>
#include "base/test/bind.h"
#include "base/time/time.h"
#include "ui/gfx/animation/animation_test_api.h"
#include "ui/views/test/widget_test.h"
#include "ui/views/widget/widget.h"
namespace views {
namespace {
constexpr base::TimeDelta kFadeDuration = …;
constexpr base::TimeDelta kHalfFadeDuration = …;
class TestWidgetFadeAnimator : public WidgetFadeAnimator { … };
}
class WidgetFadeAnimatorTest : public test::WidgetTest { … };
TEST_F(WidgetFadeAnimatorTest, FadeIn) { … }
TEST_F(WidgetFadeAnimatorTest, FadeInAnimationProgressesToEnd) { … }
TEST_F(WidgetFadeAnimatorTest, FadeOut) { … }
TEST_F(WidgetFadeAnimatorTest, FadeOutAnimationProgressesToEnd) { … }
TEST_F(WidgetFadeAnimatorTest, CancelFadeOutAtStart) { … }
TEST_F(WidgetFadeAnimatorTest, CancelFadeOutInMiddle) { … }
TEST_F(WidgetFadeAnimatorTest, CancelFadeOutAtEndHasNoEffect) { … }
TEST_F(WidgetFadeAnimatorTest, CancelFadeOutHasNoEffectIfFadingIn) { … }
TEST_F(WidgetFadeAnimatorTest, FadeOutClosesWidget) { … }
TEST_F(WidgetFadeAnimatorTest, WidgetClosedDuringFade) { … }
TEST_F(WidgetFadeAnimatorTest, WidgetDestroyedDuringFade) { … }
TEST_F(WidgetFadeAnimatorTest, AnimatorDestroyedDuringFade) { … }
TEST_F(WidgetFadeAnimatorTest, FadeOutInterruptsFadeIn) { … }
TEST_F(WidgetFadeAnimatorTest, FadeInInterruptsFadeOut) { … }
TEST_F(WidgetFadeAnimatorTest, FadeInCallback) { … }
TEST_F(WidgetFadeAnimatorTest, FadeOutCallback) { … }
}