test: pid: zone
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>
diff --git a/test/sensor_manager_unittest.cpp b/test/sensor_manager_unittest.cpp
index b873886..eed26cd 100644
--- a/test/sensor_manager_unittest.cpp
+++ b/test/sensor_manager_unittest.cpp
@@ -23,7 +23,7 @@
IsNull(),
_,
StrEq("/xyz/openbmc_project/extsensors")))
- .WillOnce(Return(0));
+ .WillOnce(Return(0));
SensorManager s(std::move(bus_mock_passive), std::move(bus_mock_host));
// Success
@@ -43,7 +43,7 @@
IsNull(),
_,
StrEq("/xyz/openbmc_project/extsensors")))
- .WillOnce(Return(0));
+ .WillOnce(Return(0));
SensorManager s(std::move(bus_mock_passive), std::move(bus_mock_host));
@@ -55,5 +55,5 @@
Sensor *sensor_ptr = sensor.get();
s.addSensor(type, name, std::move(sensor));
- EXPECT_EQ(s.getSensor(name).get(), sensor_ptr);
+ EXPECT_EQ(s.getSensor(name), sensor_ptr);
}