Modify function signature for unit test.
sdbusplus changed the function signature of
sd_bus_emit_properties_changed_strv. Modify unit test according.
Signed-off-by: Hao Jiang <jianghao@google.com>
Change-Id: I372543425db822ad4c8c48b5f93a72f291d69d11
diff --git a/test/helpers.hpp b/test/helpers.hpp
index 10e8cd7..1b5486e 100644
--- a/test/helpers.hpp
+++ b/test/helpers.hpp
@@ -61,11 +61,12 @@
sd_bus_emit_properties_changed_strv(IsNull(), StrEq(path),
StrEq(intf), NotNull()))
.Times(properties.size())
- .WillRepeatedly(Invoke([=](sd_bus* bus, const char* path,
- const char* interface, char** names) {
- EXPECT_STREQ(properties[(*index)++].c_str(), names[0]);
- return 0;
- }));
+ .WillRepeatedly(
+ Invoke([=](sd_bus* bus, const char* path, const char* interface,
+ const char** names) {
+ EXPECT_STREQ(properties[(*index)++].c_str(), names[0]);
+ return 0;
+ }));
}
return;
diff --git a/test/pid_zone_unittest.cpp b/test/pid_zone_unittest.cpp
index 97b7f10..08f22d1 100644
--- a/test/pid_zone_unittest.cpp
+++ b/test/pid_zone_unittest.cpp
@@ -526,7 +526,7 @@
sd_bus_emit_properties_changed_strv(
IsNull(), StrEq(objPath), StrEq(modeInterface), NotNull()))
.WillOnce(Invoke([&](sd_bus* bus, const char* path,
- const char* interface, char** names) {
+ const char* interface, const char** names) {
EXPECT_STREQ("Manual", names[0]);
return 0;
}));
diff --git a/test/sensor_host_unittest.cpp b/test/sensor_host_unittest.cpp
index 8559081..eeccdc1 100644
--- a/test/sensor_host_unittest.cpp
+++ b/test/sensor_host_unittest.cpp
@@ -91,7 +91,7 @@
sd_bus_emit_properties_changed_strv(
IsNull(), StrEq(objPath), StrEq(interface), NotNull()))
.WillOnce(Invoke([=](sd_bus* bus, const char* path,
- const char* interface, char** names) {
+ const char* interface, const char** names) {
EXPECT_STREQ("Value", names[0]);
return 0;
}));