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

Side by Side Diff: content/browser/renderer_host/input/motion_event_android_unittest.cc

Issue 1076443002: Removed obsolete float_util.h as VS2013 supports standards well enough. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed mistake in value converter. Created 5 years, 8 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 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/float_util.h"
9 #include "content/browser/renderer_host/input/motion_event_android.h" 8 #include "content/browser/renderer_host/input/motion_event_android.h"
10 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/events/event_constants.h" 10 #include "ui/events/event_constants.h"
12 #include "ui/events/test/motion_event_test_utils.h" 11 #include "ui/events/test/motion_event_test_utils.h"
13 12
14 using ui::MotionEvent; 13 using ui::MotionEvent;
15 14
16 namespace content { 15 namespace content {
17 namespace { 16 namespace {
18 const float kPixToDip = 0.5f; 17 const float kPixToDip = 0.5f;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 0, 213 0,
215 0, 214 0,
216 p0, 215 p0,
217 p1); 216 p1);
218 217
219 EXPECT_EQ(MotionEvent::ACTION_POINTER_DOWN, event.GetAction()); 218 EXPECT_EQ(MotionEvent::ACTION_POINTER_DOWN, event.GetAction());
220 EXPECT_EQ(action_index, event.GetActionIndex()); 219 EXPECT_EQ(action_index, event.GetActionIndex());
221 } 220 }
222 221
223 } // namespace content 222 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/motion_event_android.cc ('k') | content/child/v8_value_converter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698