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> |
| 6 |
5 #include "base/logging.h" | 7 #include "base/logging.h" |
6 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
7 #include "content/common/input/synthetic_web_input_event_builders.h" | 9 #include "content/common/input/synthetic_web_input_event_builders.h" |
8 #include "content/renderer/pepper/event_conversion.h" | 10 #include "content/renderer/pepper/event_conversion.h" |
9 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 11 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
11 | 13 |
12 namespace content { | 14 namespace content { |
13 | 15 |
14 class EventConversionTest : public ::testing::Test { | 16 class EventConversionTest : public ::testing::Test { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 scoped_ptr<blink::WebInputEvent> event_out(CreateWebInputEvent(pp_event)); | 138 scoped_ptr<blink::WebInputEvent> event_out(CreateWebInputEvent(pp_event)); |
137 const blink::WebTouchEvent* touch_out = | 139 const blink::WebTouchEvent* touch_out = |
138 static_cast<const blink::WebTouchEvent*>(event_out.get()); | 140 static_cast<const blink::WebTouchEvent*>(event_out.get()); |
139 ASSERT_TRUE(touch_out); | 141 ASSERT_TRUE(touch_out); |
140 EXPECT_EQ(touch.type, touch_out->type); | 142 EXPECT_EQ(touch.type, touch_out->type); |
141 EXPECT_EQ(touch.touchesLength, touch_out->touchesLength); | 143 EXPECT_EQ(touch.touchesLength, touch_out->touchesLength); |
142 CompareWebTouchEvents(touch, *touch_out); | 144 CompareWebTouchEvents(touch, *touch_out); |
143 } | 145 } |
144 | 146 |
145 } // namespace content | 147 } // namespace content |
OLD | NEW |