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

Unified Diff: ui/events/test/motion_event_test_utils.cc

Issue 1168483002: Fix motion event pressure checking in unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/motion_event_test_utils.cc
diff --git a/ui/events/test/motion_event_test_utils.cc b/ui/events/test/motion_event_test_utils.cc
index baa8f9348ae60a342aa932f8e22e9c6430d521ac..5c318f0179e070d1a31c37e45dad75c3560fbdd5 100644
--- a/ui/events/test/motion_event_test_utils.cc
+++ b/ui/events/test/motion_event_test_utils.cc
@@ -196,13 +196,13 @@ std::string ToString(const MotionEvent& event) {
DCHECK_GE(pi, 0);
pointer_ids.clear_first_marked_bit();
ss << "{"
- << "\n PointerId: (" << event.GetPointerId(pi) << ")"
+ << "\n PointerId: (" << event.GetPointerId(pi) << ")"
<< "\n Pos: (" << event.GetX(pi) << ", " << event.GetY(pi) << ")"
<< "\n RawPos: (" << event.GetX(pi) << ", " << event.GetY(pi) << ")"
<< "\n Size: (" << event.GetTouchMajor(pi) << ", "
<< event.GetTouchMinor(pi) << ")"
<< "\n Orientation: " << event.GetOrientation(pi)
- << "\n Pressure: " << event.GetOrientation(pi)
+ << "\n Pressure: " << event.GetPressure(pi)
<< "\n Tool: " << event.GetToolType(pi);
if (history_size) {
ss << "\n History: [";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698