OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <android/input.h> | 5 #include <android/input.h> |
6 #include <stddef.h> | 6 #include <stddef.h> |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "ui/events/android/motion_event_android.h" | 10 #include "ui/events/android/motion_event_android.h" |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 nullptr, | 208 nullptr, |
209 0, | 209 0, |
210 kAndroidActionPointerDown, | 210 kAndroidActionPointerDown, |
211 pointer_count, | 211 pointer_count, |
212 history_size, | 212 history_size, |
213 action_index, | 213 action_index, |
214 0, | 214 0, |
215 0, | 215 0, |
216 0, | 216 0, |
217 0, | 217 0, |
218 p0, | 218 &p0, |
219 p1); | 219 &p1); |
220 | 220 |
221 EXPECT_EQ(MotionEvent::ACTION_POINTER_DOWN, event.GetAction()); | 221 EXPECT_EQ(MotionEvent::ACTION_POINTER_DOWN, event.GetAction()); |
222 EXPECT_EQ(action_index, event.GetActionIndex()); | 222 EXPECT_EQ(action_index, event.GetActionIndex()); |
223 } | 223 } |
224 | 224 |
225 } // namespace content | 225 } // namespace content |
OLD | NEW |