10#ifndef INCLUDED_UNOTEST_MACROS_TEST_HXX
11#define INCLUDED_UNOTEST_MACROS_TEST_HXX
17#include <config_gpgme.h>
18#include <rtl/ustring.hxx>
21#include <com/sun/star/lang/XComponent.hpp>
22#include <com/sun/star/frame/XDesktop2.hpp>
23#include <com/sun/star/uno/Any.h>
50class XSecurityEnvironment;
65 : m_Func(
std::move(aFunc))
76 fprintf(stderr,
"resetter failed with exception\n");
85 css::uno::Reference<css::lang::XComponent>
86 loadFromDesktop(
const OUString& rURL,
const OUString& rDocService = OUString(),
87 const css::uno::Sequence<css::beans::PropertyValue>& rExtra_args
88 = css::uno::Sequence<css::beans::PropertyValue>());
91 dispatchCommand(
const css::uno::Reference<css::lang::XComponent>& xComponent,
92 const OUString& rCommand,
93 const css::uno::Sequence<css::beans::PropertyValue>& rPropertyValues);
96 static std::unique_ptr<SvStream> parseExportStream(
const OUString& url,
97 const OUString& rStreamName);
99 void setUpNssGpg(
const test::Directories& rDirectories,
const OUString& rTestName);
100 void tearDownNssGpg();
102 static bool IsValid(
const css::uno::Reference<css::security::XCertificate>& cert,
103 const css::uno::Reference<css::xml::crypto::XSecurityEnvironment>&
env);
104 static css::uno::Reference<css::security::XCertificate> GetValidCertificate(
105 const css::uno::Sequence<css::uno::Reference<css::security::XCertificate>>& certs,
106 const css::uno::Reference<css::xml::crypto::XSecurityEnvironment>&
env,
107 const css::uno::Sequence<css::beans::PropertyValue>& rFilterData = {});
114#if HAVE_GPGCONF_SOCKETDIR
115 OString m_gpgconfCommandPrefix;
Resetter(std::function< void()> aFunc)
std::function< void()> m_Func
css::uno::Reference< css::frame::XDesktop2 > mxDesktop
std::unique_ptr< BasicDLL > mpDll
const css::uno::Reference< css::xml::crypto::XSecurityEnvironment > & env
bool dispatchCommand(const OUString &rCommand, const uno::Reference< css::frame::XFrame > &rFrame, const css::uno::Sequence< css::beans::PropertyValue > &rArguments, const uno::Reference< css::frame::XDispatchResultListener > &rListener)
#define OOO_DLLPUBLIC_UNOTEST