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..eb32904b8a5fea360b1301245143d030205c6962 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,14 @@ 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_.num_ink_drop_layers()); |
+ }) |
+ |
TEST_ALL_INK_DROPS(StateIsHiddenInitially, |
{ |
EXPECT_EQ( |