| 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/animation_runner.h" | 5 #include "services/view_manager/animation_runner.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "mojo/converters/geometry/geometry_type_converters.h" | 8 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 9 #include "mojo/services/view_manager/public/interfaces/view_manager_constants.mo
jom.h" | 9 #include "mojo/services/view_manager/interfaces/view_manager_constants.mojom.h" |
| 10 #include "services/view_manager/animation_runner_observer.h" | 10 #include "services/view_manager/animation_runner_observer.h" |
| 11 #include "services/view_manager/scheduled_animation_group.h" | 11 #include "services/view_manager/scheduled_animation_group.h" |
| 12 #include "services/view_manager/server_view.h" | 12 #include "services/view_manager/server_view.h" |
| 13 #include "services/view_manager/test_server_view_delegate.h" | 13 #include "services/view_manager/test_server_view_delegate.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 using base::TimeDelta; | 16 using base::TimeDelta; |
| 17 using mojo::AnimationElement; | 17 using mojo::AnimationElement; |
| 18 using mojo::AnimationGroup; | 18 using mojo::AnimationGroup; |
| 19 using mojo::AnimationProperty; | 19 using mojo::AnimationProperty; |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 ASSERT_EQ(0u, runner_observer_.changes()->size()); | 627 ASSERT_EQ(0u, runner_observer_.changes()->size()); |
| 628 | 628 |
| 629 // Animate to end. | 629 // Animate to end. |
| 630 runner_.Tick(initial_time_ + TimeDelta::FromMicroseconds(2000)); | 630 runner_.Tick(initial_time_ + TimeDelta::FromMicroseconds(2000)); |
| 631 ASSERT_EQ(1u, runner_observer_.changes()->size()); | 631 ASSERT_EQ(1u, runner_observer_.changes()->size()); |
| 632 EXPECT_EQ("done", runner_observer_.changes()->at(0)); | 632 EXPECT_EQ("done", runner_observer_.changes()->at(0)); |
| 633 EXPECT_EQ(animation_id2, runner_observer_.change_ids()->at(0)); | 633 EXPECT_EQ(animation_id2, runner_observer_.change_ids()->at(0)); |
| 634 } | 634 } |
| 635 | 635 |
| 636 } // namespace view_manager | 636 } // namespace view_manager |
| OLD | NEW |