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

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

Issue 1871233002: Move LatencyInfo to ui/latency_info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some more gyp issues Created 4 years, 7 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698