diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-06-19 00:00:05 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-06-20 21:33:41 +0200 |
commit | 666edd059b360b38add0acd959ea7e2ab5c7c5fd (patch) | |
tree | 294d6217f4880e510df0d7f7aed8b2667f99ffde /desktop/inc/lib | |
parent | 87674a28893520eb8bb528c7e774a7ed926976cb (diff) |
lok: Unit test for jsonToPropertyValuesVector.
Change-Id: I3e0623cc68838c650edbd03cc89bf3fcb8098ff8
Reviewed-on: https://gerrit.libreoffice.org/56149
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'desktop/inc/lib')
-rw-r--r-- | desktop/inc/lib/init.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx index 78b3437f4ef4..cb8afa899b76 100644 --- a/desktop/inc/lib/init.hxx +++ b/desktop/inc/lib/init.hxx @@ -16,9 +16,11 @@ #include <mutex> #include <osl/thread.h> +#include <rtl/ref.hxx> #include <vcl/idle.hxx> #include <LibreOfficeKit/LibreOfficeKit.h> #include <LibreOfficeKit/LibreOfficeKitEnums.h> +#include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/lang/XComponent.hpp> #include <desktop/dllapi.h> @@ -98,6 +100,10 @@ namespace desktop { /// comma, like: Name1=Value1,Name2=Value2,Name3=Value3. /// @param rOptions When extracted, the Param=Value is removed from it. DESKTOP_DLLPUBLIC OUString extractParameter(OUString& aOptions, const OUString& rName); + + /// Helper function to convert JSON to a vector of PropertyValues. + /// Public to be unit-test-able. + DESKTOP_DLLPUBLIC std::vector<com::sun::star::beans::PropertyValue> jsonToPropertyValuesVector(const char* pJSON); } #endif |