Kaydet (Commit) e3e4b799 authored tarafından Caolán McNamara's avatar Caolán McNamara

mirror fuzzer setup in fftester

Change-Id: I8bcb834a7e297f43fad6a07c2e861897f962e8d4
Reviewed-on: https://gerrit.libreoffice.org/44468Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 0168eecd
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/ucb/XContentProvider.hpp>
#include <com/sun/star/ucb/XUniversalContentBroker.hpp>
#include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/uno/XComponentContext.hpp>
#include <unotools/configmgr.hxx> #include <unotools/configmgr.hxx>
#include <vcl/dibtools.hxx> #include <vcl/dibtools.hxx>
...@@ -88,6 +90,16 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) ...@@ -88,6 +90,16 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
Application::Abort( "Failed to bootstrap" ); Application::Abort( "Failed to bootstrap" );
comphelper::setProcessServiceFactory( xServiceManager ); comphelper::setProcessServiceFactory( xServiceManager );
utl::ConfigManager::EnableAvoidConfig(); utl::ConfigManager::EnableAvoidConfig();
// initialise unconfigured UCB:
css::uno::Reference<css::ucb::XUniversalContentBroker> xUcb(comphelper::getProcessServiceFactory()->
createInstance("com.sun.star.ucb.UniversalContentBroker"), css::uno::UNO_QUERY_THROW);
css::uno::Sequence<css::uno::Any> aArgs(1);
aArgs[0] <<= OUString("NoConfig");
css::uno::Reference<css::ucb::XContentProvider> xFileProvider(comphelper::getProcessServiceFactory()->
createInstanceWithArguments("com.sun.star.ucb.FileContentProvider", aArgs), css::uno::UNO_QUERY_THROW);
xUcb->registerContentProvider(xFileProvider, "file", true);
InitVCL(); InitVCL();
if (strcmp(argv[2], "wmf") == 0 || strcmp(argv[2], "emf") == 0) if (strcmp(argv[2], "wmf") == 0 || strcmp(argv[2], "emf") == 0)
......
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