Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Side by Side Diff: content/browser/renderer_host/input/non_blocking_event_browsertest.cc

Issue 2783973002: Moving LatencyInfo into a separate component. (Closed)
Patch Set: Rebase again Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/platform/WebInputEvent.h" 28 #include "third_party/WebKit/public/platform/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/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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 #define MAYBE_PassiveTouchStartBlockingTouchEnd \ 201 #define MAYBE_PassiveTouchStartBlockingTouchEnd \
202 PassiveTouchStartBlockingTouchEnd 202 PassiveTouchStartBlockingTouchEnd
203 #endif 203 #endif
204 IN_PROC_BROWSER_TEST_F(NonBlockingEventBrowserTest, 204 IN_PROC_BROWSER_TEST_F(NonBlockingEventBrowserTest,
205 MAYBE_PassiveTouchStartBlockingTouchEnd) { 205 MAYBE_PassiveTouchStartBlockingTouchEnd) {
206 LoadURL(kPassiveTouchStartBlockingTouchEndDataURL); 206 LoadURL(kPassiveTouchStartBlockingTouchEndDataURL);
207 DoTouchScroll(); 207 DoTouchScroll();
208 } 208 }
209 209
210 } // namespace content 210 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698