summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-04-25 20:13:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2023-04-26 16:23:49 +0200
commit7d913c6ec16cab123bd261bca20c4aaeea6b0b38 (patch)
treec4e3703e7f8c4f0faa5d48d9f463476b0a9a8061 /vcl
parentc163334ae8cdd202dd4060ef1f401a9e9b51ce3e (diff)
expose parsing svgs for testing
Change-Id: I4d59aa9a684bd3e05fca473d6c7567cd8258b242 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151002 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/workben/fftester.cxx10
1 files changed, 10 insertions, 0 deletions
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<int>((*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<int>((*pfnImport)(aFileStream));
+ }
#endif
}
catch (...)