| 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/mus/ws/animation_runner.h" | 5 #include "services/ui/ws/animation_runner.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" | 8 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" |
| 9 #include "components/mus/ws/animation_runner_observer.h" | 9 #include "services/ui/ws/animation_runner_observer.h" |
| 10 #include "components/mus/ws/scheduled_animation_group.h" | 10 #include "services/ui/ws/scheduled_animation_group.h" |
| 11 #include "components/mus/ws/server_window.h" | 11 #include "services/ui/ws/server_window.h" |
| 12 #include "components/mus/ws/test_server_window_delegate.h" | 12 #include "services/ui/ws/test_server_window_delegate.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 using base::TimeDelta; | 15 using base::TimeDelta; |
| 16 | 16 |
| 17 namespace mus { | 17 namespace mus { |
| 18 using mojom::AnimationProperty; | 18 using mojom::AnimationProperty; |
| 19 using mojom::AnimationTweenType; | 19 using mojom::AnimationTweenType; |
| 20 using mojom::AnimationElement; | 20 using mojom::AnimationElement; |
| 21 using mojom::AnimationGroup; | 21 using mojom::AnimationGroup; |
| 22 using mojom::AnimationProperty; | 22 using mojom::AnimationProperty; |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 | 630 |
| 631 // Animate to end. | 631 // Animate to end. |
| 632 runner_.Tick(initial_time_ + TimeDelta::FromMicroseconds(2000)); | 632 runner_.Tick(initial_time_ + TimeDelta::FromMicroseconds(2000)); |
| 633 ASSERT_EQ(1u, runner_observer_.changes()->size()); | 633 ASSERT_EQ(1u, runner_observer_.changes()->size()); |
| 634 EXPECT_EQ("done", runner_observer_.changes()->at(0)); | 634 EXPECT_EQ("done", runner_observer_.changes()->at(0)); |
| 635 EXPECT_EQ(animation_id2, runner_observer_.change_ids()->at(0)); | 635 EXPECT_EQ(animation_id2, runner_observer_.change_ids()->at(0)); |
| 636 } | 636 } |
| 637 | 637 |
| 638 } // ws | 638 } // ws |
| 639 } // mus | 639 } // mus |
| OLD | NEW |