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

Unified Diff: content/renderer/render_widget_unittest.cc

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Rebase Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget_unittest.cc
diff --git a/content/renderer/render_widget_unittest.cc b/content/renderer/render_widget_unittest.cc
index 3969eab85fbfe888d4f833fa28a831bc0946a7bc..cc1b0fbd47c28da15592a5274f6368befb9d6cce 100644
--- a/content/renderer/render_widget_unittest.cc
+++ b/content/renderer/render_widget_unittest.cc
@@ -120,7 +120,8 @@ class InteractiveRenderWidget : public RenderWidget {
event.data.scroll_update.delta_y),
blink::WebFloatPoint(event.x, event.y),
blink::WebFloatSize(event.data.scroll_update.velocity_x,
- event.data.scroll_update.velocity_y));
+ event.data.scroll_update.velocity_y),
+ blink::WebScrollBoundaryBehavior());
return true;
}
@@ -292,7 +293,8 @@ TEST_F(RenderWidgetUnittest, FlingOverscroll) {
// be sent as a separate IPC.
widget()->DidOverscroll(blink::WebFloatSize(10, 5), blink::WebFloatSize(5, 5),
blink::WebFloatPoint(1, 1),
- blink::WebFloatSize(10, 5));
+ blink::WebFloatSize(10, 5),
+ blink::WebScrollBoundaryBehavior());
ASSERT_EQ(1u, widget()->sink()->message_count());
const IPC::Message* message = widget()->sink()->GetMessageAt(0);
ASSERT_EQ(InputHostMsg_DidOverscroll::ID, message->type());
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698