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/helpers.hpp b/test/helpers.hpp
index 931a39e..74c969f 100644
--- a/test/helpers.hpp
+++ b/test/helpers.hpp
@@ -49,17 +49,7 @@
.WillOnce(Return(0));
}
- if (properties.empty())
- {
- // We always expect one, but in this case we're not concerned with the
- // output. If there is more than one property update, we should care
- // and the test writer can add the code to trigger the below case.
- EXPECT_CALL(*sdbus_mock,
- sd_bus_emit_properties_changed_strv(IsNull(), StrEq(path),
- StrEq(intf), NotNull()))
- .WillOnce(Return(0));
- }
- else
+ if (!properties.empty())
{
(*index) = 0;
EXPECT_CALL(*sdbus_mock,