sensor_test: pass test object as parameter.

Adding test object as parameter to facilitate the use
testharness.js API.

Bug: 976596
Change-Id: I26e529bda547504d2a107f86b71d61156cc6f943
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1778619
Reviewed-by: Reilly Grant <[email protected]>
Reviewed-by: Raphael Kubo da Costa <[email protected]>
Commit-Queue: Arnaud Mandy <[email protected]>
Cr-Commit-Position: refs/heads/master@{#693114}
19 files changed