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

Unified Diff: cc/animation/layer_animation_controller_unittest.cc

Issue 1893253002: CC Animation: Make LayerAnimationController to have just one event observer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rc
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') | ui/compositor/layer_animator.cc » ('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 cbea341d4d07d92f3006e23f429390faec2cfc62..3f946c36b63a56dcdb752a59af77fcb037f8d679 100644
--- a/cc/animation/layer_animation_controller_unittest.cc
+++ b/cc/animation/layer_animation_controller_unittest.cc
@@ -1237,7 +1237,7 @@ TEST(LayerAnimationControllerTest, SpecifiedStartTimesAreSentToEventObservers) {
controller->set_needs_active_value_observations(true);
FakeLayerAnimationEventObserver observer;
- controller->AddEventObserver(&observer);
+ controller->SetEventObserver(&observer);
int animation_id =
AddOpacityTransitionToController(controller.get(), 1, 0, 1, false);
@@ -1262,6 +1262,8 @@ TEST(LayerAnimationControllerTest, SpecifiedStartTimesAreSentToEventObservers) {
// Validate start time on the event observer.
EXPECT_EQ(start_time, observer.start_time());
+
+ controller->SetEventObserver(nullptr);
}
// Tests animations that are waiting for a synchronized start time do not
« no previous file with comments | « cc/animation/layer_animation_controller.cc ('k') | ui/compositor/layer_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698