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

Side by Side Diff: ui/compositor/layer_owner_unittest.cc

Issue 1783613004: CC Animation: Erase cc::LayerSettings everywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eraseandroid
Patch Set: Rebase. Created 4 years, 9 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 unified diff | Download patch
OLDNEW
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/test/null_task_runner.h" 8 #include "base/test/null_task_runner.h"
9 #include "cc/animation/animation_player.h" 9 #include "cc/animation/animation_player.h"
10 #include "cc/layers/layer_settings.h"
11 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/compositor/compositor.h" 11 #include "ui/compositor/compositor.h"
13 #include "ui/compositor/layer.h" 12 #include "ui/compositor/layer.h"
14 #include "ui/compositor/layer_animation_observer.h" 13 #include "ui/compositor/layer_animation_observer.h"
15 #include "ui/compositor/layer_animator.h" 14 #include "ui/compositor/layer_animator.h"
16 #include "ui/compositor/scoped_animation_duration_scale_mode.h" 15 #include "ui/compositor/scoped_animation_duration_scale_mode.h"
17 #include "ui/compositor/scoped_layer_animation_settings.h" 16 #include "ui/compositor/scoped_layer_animation_settings.h"
18 #include "ui/compositor/test/context_factories_for_test.h" 17 #include "ui/compositor/test/context_factories_for_test.h"
19 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
20 19
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 274
276 layer->SetOpacity(0.5f); 275 layer->SetOpacity(0.5f);
277 276
278 scoped_refptr<cc::AnimationPlayer> player = 277 scoped_refptr<cc::AnimationPlayer> player =
279 layer->GetAnimator()->GetAnimationPlayerForTesting(); 278 layer->GetAnimator()->GetAnimationPlayerForTesting();
280 EXPECT_TRUE(player); 279 EXPECT_TRUE(player);
281 EXPECT_TRUE(player->animation_timeline()); 280 EXPECT_TRUE(player->animation_timeline());
282 } 281 }
283 282
284 } // namespace ui 283 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698