summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* test: sensor_manager: add test and sensor_mockPatrick Venture2018-06-142-0/+49
| | | | | | | | | Adds a mock sensor for use in future tests, as well as adds a unit-test to sensor_manager_unittest to check that the type of a sensor added is not validated against anything. Change-Id: I684ec71c02f427cfa7a414a6a4162beaba2269da Signed-off-by: Patrick Venture <venture@google.com>
* test: sensors: pluggablePatrick Venture2018-06-142-1/+88
| | | | | | | | Tests for pluggable sensors. Pluggable sensors themselves do nothing but hold min/max values, and call into Read and Write interfaces. Change-Id: I8991d22d77172fb9b2f897c02603e5ab5747ac12 Signed-off-by: Patrick Venture <venture@google.com>
* enable unit-tests: enable for SensorManagerPatrick Venture2018-06-142-1/+33
| | | | | | | | | | | | | Enabled unit-tests in general for the project, and more specifically started with a benign construction test for the SensorManager object. Tested: Verified continues to build and link, and unit-test passes. Tested: Ran on quanta-q71l board and it behaved as expected. Change-Id: I4ad9a0c57efd0b9ccc37d26faa0cc1b82026b8d7 Signed-off-by: Patrick Venture <venture@google.com>
* test: add controller_mockPatrick Venture2018-06-131-0/+18
| | | | | | | Add controller mock. Change-Id: I7341b26281571c91039f05e049cf54c50f9fccdb Signed-off-by: Patrick Venture <venture@google.com>
* test: add read and write interface mocksPatrick Venture2018-06-132-0/+25
| | | | | | | | | The pluggable sensor object receives a reader and writer interface. These are now mocked to enable some testing that involves Pluggable Sensors. Change-Id: If2d121ab47a2c044b0f3fd3465bfe45cf26c4f98 Signed-off-by: Patrick Venture <venture@google.com>
* enable unit-testsPatrick Venture2018-06-131-0/+16
This CL simply enables unit-tests. Change-Id: I4ea62005566e2aa42fc29258559654fe2745f726 Signed-off-by: Patrick Venture <venture@google.com>
OpenPOWER on IntegriCloud