summaryrefslogtreecommitdiff
path: root/test/WopiTestServer.hpp
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2018-02-02 09:58:20 +0530
committerAshod Nakashian <ashnakash@gmail.com>2018-02-07 14:30:33 +0100
commit5476774af1510751127cdb0c605149f05d43394b (patch)
treee8dec86db6e9cff0f9dc4a53eb425884763d684d /test/WopiTestServer.hpp
parent1dde430bcf9b9cd6febd18547c3d3992d76cef61 (diff)
wsd: Use a close request flag to break out of doc broker poll thread
... instead of directly stop()ing it. The close request approach also makes sure that outgoing document is saved to storage. Change-Id: I44f61db00dbd326dec80f59f4a2cbb617048aa94 Reviewed-on: https://gerrit.libreoffice.org/49122 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'test/WopiTestServer.hpp')
-rw-r--r--test/WopiTestServer.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/WopiTestServer.hpp b/test/WopiTestServer.hpp
index b20aa032e..f5cc4c82e 100644
--- a/test/WopiTestServer.hpp
+++ b/test/WopiTestServer.hpp
@@ -94,6 +94,7 @@ protected:
fileInfo->set("UserCanWrite", "true");
fileInfo->set("PostMessageOrigin", "localhost");
fileInfo->set("LastModifiedTime", Poco::DateTimeFormatter::format(now, Poco::DateTimeFormat::ISO8601_FORMAT));
+ fileInfo->set("EnableOwnerTermination", "true");
std::ostringstream jsonStream;
fileInfo->stringify(jsonStream);