| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/message_loop/message_loop.h" |
| 5 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
| 6 #include "base/test/scoped_task_environment.h" | 7 #include "base/test/scoped_task_environment.h" |
| 7 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "ui/gfx/animation/animation_delegate.h" | 10 #include "ui/gfx/animation/animation_delegate.h" |
| 10 #include "ui/gfx/animation/linear_animation.h" | 11 #include "ui/gfx/animation/linear_animation.h" |
| 11 #include "ui/gfx/animation/test_animation_delegate.h" | 12 #include "ui/gfx/animation/test_animation_delegate.h" |
| 12 | 13 |
| 13 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 14 #include "base/test/scoped_task_environment.h" | 15 #include "base/test/scoped_task_environment.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 EXPECT_EQ(0.0, animation.GetCurrentValue()); | 158 EXPECT_EQ(0.0, animation.GetCurrentValue()); |
| 158 animation.Start(); | 159 animation.Start(); |
| 159 EXPECT_EQ(0.0, animation.GetCurrentValue()); | 160 EXPECT_EQ(0.0, animation.GetCurrentValue()); |
| 160 animation.End(); | 161 animation.End(); |
| 161 EXPECT_EQ(1.0, animation.GetCurrentValue()); | 162 EXPECT_EQ(1.0, animation.GetCurrentValue()); |
| 162 animation.Start(); | 163 animation.Start(); |
| 163 EXPECT_EQ(0.0, animation.GetCurrentValue()); | 164 EXPECT_EQ(0.0, animation.GetCurrentValue()); |
| 164 } | 165 } |
| 165 | 166 |
| 166 } // namespace gfx | 167 } // namespace gfx |
| OLD | NEW |