diff --git a/test/integrationtests/AdaptorAndProxy_test.cpp b/test/integrationtests/AdaptorAndProxy_test.cpp index 1132a5b..b904a5b 100644 --- a/test/integrationtests/AdaptorAndProxy_test.cpp +++ b/test/integrationtests/AdaptorAndProxy_test.cpp @@ -394,5 +394,5 @@ TEST_F(SdbusTestObject, CannotReadFromWriteProperty) TEST_F(SdbusTestObject, AnswersXmlApiDescriptionOnIntrospection) { - ASSERT_THAT(m_proxy->Introspect(), Eq(testing_adaptor::expectedXmlApiDescription)); + ASSERT_THAT(m_proxy->Introspect(), Eq(m_adaptor->getExpectedXmlApiDescription())); } diff --git a/test/integrationtests/adaptor-glue.h b/test/integrationtests/adaptor-glue.h index 54b43c0..ce66a48 100644 --- a/test/integrationtests/adaptor-glue.h +++ b/test/integrationtests/adaptor-glue.h @@ -172,7 +172,9 @@ protected: virtual void blocking(const bool& value) = 0; public: // For testing purposes - static constexpr char expectedXmlApiDescription[] = + std::string getExpectedXmlApiDescription() + { + return R"delimiter( @@ -303,6 +305,7 @@ R"delimiter( )delimiter"; + } };