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

Unified Diff: cc/test/animation_timelines_test_common.cc

Issue 2189813002: ElementAnimations should hold an ObservableList of AnimationPlayers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows bot Created 4 years, 4 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/element_animations_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e9377635582c17dcfc4ceeaad7445f4a76c15594..5f640b8091f5e53e2cd50cd894511cb12428a887 100644
--- a/cc/test/animation_timelines_test_common.cc
+++ b/cc/test/animation_timelines_test_common.cc
@@ -495,16 +495,22 @@ AnimationPlayer* AnimationTimelinesTest::GetPlayerForElementId(
ElementId element_id) {
const scoped_refptr<ElementAnimations> element_animations =
host_->GetElementAnimationsForElementId(element_id);
- return element_animations ? element_animations->players_list().head()->value()
- : nullptr;
+ return element_animations
+ ? ElementAnimations::PlayersList::Iterator(
+ &element_animations->players_list())
+ .GetNext()
+ : nullptr;
}
AnimationPlayer* AnimationTimelinesTest::GetImplPlayerForLayerId(
ElementId element_id) {
const scoped_refptr<ElementAnimations> element_animations =
host_impl_->GetElementAnimationsForElementId(element_id);
- return element_animations ? element_animations->players_list().head()->value()
- : nullptr;
+ return element_animations
+ ? ElementAnimations::PlayersList::Iterator(
+ &element_animations->players_list())
+ .GetNext()
+ : nullptr;
}
int AnimationTimelinesTest::NextTestLayerId() {
« no previous file with comments | « cc/animation/element_animations_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698