| 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 "build/build_config.h" |
| 5 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 6 #include "ui/gfx/animation/animation_delegate.h" | 7 #include "ui/gfx/animation/animation_delegate.h" |
| 7 #include "ui/gfx/animation/linear_animation.h" | 8 #include "ui/gfx/animation/linear_animation.h" |
| 8 #include "ui/gfx/animation/test_animation_delegate.h" | 9 #include "ui/gfx/animation/test_animation_delegate.h" |
| 9 | 10 |
| 10 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
| 11 #include "base/win/windows_version.h" | 12 #include "base/win/windows_version.h" |
| 12 #endif | 13 #endif |
| 13 | 14 |
| 14 namespace gfx { | 15 namespace gfx { |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 EXPECT_EQ(0.0, animation.GetCurrentValue()); | 150 EXPECT_EQ(0.0, animation.GetCurrentValue()); |
| 150 animation.Start(); | 151 animation.Start(); |
| 151 EXPECT_EQ(0.0, animation.GetCurrentValue()); | 152 EXPECT_EQ(0.0, animation.GetCurrentValue()); |
| 152 animation.End(); | 153 animation.End(); |
| 153 EXPECT_EQ(1.0, animation.GetCurrentValue()); | 154 EXPECT_EQ(1.0, animation.GetCurrentValue()); |
| 154 animation.Start(); | 155 animation.Start(); |
| 155 EXPECT_EQ(0.0, animation.GetCurrentValue()); | 156 EXPECT_EQ(0.0, animation.GetCurrentValue()); |
| 156 } | 157 } |
| 157 | 158 |
| 158 } // namespace gfx | 159 } // namespace gfx |
| OLD | NEW |