OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/compositor/layer_owner.h" | 5 #include "ui/compositor/layer_owner.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/ptr_util.h" |
8 #include "base/test/null_task_runner.h" | 9 #include "base/test/null_task_runner.h" |
9 #include "cc/animation/animation_player.h" | 10 #include "cc/animation/animation_player.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "ui/compositor/compositor.h" | 12 #include "ui/compositor/compositor.h" |
12 #include "ui/compositor/layer.h" | 13 #include "ui/compositor/layer.h" |
13 #include "ui/compositor/layer_animation_observer.h" | 14 #include "ui/compositor/layer_animation_observer.h" |
14 #include "ui/compositor/layer_animator.h" | 15 #include "ui/compositor/layer_animator.h" |
15 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 16 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
16 #include "ui/compositor/scoped_layer_animation_settings.h" | 17 #include "ui/compositor/scoped_layer_animation_settings.h" |
17 #include "ui/compositor/test/context_factories_for_test.h" | 18 #include "ui/compositor/test/context_factories_for_test.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 206 |
206 layer->SetOpacity(0.5f); | 207 layer->SetOpacity(0.5f); |
207 | 208 |
208 scoped_refptr<cc::AnimationPlayer> player = | 209 scoped_refptr<cc::AnimationPlayer> player = |
209 layer->GetAnimator()->GetAnimationPlayerForTesting(); | 210 layer->GetAnimator()->GetAnimationPlayerForTesting(); |
210 EXPECT_TRUE(player); | 211 EXPECT_TRUE(player); |
211 EXPECT_TRUE(player->animation_timeline()); | 212 EXPECT_TRUE(player->animation_timeline()); |
212 } | 213 } |
213 | 214 |
214 } // namespace ui | 215 } // namespace ui |
OLD | NEW |