summaryrefslogtreecommitdiff
path: root/libs/input/tests/StructLayout_test.cpp
diff options
context:
space:
mode:
authorBrian Orr <brianorr@google.com>2021-05-13 09:29:52 -0700
committerBrian Orr <brianorr@google.com>2021-05-13 09:29:52 -0700
commit2002595eeaa15527bedfee55f7cf1be1e53a96cd (patch)
tree03b73f8bc1eb66ba48150e179382440597539085 /libs/input/tests/StructLayout_test.cpp
parente06752e28f70267b23356c511130da74b3e9f40f (diff)
parentd253621149976855feed18e51ed504be145fa1c4 (diff)
Merge SP1A.210510.001
Change-Id: Id17825b5c1611b4a2e80450a412b06082d854ae1
Diffstat (limited to 'libs/input/tests/StructLayout_test.cpp')
-rw-r--r--libs/input/tests/StructLayout_test.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/input/tests/StructLayout_test.cpp b/libs/input/tests/StructLayout_test.cpp
index 585779e472..5861d55156 100644
--- a/libs/input/tests/StructLayout_test.cpp
+++ b/libs/input/tests/StructLayout_test.cpp
@@ -74,9 +74,11 @@ void TestInputMessageAlignment() {
CHECK_OFFSET(InputMessage::Body::Motion, yPrecision, 124);
CHECK_OFFSET(InputMessage::Body::Motion, xCursorPosition, 128);
CHECK_OFFSET(InputMessage::Body::Motion, yCursorPosition, 132);
- CHECK_OFFSET(InputMessage::Body::Motion, pointerCount, 136);
- CHECK_OFFSET(InputMessage::Body::Motion, empty3, 140);
- CHECK_OFFSET(InputMessage::Body::Motion, pointers, 144);
+ CHECK_OFFSET(InputMessage::Body::Motion, displayWidth, 136);
+ CHECK_OFFSET(InputMessage::Body::Motion, displayHeight, 140);
+ CHECK_OFFSET(InputMessage::Body::Motion, pointerCount, 144);
+ CHECK_OFFSET(InputMessage::Body::Motion, empty3, 148);
+ CHECK_OFFSET(InputMessage::Body::Motion, pointers, 152);
CHECK_OFFSET(InputMessage::Body::Focus, eventId, 0);
CHECK_OFFSET(InputMessage::Body::Focus, hasFocus, 4);