| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "content/browser/renderer_host/input/gesture_event_filter.h" | |
| 9 #include "content/browser/renderer_host/input/immediate_input_router.h" | 8 #include "content/browser/renderer_host/input/immediate_input_router.h" |
| 10 #include "content/browser/renderer_host/input/input_router_client.h" | 9 #include "content/browser/renderer_host/input/input_router_client.h" |
| 11 #include "content/browser/renderer_host/input/input_router_unittest.h" | 10 #include "content/browser/renderer_host/input/input_router_unittest.h" |
| 12 #include "content/browser/renderer_host/input/mock_input_router_client.h" | 11 #include "content/browser/renderer_host/input/mock_input_router_client.h" |
| 13 #include "content/common/content_constants_internal.h" | 12 #include "content/common/content_constants_internal.h" |
| 14 #include "content/common/edit_command.h" | 13 #include "content/common/edit_command.h" |
| 15 #include "content/common/input_messages.h" | 14 #include "content/common/input_messages.h" |
| 16 #include "content/common/view_messages.h" | 15 #include "content/common/view_messages.h" |
| 17 #include "content/public/test/mock_render_process_host.h" | 16 #include "content/public/test/mock_render_process_host.h" |
| 18 #include "content/public/test/test_browser_context.h" | 17 #include "content/public/test/test_browser_context.h" |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 // Check that the second event was sent. | 551 // Check that the second event was sent. |
| 553 EXPECT_TRUE(process_->sink().GetUniqueMessageMatching( | 552 EXPECT_TRUE(process_->sink().GetUniqueMessageMatching( |
| 554 InputMsg_HandleInputEvent::ID)); | 553 InputMsg_HandleInputEvent::ID)); |
| 555 EXPECT_EQ(1U, GetSentMessageCountAndResetSink()); | 554 EXPECT_EQ(1U, GetSentMessageCountAndResetSink()); |
| 556 | 555 |
| 557 // Check that the correct unhandled wheel event was received. | 556 // Check that the correct unhandled wheel event was received. |
| 558 EXPECT_EQ(ack_handler_->acked_wheel_event().deltaY, -5); | 557 EXPECT_EQ(ack_handler_->acked_wheel_event().deltaY, -5); |
| 559 } | 558 } |
| 560 | 559 |
| 561 } // namespace content | 560 } // namespace content |
| OLD | NEW |