summaryrefslogtreecommitdiffstats
path: root/test/sensor_unittest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* test: rework to use Pair-wise comparisonPatrick Venture2019-03-061-19/+29
| | | | | | | Use Pair-wise comparison instead of straight equality check. Change-Id: I3aa567015bfbd81578275fc0edf1ef785fde7678 Signed-off-by: Patrick Venture <venture@google.com>
* test: add adjustvalue testPatrick Venture2019-01-251-0/+35
| | | | | | | | Add a test that calls adjust value on a sensor value to verify it's processed as expected. Change-Id: Iff299efced680c730d7ba5bdeff71617446db042 Signed-off-by: Patrick Venture <venture@google.com>
* sensor: add gpio handle test variationPatrick Venture2019-01-091-0/+45
| | | | | | | Add a sensor constructor test where the gpio handle is required. Change-Id: I05050fb71a6287183ca94f974e965e3f58de9499 Signed-off-by: Patrick Venture <venture@google.com>
* test: add tests for creating sensor objectsPatrick Venture2019-01-021-0/+51
Add a variety of tests for different sensor constructor scenarios. Change-Id: I859a9473e3c80fb06b0ae15f0eeb8217ee390b11 Signed-off-by: Patrick Venture <venture@google.com>
OpenPOWER on IntegriCloud