Change an sdbusplus mock signature
The signature of sd_bus_emit_properties_changed_strv changed.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I94cd218d04e4a79444314684020da1a1ff3969a3
diff --git a/test/fanpwm_unittest.cpp b/test/fanpwm_unittest.cpp
index 06bec89..b407c7d 100644
--- a/test/fanpwm_unittest.cpp
+++ b/test/fanpwm_unittest.cpp
@@ -39,8 +39,8 @@
EXPECT_CALL(*sdbus_mock,
sd_bus_emit_properties_changed_strv(IsNull(), StrEq(path),
StrEq(intf), NotNull()))
- .WillOnce(
- Invoke([=](sd_bus*, const char*, const char*, char** names) {
+ .WillOnce(Invoke(
+ [=](sd_bus*, const char*, const char*, const char** names) {
EXPECT_STREQ(property.c_str(), names[0]);
return 0;
}));
@@ -139,10 +139,11 @@
EXPECT_CALL(sdbus_mock,
sd_bus_emit_properties_changed_strv(
IsNull(), StrEq("asdf"), StrEq(FanPwmIntf), NotNull()))
- .WillOnce(Invoke([&](sd_bus*, const char*, const char*, char** names) {
- EXPECT_EQ(0, strncmp("Target", names[0], 6));
- return 0;
- }));
+ .WillOnce(
+ Invoke([&](sd_bus*, const char*, const char*, const char** names) {
+ EXPECT_EQ(0, strncmp("Target", names[0], 6));
+ return 0;
+ }));
EXPECT_EQ(target, f.target(target));
}