Home
last modified time | relevance | path

Searched hist:a1e9e2ae (Results 1 – 1 of 1) sorted by relevance

/openbmc/sdbusplus/test/message/
H A Dappend.cppa1e9e2ae Sat Jun 23 15:33:25 CDT 2018 William A. Kennington III <wak@google.com> test/message/append: Use googletest and mocks

The current test case depends on the system running a dbus daemon that
our test case can register and run a service with. It runs in multiple
threads and requires using raw sd_bus_message calls to determine if the
appends worked correctly. When systemd 237 becomes the minimum version
we could rely on message sealing and other new public members to deal
with the daemon issues. However, it will be a while before we can make
that the default version.

Lets mock out the expectations for the underlying sd_bus_message calls
to validate that we will build correct objects when using our
message.append() calls.

Tested:
Converted the tests from the old test cases to this new format
keeping very similar test functionality. Tests still pass.

Change-Id: Iafc8662389fe60ca2d519abfe472c61292f3239a
Signed-off-by: William A. Kennington III <wak@google.com>