Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: cc/animation/animation_player_unittest.cc

Issue 1904653002: CC Animation: Merge LayerAnimationController into ElementAnimations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor optimization: Don't init value observations if same host. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/animation/animation_player.cc ('k') | cc/animation/element_animations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_player_unittest.cc
diff --git a/cc/animation/animation_player_unittest.cc b/cc/animation/animation_player_unittest.cc
index dbec1fe3bfd3634291e9fa00b58533f2be4d5547..bd0bb8e48d4359d15287e87657d338bcb0f1caa9 100644
--- a/cc/animation/animation_player_unittest.cc
+++ b/cc/animation/animation_player_unittest.cc
@@ -206,27 +206,27 @@ TEST_F(AnimationPlayerTest, AttachTwoPlayersToOneLayer) {
host_->PushPropertiesTo(host_impl_);
host_impl_->ActivateAnimations();
- EXPECT_FALSE(delegate1.started_);
- EXPECT_FALSE(delegate1.finished_);
+ EXPECT_FALSE(delegate1.started());
+ EXPECT_FALSE(delegate1.finished());
- EXPECT_FALSE(delegate2.started_);
- EXPECT_FALSE(delegate2.finished_);
+ EXPECT_FALSE(delegate2.started());
+ EXPECT_FALSE(delegate2.finished());
base::TimeTicks time;
time += base::TimeDelta::FromSecondsD(0.1);
AnimateLayersTransferEvents(time, 2u);
- EXPECT_TRUE(delegate1.started_);
- EXPECT_FALSE(delegate1.finished_);
+ EXPECT_TRUE(delegate1.started());
+ EXPECT_FALSE(delegate1.finished());
- EXPECT_TRUE(delegate2.started_);
- EXPECT_FALSE(delegate2.finished_);
+ EXPECT_TRUE(delegate2.started());
+ EXPECT_FALSE(delegate2.finished());
time += base::TimeDelta::FromSecondsD(duration);
AnimateLayersTransferEvents(time, 2u);
- EXPECT_TRUE(delegate1.finished_);
- EXPECT_TRUE(delegate2.finished_);
+ EXPECT_TRUE(delegate1.finished());
+ EXPECT_TRUE(delegate2.finished());
client_.ExpectOpacityPropertyMutated(layer_id_, LayerTreeType::ACTIVE,
end_opacity);
« no previous file with comments | « cc/animation/animation_player.cc ('k') | cc/animation/element_animations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698