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

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

Issue 729533003: Remove GestureScrollUpdateWithoutPropagation event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove hard count from the test Created 6 years, 1 month 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/input_router_impl_unittest.cc
diff --git a/content/browser/renderer_host/input/input_router_impl_unittest.cc b/content/browser/renderer_host/input/input_router_impl_unittest.cc
index ed922c9d8ac272bdfd881c47d2b7d8b56add403c..8cd679fca07e623fc900324c2cbc110134fe76e8 100644
--- a/content/browser/renderer_host/input/input_router_impl_unittest.cc
+++ b/content/browser/renderer_host/input/input_router_impl_unittest.cc
@@ -992,8 +992,7 @@ TEST_F(InputRouterImplTest, TouchTypesIgnoringAck) {
TEST_F(InputRouterImplTest, GestureTypesIgnoringAck) {
// We test every gesture type, ensuring that the stream of gestures is valid.
- const int kEventTypesLength = 29;
- WebInputEvent::Type eventTypes[kEventTypesLength] = {
+ const WebInputEvent::Type eventTypes[] = {
WebInputEvent::GestureTapDown,
WebInputEvent::GestureShowPress,
WebInputEvent::GestureTapCancel,
@@ -1018,12 +1017,11 @@ TEST_F(InputRouterImplTest, GestureTypesIgnoringAck) {
WebInputEvent::GestureTapCancel,
WebInputEvent::GestureScrollBegin,
WebInputEvent::GestureScrollUpdate,
- WebInputEvent::GestureScrollUpdateWithoutPropagation,
WebInputEvent::GesturePinchBegin,
WebInputEvent::GesturePinchUpdate,
WebInputEvent::GesturePinchEnd,
WebInputEvent::GestureScrollEnd};
- for (int i = 0; i < kEventTypesLength; ++i) {
+ for (size_t i = 0; i < arraysize(eventTypes); ++i) {
WebInputEvent::Type type = eventTypes[i];
if (!WebInputEventTraits::IgnoresAckDisposition(GetEventWithType(type))) {
SimulateGestureEvent(type, blink::WebGestureDeviceTouchscreen);
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/common/input/gesture_event_stream_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698