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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc

Issue 1408213002: Add hooks for flushing input from BeginFrame dispatch on Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build for real Created 5 years, 2 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
Index: content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc
diff --git a/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc b/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc
index 44205c0a0416fe785e25453ed7febd7b35a78580..e4d6fc7dfed5be921e031f05ccd22711ef5d35d8 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc
@@ -491,7 +491,7 @@ class SyntheticGestureControllerTestBase {
time_ += base::TimeDelta::FromMilliseconds(kFlushInputRateInMs);
controller_->Flush(time_);
}
- controller_->OnDidFlushInput();
+ controller_->OnDidFlushAllInput();
}
}
@@ -625,7 +625,7 @@ TEST_F(SyntheticGestureControllerTest, TwoGesturesInFlight) {
EXPECT_EQ(0, num_failure_);
}
-TEST_F(SyntheticGestureControllerTest, GestureCompletedOnDidFlushInput) {
+TEST_F(SyntheticGestureControllerTest, GestureCompletedOnDidFlushAllInput) {
CreateControllerAndTarget<MockSyntheticGestureTarget>();
bool finished_1, finished_2;
@@ -643,7 +643,7 @@ TEST_F(SyntheticGestureControllerTest, GestureCompletedOnDidFlushInput) {
controller_->Flush(time_);
}
EXPECT_EQ(0, num_success_);
- controller_->OnDidFlushInput();
+ controller_->OnDidFlushAllInput();
EXPECT_EQ(1, num_success_);
while (target_->flush_requested()) {
@@ -652,7 +652,7 @@ TEST_F(SyntheticGestureControllerTest, GestureCompletedOnDidFlushInput) {
controller_->Flush(time_);
}
EXPECT_EQ(1, num_success_);
- controller_->OnDidFlushInput();
+ controller_->OnDidFlushAllInput();
EXPECT_EQ(2, num_success_);
}

Powered by Google App Engine
This is Rietveld 408576698