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

Unified Diff: ui/events/blink/input_handler_proxy_unittest.cc

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Created 4 years 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
Index: ui/events/blink/input_handler_proxy_unittest.cc
diff --git a/ui/events/blink/input_handler_proxy_unittest.cc b/ui/events/blink/input_handler_proxy_unittest.cc
index 06da7b923a510f1c76e8ba26bffe4396accea4f2..f17d8099b4aec295c814dac322f90db2cf2c4418 100644
--- a/ui/events/blink/input_handler_proxy_unittest.cc
+++ b/ui/events/blink/input_handler_proxy_unittest.cc
@@ -73,12 +73,12 @@ double InSecondsF(const base::TimeTicks& time) {
}
bool WheelEventsMatch(const WebInputEvent& lhs, const WebInputEvent& rhs) {
- if (lhs.size == rhs.size && lhs.type == rhs.type &&
- lhs.type == WebInputEvent::MouseWheel) {
+ if (lhs.size() == rhs.size() && lhs.type() == rhs.type() &&
+ lhs.type() == WebInputEvent::MouseWheel) {
WebMouseWheelEvent rhs_timestamped =
static_cast<const WebMouseWheelEvent&>(rhs);
- rhs_timestamped.timeStampSeconds = lhs.timeStampSeconds;
- return memcmp(&rhs_timestamped, &lhs, rhs.size) == 0;
+ rhs_timestamped.setTimeStampSeconds(lhs.timeStampSeconds());
+ return memcmp(&rhs_timestamped, &lhs, rhs.size()) == 0;
}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698