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

Unified Diff: ui/aura/gestures/gesture_recognizer_unittest.cc

Issue 570633002: Remove unsupported parameters by the unified gesture detector from Gesture Configuration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | ui/aura/test/aura_test_base.cc » ('j') | ui/events/gestures/gesture_configuration.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/gestures/gesture_recognizer_unittest.cc
diff --git a/ui/aura/gestures/gesture_recognizer_unittest.cc b/ui/aura/gestures/gesture_recognizer_unittest.cc
index 1083d97d9aae5d746b35a7773e8d934121588451..890724c7d78ab36c66163fad47fc612ff7e2ee80 100644
--- a/ui/aura/gestures/gesture_recognizer_unittest.cc
+++ b/ui/aura/gestures/gesture_recognizer_unittest.cc
@@ -635,8 +635,6 @@ class GestureRecognizerTest : public AuraTestBase,
virtual void SetUp() OVERRIDE {
AuraTestBase::SetUp();
- ui::GestureConfiguration::set_min_touch_down_duration_in_seconds_for_click(
- 0.001);
ui::GestureConfiguration::set_show_press_delay_in_ms(2);
ui::GestureConfiguration::set_long_press_time_in_seconds(0.003);
}
@@ -1008,9 +1006,7 @@ TEST_F(GestureRecognizerTest, GestureEventScroll) {
// Check that predicted scroll update positions are correct.
TEST_F(GestureRecognizerTest, GestureEventScrollPrediction) {
- const double prediction_interval = 0.03;
- ui::GestureConfiguration::set_scroll_prediction_seconds(prediction_interval);
- // We'll start by moving the touch point by (5, 5). We want all of that
+ // We'll start by moving the touch point by (5, 5). We want all of that
// distance to be consumed by the slop, so we set the slop radius to
// sqrt(5 * 5 + 5 * 5).
ui::GestureConfiguration::set_max_touch_move_in_pixels_for_click(
@@ -3435,7 +3431,6 @@ TEST_F(GestureRecognizerTest, BoundingBoxRadiusChange) {
// In particular, fix for http;//crbug.com/150573.
TEST_F(GestureRecognizerTest, NoDriftInScroll) {
ui::GestureConfiguration::set_max_touch_move_in_pixels_for_click(3);
- ui::GestureConfiguration::set_min_scroll_delta_squared(9);
scoped_ptr<GestureEventConsumeDelegate> delegate(
new GestureEventConsumeDelegate());
const int kWindowWidth = 234;
« no previous file with comments | « no previous file | ui/aura/test/aura_test_base.cc » ('j') | ui/events/gestures/gesture_configuration.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698