diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-04-19 17:05:31 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-04-20 11:57:28 +0200 |
commit | e6ddfdf040f88d19e5ec9b4d10b8cccd79155ad1 (patch) | |
tree | 56756042fea63acd5beddbf599603f37a035aa48 /unotest/source/embindtest/embindtest.cxx | |
parent | 1bf2d3fa8ed016eaf71d8b3acc3fc779ee32e223 (diff) |
Embind: Test and Fix out-param handling
(the types that are meant to be passed directly by pointer will need more
thought, to make them actually work)
Change-Id: Ia0f2e6f5335fad1140629477e89fc96121c2927e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166318
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'unotest/source/embindtest/embindtest.cxx')
-rw-r--r-- | unotest/source/embindtest/embindtest.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/unotest/source/embindtest/embindtest.cxx b/unotest/source/embindtest/embindtest.cxx index 9c10335ed704..bbc3496a7238 100644 --- a/unotest/source/embindtest/embindtest.cxx +++ b/unotest/source/embindtest/embindtest.cxx @@ -512,6 +512,24 @@ class Test : public cppu::WeakImplHelper<org::libreoffice::embindtest::XTest> return !value; } + void SAL_CALL getOut(sal_Bool& value1, sal_Int8& value2, sal_Int16& value3, sal_uInt16& value4, + sal_Int32& value5, sal_uInt32& value6, sal_Int64& value7, + sal_uInt64& value8, float& value9, double& value10, + sal_Unicode& value11) override + { + value1 = true; + value2 = -12; + value3 = -1234; + value4 = 54321; + value5 = -123456; + value6 = 3456789012; + value7 = -123456789; + value8 = 9876543210; + value9 = -10.25; + value10 = 100.5; + value11 = u'Ö'; + } + void SAL_CALL throwRuntimeException() override { throw css::uno::RuntimeException(u"test"_ustr); |