| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/renderer_host/input/synthetic_gesture_controller.h" | 5 #include "content/browser/renderer_host/input/synthetic_gesture_controller.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 }; | 665 }; |
| 666 | 666 |
| 667 class DummySyntheticGestureControllerDelegate | 667 class DummySyntheticGestureControllerDelegate |
| 668 : public SyntheticGestureController::Delegate { | 668 : public SyntheticGestureController::Delegate { |
| 669 public: | 669 public: |
| 670 DummySyntheticGestureControllerDelegate() {} | 670 DummySyntheticGestureControllerDelegate() {} |
| 671 ~DummySyntheticGestureControllerDelegate() override {} | 671 ~DummySyntheticGestureControllerDelegate() override {} |
| 672 | 672 |
| 673 private: | 673 private: |
| 674 // SyntheticGestureController::Delegate: | 674 // SyntheticGestureController::Delegate: |
| 675 void RequestBeginFrameForSynthesizedInput( | |
| 676 base::OnceClosure callback) override {} | |
| 677 bool HasGestureStopped() override { return true; } | 675 bool HasGestureStopped() override { return true; } |
| 678 | 676 |
| 679 DISALLOW_COPY_AND_ASSIGN(DummySyntheticGestureControllerDelegate); | 677 DISALLOW_COPY_AND_ASSIGN(DummySyntheticGestureControllerDelegate); |
| 680 }; | 678 }; |
| 681 | 679 |
| 682 } // namespace | 680 } // namespace |
| 683 | 681 |
| 684 class SyntheticGestureControllerTestBase { | 682 class SyntheticGestureControllerTestBase { |
| 685 public: | 683 public: |
| 686 SyntheticGestureControllerTestBase() {} | 684 SyntheticGestureControllerTestBase() {} |
| (...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1766 FlushInputUntilComplete(); | 1764 FlushInputUntilComplete(); |
| 1767 | 1765 |
| 1768 EXPECT_EQ(4, num_success_); | 1766 EXPECT_EQ(4, num_success_); |
| 1769 EXPECT_EQ(0, num_failure_); | 1767 EXPECT_EQ(0, num_failure_); |
| 1770 EXPECT_EQ(pointer_mouse_target->num_actions_dispatched(), 4); | 1768 EXPECT_EQ(pointer_mouse_target->num_actions_dispatched(), 4); |
| 1771 EXPECT_TRUE( | 1769 EXPECT_TRUE( |
| 1772 pointer_mouse_target->SyntheticMouseActionDispatchedCorrectly(param, 1)); | 1770 pointer_mouse_target->SyntheticMouseActionDispatchedCorrectly(param, 1)); |
| 1773 } | 1771 } |
| 1774 | 1772 |
| 1775 } // namespace content | 1773 } // namespace content |
| OLD | NEW |