Switch from plain UnixFd to owning UnixFd (#69)

This commit is contained in:
Stanislav Angelovič
2019-07-08 09:53:53 +02:00
committed by GitHub
parent c264f83e83
commit a09362f79a
6 changed files with 197 additions and 17 deletions
@@ -213,7 +213,7 @@ TEST_F(SdbusTestObject, CallsMethodWithObjectPathSuccesfully)
TEST_F(SdbusTestObject, CallsMethodWithUnixFdSuccesfully)
{
auto resUnixFd = m_proxy->getUnixFd();
ASSERT_THAT(resUnixFd, Gt(UNIX_FD_VALUE));
ASSERT_THAT(resUnixFd.get(), Gt(UNIX_FD_VALUE));
}
TEST_F(SdbusTestObject, CallsMethodWithComplexTypeSuccesfully)
+1 -1
View File
@@ -160,7 +160,7 @@ protected:
}
sdbus::UnixFd getUnixFd() const
{
return UNIX_FD_VALUE;
return sdbus::UnixFd{UNIX_FD_VALUE};
}
ComplexType getComplex() const