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

Unified Diff: cc/animation/layer_animation_controller_unittest.cc

Issue 1881373002: CC Animation: Erase AnimationRegistrar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@private
Patch Set: 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/layer_animation_controller.cc ('k') | cc/cc.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/layer_animation_controller_unittest.cc
diff --git a/cc/animation/layer_animation_controller_unittest.cc b/cc/animation/layer_animation_controller_unittest.cc
index a4bdc67f2f1871083e5cc91a2e35314d6f05dae0..45fe7269861b4d7ec047cef596b686230f889d45 100644
--- a/cc/animation/layer_animation_controller_unittest.cc
+++ b/cc/animation/layer_animation_controller_unittest.cc
@@ -232,8 +232,8 @@ TEST(LayerAnimationControllerTest, Activation) {
controller->AddValueObserver(&dummy);
std::unique_ptr<AnimationEvents> events = host->CreateEvents();
- host->SetAnimationRegistrarFor(controller);
- host_impl->SetAnimationRegistrarFor(controller_impl);
+ controller->SetAnimationHost(host.get());
+ controller_impl->SetAnimationHost(host_impl.get());
EXPECT_EQ(1u, host->all_animation_controllers_for_testing().size());
EXPECT_EQ(1u, host_impl->all_animation_controllers_for_testing().size());
@@ -297,8 +297,8 @@ TEST(LayerAnimationControllerTest, Activation) {
EXPECT_EQ(0u, host->active_animation_controllers_for_testing().size());
EXPECT_EQ(0u, host_impl->active_animation_controllers_for_testing().size());
- host->ResetAnimationRegistrarFor(controller);
- host_impl->ResetAnimationRegistrarFor(controller_impl);
+ controller->SetAnimationHost(nullptr);
+ controller_impl->SetAnimationHost(nullptr);
}
TEST(LayerAnimationControllerTest, SyncPause) {
« no previous file with comments | « cc/animation/layer_animation_controller.cc ('k') | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698