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/public/interfaces/view_manager/animations.mojom.h" | 8 #include "mojo/services/view_manager/public/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 namespace mojo { | 13 namespace mojo { |
14 namespace service { | 14 namespace service { |
15 namespace { | 15 namespace { |
16 | 16 |
17 bool IsAnimationGroupValid(const AnimationGroup& transport_group) { | 17 bool IsAnimationGroupValid(const AnimationGroup& transport_group) { |
18 TestServerViewDelegate view_delegate; | 18 TestServerViewDelegate view_delegate; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 // Element with no target_value is not valid. | 81 // Element with no target_value is not valid. |
82 EXPECT_FALSE(IsAnimationGroupValid(group)); | 82 EXPECT_FALSE(IsAnimationGroupValid(group)); |
83 | 83 |
84 element2.property = ANIMATION_PROPERTY_NONE; | 84 element2.property = ANIMATION_PROPERTY_NONE; |
85 EXPECT_TRUE(IsAnimationGroupValid(group)); | 85 EXPECT_TRUE(IsAnimationGroupValid(group)); |
86 } | 86 } |
87 | 87 |
88 } // namespace service | 88 } // namespace service |
89 } // namespace mojo | 89 } // namespace mojo |
OLD | NEW |