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 "components/view_manager/scheduled_animation_group.h" | 5 #include "components/view_manager/scheduled_animation_group.h" |
6 | 6 |
| 7 #include "components/view_manager/public/interfaces/animations.mojom.h" |
7 #include "components/view_manager/server_view.h" | 8 #include "components/view_manager/server_view.h" |
8 #include "components/view_manager/test_server_view_delegate.h" | 9 #include "components/view_manager/test_server_view_delegate.h" |
9 #include "mojo/converters/geometry/geometry_type_converters.h" | 10 #include "mojo/converters/geometry/geometry_type_converters.h" |
10 #include "mojo/converters/transform/transform_type_converters.h" | 11 #include "mojo/converters/transform/transform_type_converters.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "third_party/mojo_services/src/view_manager/public/interfaces/animation
s.mojom.h" | |
13 | 13 |
14 using mojo::ANIMATION_PROPERTY_NONE; | 14 using mojo::ANIMATION_PROPERTY_NONE; |
15 using mojo::ANIMATION_PROPERTY_OPACITY; | 15 using mojo::ANIMATION_PROPERTY_OPACITY; |
16 using mojo::ANIMATION_PROPERTY_TRANSFORM; | 16 using mojo::ANIMATION_PROPERTY_TRANSFORM; |
17 using mojo::ANIMATION_TWEEN_TYPE_LINEAR; | 17 using mojo::ANIMATION_TWEEN_TYPE_LINEAR; |
18 using mojo::AnimationGroup; | 18 using mojo::AnimationGroup; |
19 using mojo::AnimationSequence; | 19 using mojo::AnimationSequence; |
20 using mojo::AnimationElement; | 20 using mojo::AnimationElement; |
21 using mojo::AnimationValue; | 21 using mojo::AnimationValue; |
22 | 22 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 element2.tween_type = ANIMATION_TWEEN_TYPE_LINEAR; | 88 element2.tween_type = ANIMATION_TWEEN_TYPE_LINEAR; |
89 | 89 |
90 // Element with no target_value is not valid. | 90 // Element with no target_value is not valid. |
91 EXPECT_FALSE(IsAnimationGroupValid(group)); | 91 EXPECT_FALSE(IsAnimationGroupValid(group)); |
92 | 92 |
93 element2.property = ANIMATION_PROPERTY_NONE; | 93 element2.property = ANIMATION_PROPERTY_NONE; |
94 EXPECT_TRUE(IsAnimationGroupValid(group)); | 94 EXPECT_TRUE(IsAnimationGroupValid(group)); |
95 } | 95 } |
96 | 96 |
97 } // namespace view_manager | 97 } // namespace view_manager |
OLD | NEW |