Chromium Code Reviews| Index: cc/test/animation_timelines_test_common.cc |
| diff --git a/cc/test/animation_timelines_test_common.cc b/cc/test/animation_timelines_test_common.cc |
| index 5f640b8091f5e53e2cd50cd894511cb12428a887..df07a49744f9a33fbb05ae33015f05e27083273d 100644 |
| --- a/cc/test/animation_timelines_test_common.cc |
| +++ b/cc/test/animation_timelines_test_common.cc |
| @@ -518,4 +518,16 @@ int AnimationTimelinesTest::NextTestLayerId() { |
| return next_test_layer_id_; |
| } |
| +void AnimationTimelinesTest::ExpectPlayerTimelineNeedsPushProperties( |
|
ajuma
2016/08/24 15:52:37
Putting this in a function rather than a macro mea
loyso (OOO)
2016/08/25 00:38:24
Failures in each particular are very rare - those
loyso (OOO)
2016/08/25 00:55:50
I can replace it with CHECK so it crashes and show
danakj
2016/08/25 01:05:59
You can return false from this function if any exp
loyso (OOO)
2016/08/25 03:59:02
Done.
|
| + bool needs_push_properties) { |
| + DCHECK(player_); |
| + DCHECK(timeline_); |
| + |
| + EXPECT_EQ(needs_push_properties, player_->needs_push_properties()); |
| + EXPECT_EQ(needs_push_properties, timeline_->needs_push_properties()); |
| + if (player_->element_animations()) |
| + EXPECT_EQ(needs_push_properties, |
| + player_->element_animations()->needs_push_properties()); |
| +} |
| + |
| } // namespace cc |