summaryrefslogtreecommitdiff
path: root/svl/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-29 10:24:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-10-29 10:24:26 +0100
commit4092da68f5e71b3fb82382a8f3d31d2cd05289d7 (patch)
treeff060104770edadf799a09e09ad5782f80949e97 /svl/qa
parentc86c51a142301316f78db65ce8697da8d34fd9eb (diff)
CppunitTest_svl_urihelper needs the file UCP
...for the WNT-only file:///c:/... vs. file:///C:/... check in testNormalizedMakeRelative Change-Id: I66a0456589aabe395645bb358dbef3268e1c3816
Diffstat (limited to 'svl/qa')
-rw-r--r--svl/qa/unit/test_URIHelper.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/svl/qa/unit/test_URIHelper.cxx b/svl/qa/unit/test_URIHelper.cxx
index 00c9fae6f8c3..56cbad9c53ea 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;