forked from Kistler-Group/sdbus-cpp
Transform constexpr member to a getter method because of different odr-usage rules in different compilers
This commit is contained in:
@@ -394,5 +394,5 @@ TEST_F(SdbusTestObject, CannotReadFromWriteProperty)
|
|||||||
|
|
||||||
TEST_F(SdbusTestObject, AnswersXmlApiDescriptionOnIntrospection)
|
TEST_F(SdbusTestObject, AnswersXmlApiDescriptionOnIntrospection)
|
||||||
{
|
{
|
||||||
ASSERT_THAT(m_proxy->Introspect(), Eq(testing_adaptor::expectedXmlApiDescription));
|
ASSERT_THAT(m_proxy->Introspect(), Eq(m_adaptor->getExpectedXmlApiDescription()));
|
||||||
}
|
}
|
||||||
|
@@ -172,7 +172,9 @@ protected:
|
|||||||
virtual void blocking(const bool& value) = 0;
|
virtual void blocking(const bool& value) = 0;
|
||||||
|
|
||||||
public: // For testing purposes
|
public: // For testing purposes
|
||||||
static constexpr char expectedXmlApiDescription[] =
|
std::string getExpectedXmlApiDescription()
|
||||||
|
{
|
||||||
|
return
|
||||||
R"delimiter(<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
R"delimiter(<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
||||||
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||||
<node>
|
<node>
|
||||||
@@ -303,6 +305,7 @@ R"delimiter(<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspectio
|
|||||||
</interface>
|
</interface>
|
||||||
</node>
|
</node>
|
||||||
)delimiter";
|
)delimiter";
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user