summaryrefslogtreecommitdiffstats
path: root/tests/hardware
diff options
context:
space:
mode:
authorEtienne Le Grand <etn@google.com>2014-04-05 04:46:55 +0000
committerEtienne Le Grand <etn@google.com>2014-04-05 04:46:55 +0000
commitea676f9ae6757018110532f424fa15df6704be0e (patch)
treeb360549535165a8fbade89737547e3470b8d07c9 /tests/hardware
parent4db220ec857c9166843a8d6fae9b52666c177168 (diff)
downloadhardware_libhardware-ea676f9ae6757018110532f424fa15df6704be0e.zip
hardware_libhardware-ea676f9ae6757018110532f424fa15df6704be0e.tar.gz
hardware_libhardware-ea676f9ae6757018110532f424fa15df6704be0e.tar.bz2
Revert "Remove offset checks for reserved fields in sensor_t and sensors_event_t."
This reverts commit 4db220ec857c9166843a8d6fae9b52666c177168. Change-Id: I61feb99c2024889e29e2b300ad4a4f5af1fdc282
Diffstat (limited to 'tests/hardware')
-rw-r--r--tests/hardware/struct-offset.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hardware/struct-offset.cpp b/tests/hardware/struct-offset.cpp
index bdb1fad..0a1338a 100644
--- a/tests/hardware/struct-offset.cpp
+++ b/tests/hardware/struct-offset.cpp
@@ -88,6 +88,7 @@ void CheckOffsets(void) {
CHECK_MEMBER_AT(sensors_event_t, u64, 24, 24);
CHECK_MEMBER_AT(sensors_event_t, u64.data, 24, 24);
CHECK_MEMBER_AT(sensors_event_t, u64.step_counter, 24, 24);
+ CHECK_MEMBER_AT(sensors_event_t, reserved1, 88, 88);
CHECK_MEMBER_AT(struct sensor_t, name, 0, 0);
CHECK_MEMBER_AT(struct sensor_t, vendor, 4, 8);
@@ -100,6 +101,7 @@ void CheckOffsets(void) {
CHECK_MEMBER_AT(struct sensor_t, minDelay, 32, 40);
CHECK_MEMBER_AT(struct sensor_t, fifoReservedEventCount, 36, 44);
CHECK_MEMBER_AT(struct sensor_t, fifoMaxEventCount, 40, 48);
+ CHECK_MEMBER_AT(struct sensor_t, reserved, 44, 56);
CHECK_MEMBER_AT(sensors_poll_device_1_t, v0, 0, 0);
CHECK_MEMBER_AT(sensors_poll_device_1_t, common, 0, 0);