| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/touch_exploration_controller.h" | 5 #include "ui/chromeos/touch_exploration_controller.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ptr_util.h" |
| 14 #include "base/test/simple_test_tick_clock.h" | 15 #include "base/test/simple_test_tick_clock.h" |
| 15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 16 #include "ui/aura/client/cursor_client.h" | 17 #include "ui/aura/client/cursor_client.h" |
| 17 #include "ui/aura/test/aura_test_base.h" | 18 #include "ui/aura/test/aura_test_base.h" |
| 18 #include "ui/aura/test/test_cursor_client.h" | 19 #include "ui/aura/test/test_cursor_client.h" |
| 19 #include "ui/aura/window.h" | 20 #include "ui/aura/window.h" |
| 20 #include "ui/events/event.h" | 21 #include "ui/events/event.h" |
| 21 #include "ui/events/event_utils.h" | 22 #include "ui/events/event_utils.h" |
| 22 #include "ui/events/gestures/gesture_provider_aura.h" | 23 #include "ui/events/gestures/gesture_provider_aura.h" |
| 23 #include "ui/events/test/event_generator.h" | 24 #include "ui/events/test/event_generator.h" |
| (...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1934 AdvanceSimulatedTimePastTapDelay(); | 1935 AdvanceSimulatedTimePastTapDelay(); |
| 1935 EXPECT_TRUE(IsInNoFingersDownState()); | 1936 EXPECT_TRUE(IsInNoFingersDownState()); |
| 1936 | 1937 |
| 1937 ASSERT_EQ(1U, GetCapturedEvents().size()); | 1938 ASSERT_EQ(1U, GetCapturedEvents().size()); |
| 1938 EXPECT_EQ(ui::ET_MOUSE_MOVED, GetCapturedEvents()[0]->type()); | 1939 EXPECT_EQ(ui::ET_MOUSE_MOVED, GetCapturedEvents()[0]->type()); |
| 1939 ClearCapturedEvents(); | 1940 ClearCapturedEvents(); |
| 1940 } | 1941 } |
| 1941 } | 1942 } |
| 1942 | 1943 |
| 1943 } // namespace ui | 1944 } // namespace ui |
| OLD | NEW |