diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/pid_zone_unittest.cpp | 4 | ||||
-rw-r--r-- | test/sensor_manager_unittest.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/pid_zone_unittest.cpp b/test/pid_zone_unittest.cpp index 2270fa6..11ba4c1 100644 --- a/test/pid_zone_unittest.cpp +++ b/test/pid_zone_unittest.cpp @@ -37,7 +37,7 @@ TEST(PidZoneConstructorTest, BoringConstructorTest) IsNull(), _, StrEq("/xyz/openbmc_project/extsensors"))) .WillOnce(Return(0)); - SensorManager m(std::move(bus_mock_passive), std::move(bus_mock_host)); + SensorManager m(bus_mock_passive, bus_mock_host); bool defer = true; const char* objPath = "/path/"; @@ -74,7 +74,7 @@ class PidZoneTest : public ::testing::Test auto bus_mock_mode = sdbusplus::get_mocked_new(&sdbus_mock_mode); // Compiler weirdly not happy about just instantiating mgr(...); - SensorManager m(std::move(bus_mock_passive), std::move(bus_mock_host)); + SensorManager m(bus_mock_passive, bus_mock_host); mgr = std::move(m); SetupDbusObject(&sdbus_mock_mode, defer, objPath, modeInterface, diff --git a/test/sensor_manager_unittest.cpp b/test/sensor_manager_unittest.cpp index 8a89628..9f0e26c 100644 --- a/test/sensor_manager_unittest.cpp +++ b/test/sensor_manager_unittest.cpp @@ -24,7 +24,7 @@ TEST(SensorManagerTest, BoringConstructorTest) IsNull(), _, StrEq("/xyz/openbmc_project/extsensors"))) .WillOnce(Return(0)); - SensorManager s(std::move(bus_mock_passive), std::move(bus_mock_host)); + SensorManager s(bus_mock_passive, bus_mock_host); // Success } @@ -43,7 +43,7 @@ TEST(SensorManagerTest, AddSensorInvalidTypeTest) IsNull(), _, StrEq("/xyz/openbmc_project/extsensors"))) .WillOnce(Return(0)); - SensorManager s(std::move(bus_mock_passive), std::move(bus_mock_host)); + SensorManager s(bus_mock_passive, bus_mock_host); std::string name = "name"; std::string type = "invalid"; |