| Index: ui/views/animation/ink_drop_animation_controller_factory_unittest.cc
|
| diff --git a/ui/views/animation/ink_drop_animation_controller_factory_unittest.cc b/ui/views/animation/ink_drop_animation_controller_factory_unittest.cc
|
| index 8f15a8286f68ad0e88d3deac7a4245d06beb0e18..300ac92bdfc8f501d477bd672988176182749a14 100644
|
| --- a/ui/views/animation/ink_drop_animation_controller_factory_unittest.cc
|
| +++ b/ui/views/animation/ink_drop_animation_controller_factory_unittest.cc
|
| @@ -19,6 +19,8 @@ namespace views {
|
|
|
| // Macro that will execute |test_code| against all derivatives of the
|
| // InkDropAnimationController returned by the InkDropAnimationControllerFactory.
|
| +// TODO(bruthig): Refactor these tests to use TEST_P and
|
| +// INSTANTIATE_TEST_CASE_P.
|
| #define TEST_ALL_INK_DROPS(test_name, test_code) \
|
| TEST_F(InkDropAnimationControllerFactoryTest, test_name) \
|
| test_code TEST_F(MDInkDropAnimationControllerFactoryTest, test_name) test_code
|
| @@ -79,6 +81,15 @@ void MDInkDropAnimationControllerFactoryTest::SetUp() {
|
| InkDropAnimationControllerFactoryTest::SetUp();
|
| }
|
|
|
| +TEST_ALL_INK_DROPS(
|
| + VerifyAllInkDropLayersRemovedAfterDestruction,
|
| + {
|
| + ink_drop_animation_controller_->AnimateToState(
|
| + InkDropState::ACTION_PENDING);
|
| + ink_drop_animation_controller_.reset();
|
| + EXPECT_EQ(0, test_ink_drop_host_.current_number_of_ink_drop_layers());
|
| + })
|
| +
|
| TEST_ALL_INK_DROPS(StateIsHiddenInitially,
|
| {
|
| EXPECT_EQ(
|
|
|