| 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 "content/common/input/touch_event_stream_validator.h" | 5 #include "content/common/input/touch_event_stream_validator.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "content/common/input/synthetic_web_input_event_builders.h" | 9 #include "content/common/input/synthetic_web_input_event_builders.h" |
| 10 #include "content/common/input/web_touch_event_traits.h" | 10 #include "content/public/common/input/web_touch_event_traits.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 using blink::WebInputEvent; | 13 using blink::WebInputEvent; |
| 14 using blink::WebTouchEvent; | 14 using blink::WebTouchEvent; |
| 15 using blink::WebTouchPoint; | 15 using blink::WebTouchPoint; |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 TEST(TouchEventStreamValidator, ValidTouchStream) { | 19 TEST(TouchEventStreamValidator, ValidTouchStream) { |
| 20 TouchEventStreamValidator validator; | 20 TouchEventStreamValidator validator; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 EXPECT_TRUE(error_msg.empty()); | 166 EXPECT_TRUE(error_msg.empty()); |
| 167 } else { | 167 } else { |
| 168 EXPECT_FALSE(validator.Validate(event, &error_msg)); | 168 EXPECT_FALSE(validator.Validate(event, &error_msg)); |
| 169 EXPECT_FALSE(error_msg.empty()); | 169 EXPECT_FALSE(error_msg.empty()); |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 } | 173 } |
| 174 | 174 |
| 175 } // namespace content | 175 } // namespace content |
| OLD | NEW |