summaryrefslogtreecommitdiffstats
path: root/include/unotest
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-06-19 17:56:54 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-06-19 22:32:16 +0200
commit81c0b6410ae7a604a97994c7f31113f24665167f (patch)
tree42f7a82f22a3d32765b91484c2f1d8013d71156f /include/unotest
parentCppunitTest_vcl_pdfexport: clean up custom pdfium scopers (diff)
downloadcore-81c0b6410ae7a604a97994c7f31113f24665167f.tar.gz
core-81c0b6410ae7a604a97994c7f31113f24665167f.zip
Move data for signing tests to test/
This was duplicated under xmlsecurity and made it hard to have test code outside xmlsecurity, even if the core of the pdf signing is nowadays under svl/. Change-Id: If5ce8269bb72f503263727d8255fe856742dfa60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96745 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'include/unotest')
-rw-r--r--include/unotest/macros_test.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/unotest/macros_test.hxx b/include/unotest/macros_test.hxx
index c60ea1fe97ce..2960dc0fbb23 100644
--- a/include/unotest/macros_test.hxx
+++ b/include/unotest/macros_test.hxx
@@ -13,6 +13,7 @@
#include <sal/config.h>
#include <memory>
+#include <config_gpgme.h>
#include <rtl/ustring.hxx>
#include <unotest/detail/unotestdllapi.hxx>
@@ -27,6 +28,11 @@ struct TestMacroInfo
class BasicDLL;
+namespace test
+{
+class Directories;
+}
+
namespace unotest {
class OOO_DLLPUBLIC_UNOTEST MacrosTest
@@ -43,11 +49,17 @@ public:
const OUString& rCommand,
const css::uno::Sequence<css::beans::PropertyValue>& rPropertyValues);
+ void setUpNssGpg(const test::Directories& rDirectories, const OUString& rTestName);
+ void tearDownNssGpg();
+
protected:
css::uno::Reference< css::frame::XDesktop2> mxDesktop;
private:
std::unique_ptr<BasicDLL> mpDll;
+#if HAVE_GPGCONF_SOCKETDIR
+ OString m_gpgconfCommandPrefix;
+#endif
};
}