summaryrefslogtreecommitdiffstats
path: root/test/sensor_manager_unittest.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-06-11 15:29:45 -0700
committerPatrick Venture <venture@google.com>2018-06-22 08:24:03 -0700
commita58197cfb640e0dbe7cc1320681ad74e9cb1b51e (patch)
treebb03b2d0c7d55b717ab27fa0df65ebdf7f442e3b /test/sensor_manager_unittest.cpp
parent2e3ecb57281eec4b73934d639b02273d4f2dd193 (diff)
downloadphosphor-pid-control-a58197cfb640e0dbe7cc1320681ad74e9cb1b51e.tar.gz
phosphor-pid-control-a58197cfb640e0dbe7cc1320681ad74e9cb1b51e.zip
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>
Diffstat (limited to 'test/sensor_manager_unittest.cpp')
-rw-r--r--test/sensor_manager_unittest.cpp6
1 files changed, 3 insertions, 3 deletions
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 @@ TEST(SensorManagerTest, BoringConstructorTest) {
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 @@ TEST(SensorManagerTest, AddSensorInvalidTypeTest) {
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 @@ TEST(SensorManagerTest, AddSensorInvalidTypeTest) {
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);
}
OpenPOWER on IntegriCloud