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

Side by Side Diff: ui/events/android/motion_event_android_unittest.cc

Issue 2054193002: Android mouse events shouldn't appear as TouchEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added meta_state plumbing. Created 4 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698