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

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

Issue 1417173008: Move MotionEventAndroid to ui/events/android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copyright date fix. Created 5 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 unified diff | Download patch
« no previous file with comments | « ui/events/android/motion_event_android.cc ('k') | ui/events/events.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "content/browser/renderer_host/input/motion_event_android.h"
9 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/events/android/motion_event_android.h"
10 #include "ui/events/event_constants.h" 10 #include "ui/events/event_constants.h"
11 #include "ui/events/test/motion_event_test_utils.h" 11 #include "ui/events/test/motion_event_test_utils.h"
12 12
13 using ui::MotionEvent; 13 namespace ui {
14 class MotionEvent;
14 15
15 namespace content {
16 namespace { 16 namespace {
17 const float kPixToDip = 0.5f; 17 const float kPixToDip = 0.5f;
18 18
19 int kAndroidActionDown = AMOTION_EVENT_ACTION_DOWN; 19 int kAndroidActionDown = AMOTION_EVENT_ACTION_DOWN;
20 int kAndroidActionPointerDown = AMOTION_EVENT_ACTION_POINTER_DOWN; 20 int kAndroidActionPointerDown = AMOTION_EVENT_ACTION_POINTER_DOWN;
21 int kAndroidAltKeyDown = AMETA_ALT_ON; 21 int kAndroidAltKeyDown = AMETA_ALT_ON;
22 22
23 // Corresponds to TOOL_TYPE_FINGER, see 23 // Corresponds to TOOL_TYPE_FINGER, see
24 // developer.android.com/reference/android/view/MotionEvent.html 24 // developer.android.com/reference/android/view/MotionEvent.html
25 // #TOOL_TYPE_FINGER. 25 // #TOOL_TYPE_FINGER.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 0, 215 0,
216 0, 216 0,
217 p0, 217 p0,
218 p1); 218 p1);
219 219
220 EXPECT_EQ(MotionEvent::ACTION_POINTER_DOWN, event.GetAction()); 220 EXPECT_EQ(MotionEvent::ACTION_POINTER_DOWN, event.GetAction());
221 EXPECT_EQ(action_index, event.GetActionIndex()); 221 EXPECT_EQ(action_index, event.GetActionIndex());
222 } 222 }
223 223
224 } // namespace content 224 } // namespace content
OLDNEW
« no previous file with comments | « ui/events/android/motion_event_android.cc ('k') | ui/events/events.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698