diff options
author | Ashutosh Joshi <ashutoshj@google.com> | 2015-04-14 16:06:02 -0700 |
---|---|---|
committer | Ashutosh Joshi <ashutoshj@google.com> | 2015-04-14 16:24:10 -0700 |
commit | 5f0ebe67c5b67e1fffe7aa14fe50e0ad4b6151e9 (patch) | |
tree | f79e43dfefa7d965d4e05bd5c78d937ac391de3f /tests/hardware | |
parent | 6507f5080bc3fdc8d4b23cfa2d73d3602cc60a6a (diff) | |
download | hardware_libhardware-5f0ebe67c5b67e1fffe7aa14fe50e0ad4b6151e9.zip hardware_libhardware-5f0ebe67c5b67e1fffe7aa14fe50e0ad4b6151e9.tar.gz hardware_libhardware-5f0ebe67c5b67e1fffe7aa14fe50e0ad4b6151e9.tar.bz2 |
Change struct offsets tests
Change the structure offset tests to account for the addition
of a new member in a sensors device structure.
Change-Id: I2ef7b82446b09b32f903346bbc9b857a99d80043
Diffstat (limited to 'tests/hardware')
-rw-r--r-- | tests/hardware/struct-offset.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/hardware/struct-offset.cpp b/tests/hardware/struct-offset.cpp index 0f4ef41..d6ea073 100644 --- a/tests/hardware/struct-offset.cpp +++ b/tests/hardware/struct-offset.cpp @@ -115,7 +115,8 @@ void CheckOffsets(void) { CHECK_MEMBER_AT(sensors_poll_device_1_t, poll, 72, 136); CHECK_MEMBER_AT(sensors_poll_device_1_t, batch, 76, 144); CHECK_MEMBER_AT(sensors_poll_device_1_t, flush, 80, 152); - CHECK_MEMBER_AT(sensors_poll_device_1_t, reserved_procs, 84, 160); + CHECK_MEMBER_AT(sensors_poll_device_1_t, inject_sensor_data, 84, 160); + CHECK_MEMBER_AT(sensors_poll_device_1_t, reserved_procs, 88, 168); //Types defined in fb.h CHECK_MEMBER_AT(framebuffer_device_t, common, 0, 0); |