From 666edd059b360b38add0acd959ea7e2ab5c7c5fd Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 19 Jun 2018 00:00:05 +0200 Subject: lok: Unit test for jsonToPropertyValuesVector. Change-Id: I3e0623cc68838c650edbd03cc89bf3fcb8098ff8 Reviewed-on: https://gerrit.libreoffice.org/56149 Tested-by: Jenkins Reviewed-by: Jan Holesovsky --- desktop/inc/lib/init.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'desktop/inc') 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 #include +#include #include #include #include +#include #include #include @@ -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 jsonToPropertyValuesVector(const char* pJSON); } #endif -- cgit