Kaydet (Commit) 4092da68 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

CppunitTest_svl_urihelper needs the file UCP

...for the WNT-only file:///c:/... vs. file:///C:/... check in
testNormalizedMakeRelative

Change-Id: I66a0456589aabe395645bb358dbef3268e1c3816
üst c86c51a1
...@@ -18,6 +18,7 @@ $(eval $(call gb_CppunitTest_use_api,svl_urihelper, \ ...@@ -18,6 +18,7 @@ $(eval $(call gb_CppunitTest_use_api,svl_urihelper, \
$(eval $(call gb_CppunitTest_use_components,svl_urihelper, \ $(eval $(call gb_CppunitTest_use_components,svl_urihelper, \
ucb/source/core/ucb1 \ ucb/source/core/ucb1 \
ucb/source/ucp/file/ucpfile1 \
)) ))
$(eval $(call gb_CppunitTest_add_exception_objects,svl_urihelper, \ $(eval $(call gb_CppunitTest_add_exception_objects,svl_urihelper, \
......
...@@ -36,14 +36,8 @@ $(eval $(call gb_Module_add_check_targets,svl,\ ...@@ -36,14 +36,8 @@ $(eval $(call gb_Module_add_check_targets,svl,\
CppunitTest_svl_lngmisc \ CppunitTest_svl_lngmisc \
CppunitTest_svl_notify \ CppunitTest_svl_notify \
CppunitTest_svl_qa_cppunit \ CppunitTest_svl_qa_cppunit \
))
#FIXME: fails on MSVC
ifneq ($(OS),WNT)
$(eval $(call gb_Module_add_check_targets,svl,\
CppunitTest_svl_urihelper \ CppunitTest_svl_urihelper \
)) ))
endif
ifneq ($(OOO_JUNIT_JAR),) ifneq ($(OOO_JUNIT_JAR),)
$(eval $(call gb_Module_add_subsequentcheck_targets,svl,\ $(eval $(call gb_Module_add_subsequentcheck_targets,svl,\
......
...@@ -224,10 +224,14 @@ void Test::finish() { ...@@ -224,10 +224,14 @@ void Test::finish() {
} }
void Test::testNormalizedMakeRelative() { void Test::testNormalizedMakeRelative() {
css::ucb::UniversalContentBroker::create(m_context)-> auto ucb(css::ucb::UniversalContentBroker::create(m_context));
registerContentProvider( ucb->registerContentProvider(new Provider, "test", true);
new Provider, OUString("test"), ucb->registerContentProvider(
true); 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 { struct Data {
char const * base; char const * base;
char const * absolute; char const * absolute;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment