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/input_router_unittest.h" | 5 #include "content/browser/renderer_host/input/input_router_unittest.h" |
6 | 6 |
7 #include "content/browser/renderer_host/input/input_router.h" | 7 #include "content/browser/renderer_host/input/input_router.h" |
8 #include "content/common/input_messages.h" | 8 #include "content/common/input_messages.h" |
9 | 9 |
10 using WebKit::WebGestureEvent; | 10 using blink::WebGestureEvent; |
11 using WebKit::WebInputEvent; | 11 using blink::WebInputEvent; |
12 using WebKit::WebMouseEvent; | 12 using blink::WebMouseEvent; |
13 using WebKit::WebMouseWheelEvent; | 13 using blink::WebMouseWheelEvent; |
14 using WebKit::WebTouchEvent; | 14 using blink::WebTouchEvent; |
15 using WebKit::WebTouchPoint; | 15 using blink::WebTouchPoint; |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 InputRouterTest::InputRouterTest() {} | 19 InputRouterTest::InputRouterTest() {} |
20 InputRouterTest::~InputRouterTest() {} | 20 InputRouterTest::~InputRouterTest() {} |
21 | 21 |
22 void InputRouterTest::SetUp() { | 22 void InputRouterTest::SetUp() { |
23 browser_context_.reset(new TestBrowserContext()); | 23 browser_context_.reset(new TestBrowserContext()); |
24 process_.reset(new MockRenderProcessHost(browser_context_.get())); | 24 process_.reset(new MockRenderProcessHost(browser_context_.get())); |
25 client_.reset(new MockInputRouterClient()); | 25 client_.reset(new MockInputRouterClient()); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 void InputRouterTest::MoveTouchPoint(int index, int x, int y) { | 143 void InputRouterTest::MoveTouchPoint(int index, int x, int y) { |
144 touch_event_.MovePoint(index, x, y); | 144 touch_event_.MovePoint(index, x, y); |
145 } | 145 } |
146 | 146 |
147 void InputRouterTest::ReleaseTouchPoint(int index) { | 147 void InputRouterTest::ReleaseTouchPoint(int index) { |
148 touch_event_.ReleasePoint(index); | 148 touch_event_.ReleasePoint(index); |
149 } | 149 } |
150 | 150 |
151 } // namespace content | 151 } // namespace content |
OLD | NEW |