summaryrefslogtreecommitdiffstats
path: root/test/sensor_manager_unittest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make dbusconfiguration reloadable without rebootJames Feist2019-05-091-2/+2
| | | | | | | | | | | | | | | | | Now that asio is being used instead of threads, we can reload the fan configuration without having to restart the application. This moves the ownership of the passive and host bus outside of the SensorManager so that it can be recreated each reload. Tested: Watched logs and saw full fan config get reloaded after changing fan configuration Tested: Ran on json configured system and it behaved as expected. Change-Id: I00e6b27f75384fd41de2017b723f159c9691ae97 Signed-off-by: James Feist <james.feist@linux.intel.com>
* clang-format: fix pointer alignment, sort usingPatrick Venture2018-09-041-1/+1
| | | | | Change-Id: Id433d0ecc10c62807594b3a637e591045223faa6 Signed-off-by: Patrick Venture <venture@google.com>
* add .clang-formatPatrick Venture2018-08-311-11/+9
| | | | | Change-Id: I6627b5569c2e0f730be7331403218b823a2c622f Signed-off-by: Patrick Venture <venture@google.com>
* test: pid: zonePatrick Venture2018-06-221-3/+3
| | | | | | | | | | Add unit-tests for the PID zone module. Add zone_mock. Tested: Ran on quanta-q71l board and it behaved as expected. Change-Id: I51185b2d2daacea6ffb687e8f38c4fe2b2a1bed3 Signed-off-by: Patrick Venture <venture@google.com>
* test: sensor_manager: add test and sensor_mockPatrick Venture2018-06-141-0/+31
| | | | | | | | | 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>
* enable unit-tests: enable for SensorManagerPatrick Venture2018-06-141-0/+28
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>
OpenPOWER on IntegriCloud