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

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

Issue 2612823002: Remove the requirement to only rAF align non-blocking touch moves. (Closed)
Patch Set: Fix tests Created 3 years, 11 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/main_thread_event_queue.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/main_thread_event_queue_unittest.cc
diff --git a/content/renderer/input/main_thread_event_queue_unittest.cc b/content/renderer/input/main_thread_event_queue_unittest.cc
index 84d3e9e9cd2259ce6e42c6ca2f8390248009d60c..0e1f844e4d6366c1687d86dda8c483655da67b6d 100644
--- a/content/renderer/input/main_thread_event_queue_unittest.cc
+++ b/content/renderer/input/main_thread_event_queue_unittest.cc
@@ -266,7 +266,7 @@ TEST_P(MainThreadEventQueueTest, BlockingTouch) {
HandleEvent(kEvents[3], INPUT_EVENT_ACK_STATE_SET_NON_BLOCKING);
EXPECT_EQ(1u, event_queue().size());
RunPendingTasksWithSimulatedRaf();
- histogram_tester.ExpectUniqueSample(kCoalescedCountHistogram, 2, 1);
+ histogram_tester.ExpectUniqueSample(kCoalescedCountHistogram, 2, 2);
}
TEST_P(MainThreadEventQueueTest, InterleavedEvents) {
@@ -427,7 +427,7 @@ TEST_P(MainThreadEventQueueTest, RafAlignedTouchInput) {
EXPECT_EQ(3u, event_queue().size());
EXPECT_TRUE(main_task_runner_->HasPendingTask());
- EXPECT_FALSE(needs_main_frame_);
+ EXPECT_TRUE(needs_main_frame_);
main_task_runner_->RunUntilIdle();
}
@@ -455,7 +455,7 @@ TEST_P(MainThreadEventQueueTest, RafAlignedTouchInputCoalescedMoves) {
EXPECT_TRUE(needs_main_frame_);
HandleEvent(kEvents[1], INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
EXPECT_EQ(1u, event_queue().size());
- EXPECT_TRUE(main_task_runner_->HasPendingTask());
+ EXPECT_FALSE(main_task_runner_->HasPendingTask());
EXPECT_TRUE(needs_main_frame_);
RunPendingTasksWithSimulatedRaf();
EXPECT_EQ(0u, event_queue().size());
« no previous file with comments | « content/renderer/input/main_thread_event_queue.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698