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 "services/view_manager/scheduled_animation_group.h" | 5 #include "services/view_manager/scheduled_animation_group.h" |
6 | 6 |
7 #include "mojo/converters/geometry/geometry_type_converters.h" | 7 #include "mojo/converters/geometry/geometry_type_converters.h" |
8 #include "mojo/services/view_manager/public/interfaces/animations.mojom.h" | 8 #include "mojo/services/view_manager/interfaces/animations.mojom.h" |
9 #include "services/view_manager/server_view.h" | 9 #include "services/view_manager/server_view.h" |
10 #include "services/view_manager/test_server_view_delegate.h" | 10 #include "services/view_manager/test_server_view_delegate.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 using mojo::AnimationProperty; | 13 using mojo::AnimationProperty; |
14 using mojo::AnimationTweenType; | 14 using mojo::AnimationTweenType; |
15 using mojo::AnimationGroup; | 15 using mojo::AnimationGroup; |
16 using mojo::AnimationSequence; | 16 using mojo::AnimationSequence; |
17 using mojo::AnimationElement; | 17 using mojo::AnimationElement; |
18 using mojo::AnimationValue; | 18 using mojo::AnimationValue; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 element2.tween_type = AnimationTweenType::LINEAR; | 85 element2.tween_type = AnimationTweenType::LINEAR; |
86 | 86 |
87 // Element with no target_value is not valid. | 87 // Element with no target_value is not valid. |
88 EXPECT_FALSE(IsAnimationGroupValid(group)); | 88 EXPECT_FALSE(IsAnimationGroupValid(group)); |
89 | 89 |
90 element2.property = AnimationProperty::NONE; | 90 element2.property = AnimationProperty::NONE; |
91 EXPECT_TRUE(IsAnimationGroupValid(group)); | 91 EXPECT_TRUE(IsAnimationGroupValid(group)); |
92 } | 92 } |
93 | 93 |
94 } // namespace view_manager | 94 } // namespace view_manager |
OLD | NEW |