[Libreoffice-commits] online.git: test/UnitWOPISaveAs.cpp
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Oct 18 00:20:34 UTC 2018
test/UnitWOPISaveAs.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 0bf78a3ce70485716db7675489b1ec5c4e67fafd
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Wed Oct 17 18:57:02 2018 -0400
Commit: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
CommitDate: Wed Oct 17 19:29:08 2018 -0400
wsd: fix saveas test
It didn't expect the trailing xfilename which
is used for anonymization.
Change-Id: I169253c567583f43ce870bbf5dfcebee9c94cd1d
diff --git a/test/UnitWOPISaveAs.cpp b/test/UnitWOPISaveAs.cpp
index ce84d9a84..7d9be30f9 100644
--- a/test/UnitWOPISaveAs.cpp
+++ b/test/UnitWOPISaveAs.cpp
@@ -43,8 +43,9 @@ public:
bool filterSendMessage(const char* data, const size_t len, const WSOpCode /* code */, const bool /* flush */, int& /*unitReturn*/) override
{
- std::string message(data, len);
- if (message == "saveas: url=" + helpers::getTestServerURI() + "/something%20wopi/files/1?access_token=anything filename=hello%20world.pdf")
+ const std::string message(data, len);
+ const std::string expected("saveas: url=" + helpers::getTestServerURI() + "/something%20wopi/files/1?access_token=anything filename=hello%20world.pdf");
+ if (message.find(expected) == 0)
{
// successfully exit the test if we also got the outgoing message
// notifying about saving the file
More information about the Libreoffice-commits
mailing list