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

Unified Diff: cc/layers/scrollbar_layer_unittest.cc

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « cc/layers/scroll_blocks_on.h ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/scrollbar_layer_unittest.cc
diff --git a/cc/layers/scrollbar_layer_unittest.cc b/cc/layers/scrollbar_layer_unittest.cc
index 36c37e9d94dd91c155e98cc4818ca677dacc43ba..c70b93a09c1d7914854dd90b516b6fdb97520175 100644
--- a/cc/layers/scrollbar_layer_unittest.cc
+++ b/cc/layers/scrollbar_layer_unittest.cc
@@ -173,10 +173,9 @@ TEST_F(ScrollbarLayerTest, ShouldScrollNonOverlayOnMainThread) {
// When the scrollbar is not an overlay scrollbar, the scroll should be
// responded to on the main thread as the compositor does not yet implement
// scrollbar scrolling.
- EXPECT_EQ(
- InputHandler::SCROLL_ON_MAIN_THREAD,
- scrollbar_layer_impl->TryScroll(gfx::Point(0, 0), InputHandler::GESTURE,
- SCROLL_BLOCKS_ON_NONE));
+ EXPECT_EQ(InputHandler::ScrollOnMainThread,
+ scrollbar_layer_impl->TryScroll(
+ gfx::Point(0, 0), InputHandler::Gesture, ScrollBlocksOnNone));
// Create and attach an overlay scrollbar.
scrollbar.reset(new FakeScrollbar(false, false, true));
@@ -188,10 +187,9 @@ TEST_F(ScrollbarLayerTest, ShouldScrollNonOverlayOnMainThread) {
// The user shouldn't be able to drag an overlay scrollbar and the scroll
// may be handled in the compositor.
- EXPECT_EQ(
- InputHandler::SCROLL_IGNORED,
- scrollbar_layer_impl->TryScroll(gfx::Point(0, 0), InputHandler::GESTURE,
- SCROLL_BLOCKS_ON_NONE));
+ EXPECT_EQ(InputHandler::ScrollIgnored,
+ scrollbar_layer_impl->TryScroll(
+ gfx::Point(0, 0), InputHandler::Gesture, ScrollBlocksOnNone));
}
TEST_F(ScrollbarLayerTest, ScrollOffsetSynchronization) {
« no previous file with comments | « cc/layers/scroll_blocks_on.h ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698