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

Unified Diff: content/renderer/input/input_handler_proxy_unittest.cc

Issue 784463002: Add initial CC support for scroll-blocks-on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: jdduke CR feedback Created 5 years, 10 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/input/input_handler_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/input_handler_proxy_unittest.cc
diff --git a/content/renderer/input/input_handler_proxy_unittest.cc b/content/renderer/input/input_handler_proxy_unittest.cc
index afb7c5162b31a1c8b37019fc4df245afc535378b..0a8520697aaeb15671da27518e6fe7caac07e744 100644
--- a/content/renderer/input/input_handler_proxy_unittest.cc
+++ b/content/renderer/input/input_handler_proxy_unittest.cc
@@ -117,7 +117,7 @@ class MockInputHandler : public cc::InputHandler {
cc::InputHandler::ScrollInputType type));
MOCK_METHOD1(HaveWheelEventHandlersAt, bool(const gfx::Point& point));
- MOCK_METHOD1(HaveTouchEventHandlersAt, bool(const gfx::Point& point));
+ MOCK_METHOD1(DoTouchEventsBlockScrollAt, bool(const gfx::Point& point));
virtual void SetRootLayerScrollOffsetDelegate(
cc::LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate)
@@ -1501,11 +1501,11 @@ TEST_F(InputHandlerProxyTest, MultiTouchPointHitTestNegative) {
VERIFY_AND_RESET_MOCKS();
EXPECT_CALL(mock_input_handler_,
- HaveTouchEventHandlersAt(
+ DoTouchEventsBlockScrollAt(
testing::Property(&gfx::Point::x, testing::Gt(0))))
.WillOnce(testing::Return(false));
EXPECT_CALL(mock_input_handler_,
- HaveTouchEventHandlersAt(
+ DoTouchEventsBlockScrollAt(
testing::Property(&gfx::Point::x, testing::Lt(0))))
.WillOnce(testing::Return(false));
@@ -1526,11 +1526,11 @@ TEST_F(InputHandlerProxyTest, MultiTouchPointHitTestPositive) {
VERIFY_AND_RESET_MOCKS();
EXPECT_CALL(mock_input_handler_,
- HaveTouchEventHandlersAt(
+ DoTouchEventsBlockScrollAt(
testing::Property(&gfx::Point::x, testing::Eq(0))))
.WillOnce(testing::Return(false));
EXPECT_CALL(mock_input_handler_,
- HaveTouchEventHandlersAt(
+ DoTouchEventsBlockScrollAt(
testing::Property(&gfx::Point::x, testing::Gt(0))))
.WillOnce(testing::Return(true));
// Since the second touch point hits a touch-region, there should be no
« no previous file with comments | « content/renderer/input/input_handler_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698