OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/views/animation/ink_drop_hover.h" | 5 #include "ui/views/animation/ink_drop_hover.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 std::unique_ptr<InkDropHover> ink_drop_hover = CreateInkDropHover(); | 46 std::unique_ptr<InkDropHover> ink_drop_hover = CreateInkDropHover(); |
47 EXPECT_FALSE(ink_drop_hover->IsFadingInOrVisible()); | 47 EXPECT_FALSE(ink_drop_hover->IsFadingInOrVisible()); |
48 } | 48 } |
49 | 49 |
50 TEST_F(InkDropHoverTest, IsHoveredStateTransitions) { | 50 TEST_F(InkDropHoverTest, IsHoveredStateTransitions) { |
51 std::unique_ptr<InkDropHover> ink_drop_hover = CreateInkDropHover(); | 51 std::unique_ptr<InkDropHover> ink_drop_hover = CreateInkDropHover(); |
52 | 52 |
53 ink_drop_hover->FadeIn(base::TimeDelta::FromMilliseconds(0)); | 53 ink_drop_hover->FadeIn(base::TimeDelta::FromMilliseconds(0)); |
54 EXPECT_TRUE(ink_drop_hover->IsFadingInOrVisible()); | 54 EXPECT_TRUE(ink_drop_hover->IsFadingInOrVisible()); |
55 | 55 |
56 ink_drop_hover->FadeOut(base::TimeDelta::FromMilliseconds(0)); | 56 ink_drop_hover->FadeOut(base::TimeDelta::FromMilliseconds(0), |
| 57 false /* explode */); |
57 EXPECT_FALSE(ink_drop_hover->IsFadingInOrVisible()); | 58 EXPECT_FALSE(ink_drop_hover->IsFadingInOrVisible()); |
58 } | 59 } |
59 | 60 |
60 } // namespace test | 61 } // namespace test |
61 } // namespace views | 62 } // namespace views |
OLD | NEW |