| Index: cc/animation/element_animations_unittest.cc
|
| diff --git a/cc/animation/element_animations_unittest.cc b/cc/animation/element_animations_unittest.cc
|
| index 012743a4beb4aaf0e3abe9637f2651ea51ef89de..dedfddb4866b145961f123963211170691e2f00a 100644
|
| --- a/cc/animation/element_animations_unittest.cc
|
| +++ b/cc/animation/element_animations_unittest.cc
|
| @@ -175,11 +175,8 @@ TEST_F(ElementAnimationsTest, AddRemovePlayers) {
|
| EXPECT_TRUE(element_animations_impl);
|
|
|
| int list_size_before = 0;
|
| - ElementAnimations::PlayersList::Iterator it(
|
| - &element_animations_impl_->players_list());
|
| - AnimationPlayer* player;
|
| - while ((player = it.GetNext()) != nullptr) {
|
| - EXPECT_TRUE(timeline_->GetPlayerById(player->id()));
|
| + for (auto& player : element_animations_impl_->players_list()) {
|
| + EXPECT_TRUE(timeline_->GetPlayerById(player.id()));
|
| ++list_size_before;
|
| }
|
| EXPECT_EQ(3, list_size_before);
|
| @@ -193,10 +190,8 @@ TEST_F(ElementAnimationsTest, AddRemovePlayers) {
|
| EXPECT_EQ(element_animations_impl, player_impl_->element_animations());
|
|
|
| int list_size_after = 0;
|
| - it = ElementAnimations::PlayersList::Iterator(
|
| - &element_animations_impl_->players_list());
|
| - while ((player = it.GetNext()) != nullptr) {
|
| - EXPECT_TRUE(timeline_->GetPlayerById(player->id()));
|
| + for (auto& player : element_animations_impl_->players_list()) {
|
| + EXPECT_TRUE(timeline_->GetPlayerById(player.id()));
|
| ++list_size_after;
|
| }
|
| EXPECT_EQ(2, list_size_after);
|
|
|