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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "content/browser/renderer_host/input/touch_emulator.h" | 12 #include "content/browser/renderer_host/input/touch_emulator.h" |
13 #include "content/browser/renderer_host/input/touch_emulator_client.h" | 13 #include "content/browser/renderer_host/input/touch_emulator_client.h" |
14 #include "content/common/input/web_input_event_traits.h" | 14 #include "content/public/common/input/web_input_event_traits.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 using blink::WebGestureEvent; | 17 using blink::WebGestureEvent; |
18 using blink::WebInputEvent; | 18 using blink::WebInputEvent; |
19 using blink::WebKeyboardEvent; | 19 using blink::WebKeyboardEvent; |
20 using blink::WebMouseEvent; | 20 using blink::WebMouseEvent; |
21 using blink::WebMouseWheelEvent; | 21 using blink::WebMouseWheelEvent; |
22 using blink::WebTouchEvent; | 22 using blink::WebTouchEvent; |
23 using blink::WebTouchPoint; | 23 using blink::WebTouchPoint; |
24 | 24 |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 emulator()->Disable(); | 555 emulator()->Disable(); |
556 EXPECT_EQ("TouchStart TouchCancel", ExpectedEvents()); | 556 EXPECT_EQ("TouchStart TouchCancel", ExpectedEvents()); |
557 emulator()->CancelTouch(); | 557 emulator()->CancelTouch(); |
558 } | 558 } |
559 | 559 |
560 TEST_F(TouchEmulatorTest, ConstructorWithHighDeviceScaleDoesNotCrash) { | 560 TEST_F(TouchEmulatorTest, ConstructorWithHighDeviceScaleDoesNotCrash) { |
561 TouchEmulator(this, 4.0f); | 561 TouchEmulator(this, 4.0f); |
562 } | 562 } |
563 | 563 |
564 } // namespace content | 564 } // namespace content |
OLD | NEW |