| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/gfx/animation/slide_animation.h" | 5 #include "ui/gfx/animation/slide_animation.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "ui/gfx/animation/test_animation_delegate.h" | 11 #include "ui/gfx/animation/test_animation_delegate.h" |
| 11 | 12 |
| 12 namespace gfx { | 13 namespace gfx { |
| 13 | 14 |
| 14 // Class to provide access to SlideAnimation internals for testing. | 15 // Class to provide access to SlideAnimation internals for testing. |
| 15 class SlideAnimation::TestApi { | 16 class SlideAnimation::TestApi { |
| 16 public: | 17 public: |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 97 |
| 97 // Delete the animation. | 98 // Delete the animation. |
| 98 animation.reset(); | 99 animation.reset(); |
| 99 | 100 |
| 100 // Make sure the delegate wasn't notified. | 101 // Make sure the delegate wasn't notified. |
| 101 EXPECT_FALSE(delegate.finished()); | 102 EXPECT_FALSE(delegate.finished()); |
| 102 EXPECT_FALSE(delegate.canceled()); | 103 EXPECT_FALSE(delegate.canceled()); |
| 103 } | 104 } |
| 104 | 105 |
| 105 } // namespace gfx | 106 } // namespace gfx |
| OLD | NEW |