| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/mouse_wheel_event_queue.h" | 5 #include "content/browser/renderer_host/input/mouse_wheel_event_queue.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "content/browser/renderer_host/input/timeout_monitor.h" | 16 #include "content/browser/renderer_host/input/timeout_monitor.h" |
| 17 #include "content/common/input/synthetic_web_input_event_builders.h" | 17 #include "content/common/input/synthetic_web_input_event_builders.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "third_party/WebKit/public/web/WebInputEvent.h" | 19 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 20 | 20 |
| 21 using blink::WebGestureEvent; | 21 using blink::WebGestureEvent; |
| 22 using blink::WebInputEvent; | 22 using blink::WebInputEvent; |
| 23 using blink::WebMouseWheelEvent; | 23 using blink::WebMouseWheelEvent; |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 EXPECT_EQ(1U, GetAndResetAckedEventCount()); | 539 EXPECT_EQ(1U, GetAndResetAckedEventCount()); |
| 540 EXPECT_EQ(2U, all_sent_events().size()); | 540 EXPECT_EQ(2U, all_sent_events().size()); |
| 541 EXPECT_GESTURE_SCROLL_BEGIN(sent_gesture_event(0)); | 541 EXPECT_GESTURE_SCROLL_BEGIN(sent_gesture_event(0)); |
| 542 EXPECT_GESTURE_SCROLL_UPDATE(sent_gesture_event(1)); | 542 EXPECT_GESTURE_SCROLL_UPDATE(sent_gesture_event(1)); |
| 543 EXPECT_EQ(0U, sent_gesture_event(1)->data.scrollUpdate.deltaX); | 543 EXPECT_EQ(0U, sent_gesture_event(1)->data.scrollUpdate.deltaX); |
| 544 EXPECT_EQ(1U, sent_gesture_event(1)->data.scrollUpdate.deltaY); | 544 EXPECT_EQ(1U, sent_gesture_event(1)->data.scrollUpdate.deltaY); |
| 545 EXPECT_EQ(2U, GetAndResetSentEventCount()); | 545 EXPECT_EQ(2U, GetAndResetSentEventCount()); |
| 546 } | 546 } |
| 547 | 547 |
| 548 } // namespace content | 548 } // namespace content |
| OLD | NEW |