summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Library_subsequenttest.mk1
-rw-r--r--test/source/calc_unoapi_test.cxx14
2 files changed, 15 insertions, 0 deletions
diff --git a/test/Library_subsequenttest.mk b/test/Library_subsequenttest.mk
index 813b61ec538f..4e179080c70a 100644
--- a/test/Library_subsequenttest.mk
+++ b/test/Library_subsequenttest.mk
@@ -27,6 +27,7 @@ $(eval $(call gb_Library_use_libraries,subsequenttest,\
cppuhelper \
i18nlangtag \
sal \
+ sfx \
test \
tl \
utl \
diff --git a/test/source/calc_unoapi_test.cxx b/test/source/calc_unoapi_test.cxx
index 578ac9d97c2d..1aaed35f3fb5 100644
--- a/test/source/calc_unoapi_test.cxx
+++ b/test/source/calc_unoapi_test.cxx
@@ -8,6 +8,7 @@
*/
#include <test/calc_unoapi_test.hxx>
+#include <sfx2/objsh.hxx>
using namespace css;
using namespace css::uno;
@@ -35,4 +36,17 @@ void CalcUnoApiTest::tearDown()
UnoApiTest::tearDown();
}
+uno::Any CalcUnoApiTest::executeMacro(const OUString& rScriptURL, const uno::Sequence<uno::Any>& rParams)
+{
+ uno::Any aRet;
+ uno::Sequence<sal_Int16> aOutParamIndex;
+ uno::Sequence<uno::Any> aOutParam;
+
+ ErrCode result = SfxObjectShell::CallXScript(
+ mxComponent, rScriptURL,
+ rParams, aRet, aOutParamIndex, aOutParam);
+ CPPUNIT_ASSERT_EQUAL(ERRCODE_NONE, result);
+
+ return aRet;
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */