From 7d913c6ec16cab123bd261bca20c4aaeea6b0b38 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 25 Apr 2023 20:13:07 +0100 Subject: expose parsing svgs for testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4d59aa9a684bd3e05fca473d6c7567cd8258b242 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151002 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/workben/fftester.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'vcl') diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx index bc4a692b4f81..c396b28f1ede 100644 --- a/vcl/workben/fftester.cxx +++ b/vcl/workben/fftester.cxx @@ -542,6 +542,16 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) SvFileStream aFileStream(out, StreamMode::READ); ret = static_cast((*pfnImport)(aFileStream)); } + else if (strcmp(argv[2], "svg") == 0) + { + static FFilterCall pfnImport(nullptr); + if (!pfnImport) + { + pfnImport = load(u"libsvgiolo.so", "TestImportSVG"); + } + SvFileStream aFileStream(out, StreamMode::READ); + ret = static_cast((*pfnImport)(aFileStream)); + } #endif } catch (...) -- cgit