| OLD | NEW | 
|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <utility> | 5 #include <utility> | 
| 6 | 6 | 
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" | 
| 8 #include "base/bind.h" | 8 #include "base/bind.h" | 
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" | 
| 10 #include "base/macros.h" | 10 #include "base/macros.h" | 
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" | 
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" | 
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" | 
| 14 #include "content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h" | 14 #include "content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h" | 
| 15 #include "content/browser/renderer_host/render_widget_host_impl.h" | 15 #include "content/browser/renderer_host/render_widget_host_impl.h" | 
| 16 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 16 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 
| 17 #include "content/browser/web_contents/web_contents_impl.h" | 17 #include "content/browser/web_contents/web_contents_impl.h" | 
| 18 #include "content/common/input/synthetic_web_input_event_builders.h" | 18 #include "content/common/input/synthetic_web_input_event_builders.h" | 
| 19 #include "content/common/input_messages.h" | 19 #include "content/common/input_messages.h" | 
| 20 #include "content/public/browser/render_view_host.h" | 20 #include "content/public/browser/render_view_host.h" | 
| 21 #include "content/public/browser/render_widget_host_view.h" | 21 #include "content/public/browser/render_widget_host_view.h" | 
| 22 #include "content/public/common/content_switches.h" | 22 #include "content/public/common/content_switches.h" | 
| 23 #include "content/public/test/browser_test_utils.h" | 23 #include "content/public/test/browser_test_utils.h" | 
| 24 #include "content/public/test/content_browser_test.h" | 24 #include "content/public/test/content_browser_test.h" | 
| 25 #include "content/public/test/content_browser_test_utils.h" | 25 #include "content/public/test/content_browser_test_utils.h" | 
| 26 #include "content/public/test/test_utils.h" | 26 #include "content/public/test/test_utils.h" | 
| 27 #include "content/shell/browser/shell.h" | 27 #include "content/shell/browser/shell.h" | 
| 28 #include "third_party/WebKit/public/web/WebInputEvent.h" | 28 #include "third_party/WebKit/public/web/WebInputEvent.h" | 
| 29 #include "ui/events/event_switches.h" | 29 #include "ui/events/event_switches.h" | 
| 30 #include "ui/events/latency_info.h" | 30 #include "ui/latency_info/latency_info.h" | 
| 31 | 31 | 
| 32 using blink::WebInputEvent; | 32 using blink::WebInputEvent; | 
| 33 | 33 | 
| 34 namespace { | 34 namespace { | 
| 35 | 35 | 
| 36 // This value has to be larger than the height of the device this test is | 36 // This value has to be larger than the height of the device this test is | 
| 37 // executed on, otherwise the device will be unable to scroll thus failing | 37 // executed on, otherwise the device will be unable to scroll thus failing | 
| 38 // tests. | 38 // tests. | 
| 39 const int kWebsiteHeight = 10000; | 39 const int kWebsiteHeight = 10000; | 
| 40 | 40 | 
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 209 #define MAYBE_PassiveTouchStartBlockingTouchEnd \ | 209 #define MAYBE_PassiveTouchStartBlockingTouchEnd \ | 
| 210   PassiveTouchStartBlockingTouchEnd | 210   PassiveTouchStartBlockingTouchEnd | 
| 211 #endif | 211 #endif | 
| 212 IN_PROC_BROWSER_TEST_F(NonBlockingEventBrowserTest, | 212 IN_PROC_BROWSER_TEST_F(NonBlockingEventBrowserTest, | 
| 213                        MAYBE_PassiveTouchStartBlockingTouchEnd) { | 213                        MAYBE_PassiveTouchStartBlockingTouchEnd) { | 
| 214   LoadURL(kPassiveTouchStartBlockingTouchEndDataURL); | 214   LoadURL(kPassiveTouchStartBlockingTouchEndDataURL); | 
| 215   DoTouchScroll(); | 215   DoTouchScroll(); | 
| 216 } | 216 } | 
| 217 | 217 | 
| 218 }  // namespace content | 218 }  // namespace content | 
| OLD | NEW | 
|---|