<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sdbusplus/test/message, branch master</title>
<subtitle>OpenBMC systemd DBUS binding API sources</subtitle>
<id>https://git.raptorcs.com/git/sdbusplus/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/sdbusplus/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/sdbusplus/'/>
<updated>2019-06-14T17:56:25+00:00</updated>
<entry>
<title>native_types: Fix string_wrapper overloads</title>
<updated>2019-06-14T17:56:25+00:00</updated>
<author>
<name>William A. Kennington III</name>
<email>wak@google.com</email>
</author>
<published>2019-05-30T23:12:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/sdbusplus/commit/?id=f8bbf17c3db879359b0984b40250e4db3d274be1'/>
<id>urn:sha1:f8bbf17c3db879359b0984b40250e4db3d274be1</id>
<content type='text'>
We should only coalesce to an r-value reference to our internal string if our
object is a move reference. This fixes ambiguous overloads with gcc9.
This also ensures that const references cannot be ambiguous with move
references by requiring a const volatile reference.

Change-Id: I31ed529c015cc311c9933acbc0f0a4aa50fed3a6
Signed-off-by: William A. Kennington III &lt;wak@google.com&gt;
</content>
</entry>
<entry>
<title>std::variant: Remove uses of the variant_ns</title>
<updated>2019-04-05T22:14:52+00:00</updated>
<author>
<name>William A. Kennington III</name>
<email>wak@google.com</email>
</author>
<published>2018-11-26T17:50:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/sdbusplus/commit/?id=4274c117dd2866ac60508f438e7427f99dee6be4'/>
<id>urn:sha1:4274c117dd2866ac60508f438e7427f99dee6be4</id>
<content type='text'>
Now that we are using std::variant we should reference it directly
instead of using our own namespace alias.

Tested:
    Built and ran through unit tests.

Change-Id: Ic3fd62ea74cf808b85ad7b7ffcce8c0a0bfb125d
Signed-off-by: William A. Kennington III &lt;wak@google.com&gt;
</content>
</entry>
<entry>
<title>message: Fix variant api usage</title>
<updated>2018-10-05T22:02:59+00:00</updated>
<author>
<name>William A. Kennington III</name>
<email>wak@google.com</email>
</author>
<published>2018-10-04T21:56:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/sdbusplus/commit/?id=81fa02eeb854d41cc20a641d35a027665d2f6133'/>
<id>urn:sha1:81fa02eeb854d41cc20a641d35a027665d2f6133</id>
<content type='text'>
This makes our use of the mapbox variant consistent with std::variant.
We need this cleanup for the conversion to std::variant.

Tested:
    Ran unit tests to make sure they still pass.

Change-Id: I990013eaaa2ec27f2fda71bfadd9a5369d50c187
Signed-off-by: William A. Kennington III &lt;wak@google.com&gt;
</content>
</entry>
<entry>
<title>clang-format: Fix pointer alignment</title>
<updated>2018-08-31T20:12:54+00:00</updated>
<author>
<name>William A. Kennington III</name>
<email>wak@google.com</email>
</author>
<published>2018-08-31T20:09:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/sdbusplus/commit/?id=e0d6965e73f1f648ed02e483277f81a328ecb6df'/>
<id>urn:sha1:e0d6965e73f1f648ed02e483277f81a328ecb6df</id>
<content type='text'>
Oenbmc documentation specifies a left alignment for pointers. Our
current format tries to left align if neither alignment is strictly
followed, but will allow right aligned files to exist. Lets make this
more strict so that all of our files are consistent.

Change-Id: I3a50043d28a9c25d0cf1ffb752800d05eb7615e1
Signed-off-by: William A. Kennington III &lt;wak@google.com&gt;
</content>
</entry>
<entry>
<title>clang-format: always break template declarations</title>
<updated>2018-08-31T19:45:01+00:00</updated>
<author>
<name>Patrick Venture</name>
<email>venture@google.com</email>
</author>
<published>2018-08-31T19:45:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/sdbusplus/commit/?id=2b238afb8c46824d3f0a6b3a615df2c57a16f7ed'/>
<id>urn:sha1:2b238afb8c46824d3f0a6b3a615df2c57a16f7ed</id>
<content type='text'>
To better match the defined openbmc style.

