svl/CppunitTest_svl_urihelper.mk | 1 + svl/Module_svl.mk | 6 ------ svl/qa/unit/test_URIHelper.cxx | 12 ++++++++---- 3 files changed, 9 insertions(+), 10 deletions(-)
New commits: commit 4092da68f5e71b3fb82382a8f3d31d2cd05289d7 Author: Stephan Bergmann <[email protected]> Date: Thu Oct 29 10:24:26 2015 +0100 CppunitTest_svl_urihelper needs the file UCP ...for the WNT-only file:///c:/... vs. file:///C:/... check in testNormalizedMakeRelative Change-Id: I66a0456589aabe395645bb358dbef3268e1c3816 diff --git a/svl/CppunitTest_svl_urihelper.mk b/svl/CppunitTest_svl_urihelper.mk index bb9cd05..7b0f5ee 100644 --- a/svl/CppunitTest_svl_urihelper.mk +++ b/svl/CppunitTest_svl_urihelper.mk @@ -18,6 +18,7 @@ $(eval $(call gb_CppunitTest_use_api,svl_urihelper, \ $(eval $(call gb_CppunitTest_use_components,svl_urihelper, \ ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ )) $(eval $(call gb_CppunitTest_add_exception_objects,svl_urihelper, \ diff --git a/svl/Module_svl.mk b/svl/Module_svl.mk index 3b11224b..18d79ab 100644 --- a/svl/Module_svl.mk +++ b/svl/Module_svl.mk @@ -36,14 +36,8 @@ $(eval $(call gb_Module_add_check_targets,svl,\ CppunitTest_svl_lngmisc \ CppunitTest_svl_notify \ CppunitTest_svl_qa_cppunit \ -)) - -#FIXME: fails on MSVC -ifneq ($(OS),WNT) -$(eval $(call gb_Module_add_check_targets,svl,\ CppunitTest_svl_urihelper \ )) -endif ifneq ($(OOO_JUNIT_JAR),) $(eval $(call gb_Module_add_subsequentcheck_targets,svl,\ diff --git a/svl/qa/unit/test_URIHelper.cxx b/svl/qa/unit/test_URIHelper.cxx index 00c9fae..56cbad9 100644 --- a/svl/qa/unit/test_URIHelper.cxx +++ b/svl/qa/unit/test_URIHelper.cxx @@ -224,10 +224,14 @@ void Test::finish() { } void Test::testNormalizedMakeRelative() { - css::ucb::UniversalContentBroker::create(m_context)-> - registerContentProvider( - new Provider, OUString("test"), - true); + auto ucb(css::ucb::UniversalContentBroker::create(m_context)); + ucb->registerContentProvider(new Provider, "test", true); + ucb->registerContentProvider( + css::uno::Reference<css::ucb::XContentProvider>( + m_context->getServiceManager()->createInstanceWithContext( + "com.sun.star.comp.ucb.FileProvider", m_context), + css::uno::UNO_QUERY_THROW), + "file", true); struct Data { char const * base; char const * absolute; _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
