mirror of
https://github.com/Kistler-Group/sdbus-cpp.git
synced 2025-07-30 18:17:14 +02:00
Fix integration tests after getObjectPath() introduction failed them
This commit is contained in:
@ -216,7 +216,7 @@ TEST_F(SdbusTestObject, CallsMethodWithSignatureSuccesfully)
|
|||||||
|
|
||||||
TEST_F(SdbusTestObject, CallsMethodWithObjectPathSuccesfully)
|
TEST_F(SdbusTestObject, CallsMethodWithObjectPathSuccesfully)
|
||||||
{
|
{
|
||||||
auto resObjectPath = m_proxy->getObjectPath();
|
auto resObjectPath = m_proxy->getObjPath();
|
||||||
ASSERT_THAT(resObjectPath, Eq(OBJECT_PATH_VALUE));
|
ASSERT_THAT(resObjectPath, Eq(OBJECT_PATH_VALUE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ protected:
|
|||||||
{
|
{
|
||||||
return SIGNATURE_VALUE;
|
return SIGNATURE_VALUE;
|
||||||
}
|
}
|
||||||
sdbus::ObjectPath getObjectPath() const override
|
sdbus::ObjectPath getObjPath() const override
|
||||||
{
|
{
|
||||||
return OBJECT_PATH_VALUE;
|
return OBJECT_PATH_VALUE;
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ protected:
|
|||||||
});
|
});
|
||||||
|
|
||||||
object_.registerMethod("getSignature").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->getSignature(); });
|
object_.registerMethod("getSignature").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->getSignature(); });
|
||||||
object_.registerMethod("getObjectPath").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->getObjectPath(); });
|
object_.registerMethod("getObjPath").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->getObjPath(); });
|
||||||
object_.registerMethod("getUnixFd").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->getUnixFd(); });
|
object_.registerMethod("getUnixFd").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->getUnixFd(); });
|
||||||
|
|
||||||
object_.registerMethod("getComplex").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->getComplex(); }).markAsDeprecated();
|
object_.registerMethod("getComplex").onInterface(INTERFACE_NAME).implementedAs([this](){ return this->getComplex(); }).markAsDeprecated();
|
||||||
@ -168,7 +168,7 @@ protected:
|
|||||||
virtual uint32_t doOperation(uint32_t param) = 0;
|
virtual uint32_t doOperation(uint32_t param) = 0;
|
||||||
virtual void doOperationAsync(uint32_t param, sdbus::Result<uint32_t> result) = 0;
|
virtual void doOperationAsync(uint32_t param, sdbus::Result<uint32_t> result) = 0;
|
||||||
virtual sdbus::Signature getSignature() const = 0;
|
virtual sdbus::Signature getSignature() const = 0;
|
||||||
virtual sdbus::ObjectPath getObjectPath() const = 0;
|
virtual sdbus::ObjectPath getObjPath() const = 0;
|
||||||
virtual sdbus::UnixFd getUnixFd() const = 0;
|
virtual sdbus::UnixFd getUnixFd() const = 0;
|
||||||
virtual ComplexType getComplex() const = 0;
|
virtual ComplexType getComplex() const = 0;
|
||||||
virtual void throwError() const = 0;
|
virtual void throwError() const = 0;
|
||||||
@ -279,7 +279,7 @@ R"delimiter(
|
|||||||
#endif
|
#endif
|
||||||
R"delimiter(
|
R"delimiter(
|
||||||
</method>
|
</method>
|
||||||
<method name="getObjectPath">
|
<method name="getObjPath">
|
||||||
<arg type="o" direction="out"/>
|
<arg type="o" direction="out"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="getSignature">
|
<method name="getSignature">
|
||||||
|
@ -197,10 +197,10 @@ public:
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
sdbus::ObjectPath getObjectPath()
|
sdbus::ObjectPath getObjPath()
|
||||||
{
|
{
|
||||||
sdbus::ObjectPath result;
|
sdbus::ObjectPath result;
|
||||||
object_.callMethod("getObjectPath").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
object_.callMethod("getObjPath").onInterface(INTERFACE_NAME).storeResultsTo(result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user