Change-Id: I68cda43857768bae4c904c367942cb1f0efa3e0c
Signed-off-by: Patrick Venture &lt;venture@google.com&gt;
</content>
</entry>
<entry>
<title>update .clang-format header inclusion order</title>
<updated>2018-08-31T19:44:45+00:00</updated>
<author>
<name>Patrick Venture</name>
<email>venture@google.com</email>
</author>
<published>2018-08-31T16:19:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/sdbusplus/commit/?id=95269dbc8c38fb41ac50639eafa8d8c3e57ec748'/>
<id>urn:sha1:95269dbc8c38fb41ac50639eafa8d8c3e57ec748</id>
<content type='text'>
Added the header inclusion order to the .clang-format file generated
these changes.

Change-Id: Ia31b21d7ea451cac0309828006bc17c27cbd5bd5
Signed-off-by: Patrick Venture &lt;venture@google.com&gt;
</content>
</entry>
<entry>
<title>test/message/read: Test that our error handling cases work</title>
<updated>2018-07-09T18:20:42+00:00</updated>
<author>
<name>William A. Kennington III</name>
<email>wak@google.com</email>
</author>
<published>2018-06-26T22:23:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/sdbusplus/commit/?id=13367e49f05ac12988329d051502cdc99390d558'/>
<id>urn:sha1:13367e49f05ac12988329d051502cdc99390d558</id>
<content type='text'>
This improves our test coverage of sd_bus_message read functionality to
100%.

Tested:
    Ran through the usual unit test scripts including valgrind and code
    coverage.

Change-Id: Ifa849d05364349e27e39c6dda5e4cab4efa35476
Signed-off-by: William A. Kennington III &lt;wak@google.com&gt;
</content>
</entry>
<entry>
<title>test/message/read: Add missing variant skip</title>
<updated>2018-07-09T18:20:42+00:00</updated>
<author>
<name>William A. Kennington III</name>
<email>wak@google.com</email>
</author>
<published>2018-06-26T21:31:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/sdbusplus/commit/?id=60a728351ee5f5ed1a1c180b1a40eabc45a7794b'/>
<id>urn:sha1:60a728351ee5f5ed1a1c180b1a40eabc45a7794b</id>
<content type='text'>
We were missing a test of the variant code which is used when the type
of the variant provided by the caller does not contain the type needed
at runtime to store the data in the message. This tests to make sure
that the skip is issued correctly when we can't read out the member.

Tested:
    Unit tests still build and pass

Change-Id: I41fdc3e40589f1feedfadc3ab33fe808ff3a6d16
Signed-off-by: William A. Kennington III &lt;wak@google.com&gt;
</content>
</entry>
<entry>
<title>test/message/read: Use googletest and mocks</title>
<updated>2018-07-09T18:20:42+00:00</updated>
<author>
<name>William A. Kennington III</name>
<email>wak@google.com</email>
</author>
<published>2018-06-26T00:20:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/sdbusplus/commit/?id=b4b4fa1faf519a0954cfe0f60ce9f9c11c8a0256'/>
<id>urn:sha1:b4b4fa1faf519a0954cfe0f60ce9f9c11c8a0256</id>
<content type='text'>
Similar to the append test, this test case relied on an ad-hoc system
using a separate daemon thread for echoing the messages back to each of
the unit tests. We don't want to depend on a system dbus instance if we
can avoid it. Instead, use the mocking system to make sure the correct
dbus calls are made when reading messages and ensure the resulting
output is built as expected.

Tested:
    Build still works and all test cases pass. Ensured that the coverage
    of the tests is the same as the old test cases.

Change-Id: I8d71c031391b962f1de6684d927b81e132c0886d
Signed-off-by: William A. Kennington III &lt;wak@google.com&gt;
</content>
</entry>
<entry>
<title>test/message/append: Use googletest and mocks</title>
<updated>2018-07-09T18:20:42+00:00</updated>
<author>
<name>William A. Kennington III</name>
<email>wak@google.com</email>
</author>
<published>2018-06-23T20:33:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/sdbusplus/commit/?id=a1e9e2aea35e0b11189f18bda9a566da8e88289a'/>
<id>urn:sha1:a1e9e2aea35e0b11189f18bda9a566da8e88289a</id>
<content type='text'>
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 &lt;wak@google.com&gt;
</content>
</entry>
</feed>
