#include "ui/views/animation/bounds_animator.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/icu_test_util.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/gfx/animation/slide_animation.h"
#include "ui/gfx/animation/test_animation_delegate.h"
#include "ui/views/view.h"
Animation;
SlideAnimation;
TestAnimationDelegate;
namespace views {
namespace {
class OwnedDelegate : public gfx::AnimationDelegate { … };
bool OwnedDelegate::deleted_ = …;
bool OwnedDelegate::canceled_ = …;
class TestView : public View { … };
BEGIN_METADATA(…)
class RTLAnimationTestDelegate : public gfx::AnimationDelegate { … };
}
class BoundsAnimatorTest : public testing::Test { … };
TEST_F(BoundsAnimatorTest, AnimateViewTo) { … }
TEST_F(BoundsAnimatorTest, DeleteWhileAnimating) { … }
TEST_F(BoundsAnimatorTest, DeleteDelegateOnCancel) { … }
TEST_F(BoundsAnimatorTest, DeleteDelegateOnNewAnimate) { … }
TEST_F(BoundsAnimatorTest, HandleDuplicateAnimation) { … }
TEST_F(BoundsAnimatorTest, DuplicateAnimationsCanReplaceDelegate) { … }
TEST_F(BoundsAnimatorTest, StopAnimating) { … }
TEST_F(BoundsAnimatorTest, CompleteAnimation) { … }
TEST_F(BoundsAnimatorTest, UseTransformsAnimateViewTo) { … }
TEST_F(BoundsAnimatorTest, NoTransformForScalingAnimation) { … }
TEST_F(BoundsAnimatorTest, UseTransformsAnimateViewToEmptySrc) { … }
TEST_F(BoundsAnimatorTest, UseTransformsCancelAnimation) { … }
TEST_F(BoundsAnimatorTest, UseTransformsCancelAnimationRTL) { … }
TEST_F(BoundsAnimatorTest, VerifyBoundsAnimatorUnderRTL) { … }
}