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_impl.h" | 5 #include "ui/views/animation/ink_drop_impl.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/test/test_simple_task_runner.h" | 8 #include "base/test/test_simple_task_runner.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "ui/views/animation/ink_drop_ripple.h" | 11 #include "ui/views/animation/ink_drop_ripple.h" |
12 #include "ui/views/animation/test/ink_drop_impl_test_api.h" | 12 #include "ui/views/animation/test/ink_drop_impl_test_api.h" |
13 #include "ui/views/animation/test/test_ink_drop_host.h" | 13 #include "ui/views/animation/test/test_ink_drop_host.h" |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 | 16 |
17 // NOTE: The InkDropImpl class is also tested by the InkDropFactoryTest tests. | 17 // NOTE: The InkDropImpl class is also tested by the InkDropFactoryTest tests. |
18 class InkDropImplTest : public testing::Test { | 18 class InkDropImplTest : public testing::Test { |
19 public: | 19 public: |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 test_api_.CompleteAnimations(); | 222 test_api_.CompleteAnimations(); |
223 | 223 |
224 ink_drop_.SetHovered(false); | 224 ink_drop_.SetHovered(false); |
225 EXPECT_EQ(1, ink_drop_host_.num_ink_drop_layers()); | 225 EXPECT_EQ(1, ink_drop_host_.num_ink_drop_layers()); |
226 | 226 |
227 ink_drop_.SetHovered(true); | 227 ink_drop_.SetHovered(true); |
228 EXPECT_EQ(1, ink_drop_host_.num_ink_drop_layers()); | 228 EXPECT_EQ(1, ink_drop_host_.num_ink_drop_layers()); |
229 } | 229 } |
230 | 230 |
231 } // namespace views | 231 } // namespace views |
OLD | NEW |