[Libreoffice-commits] online.git: loolwsd/test
Miklos Vajna
vmiklos at collabora.co.uk
Tue Jan 5 12:33:43 PST 2016
loolwsd/test/httpposttest.cpp | 4 ++--
loolwsd/test/httpwstest.cpp | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
New commits:
commit e3e4c4d6f3330bb9238cc3059e0f0a55bf116890
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Jan 5 21:32:53 2016 +0100
loolwsd: fix tests to build again
diff --git a/loolwsd/test/httpposttest.cpp b/loolwsd/test/httpposttest.cpp
index a4bd199..772210a 100644
--- a/loolwsd/test/httpposttest.cpp
+++ b/loolwsd/test/httpposttest.cpp
@@ -16,7 +16,7 @@
#include <Poco/URI.h>
#include <cppunit/extensions/HelperMacros.h>
-#include <LOOLWSD.hpp>
+#include <Common.hpp>
/// Tests the HTTP POST API of loolwsd. The server has to be started manually before running this test.
class HTTPPostTest : public CPPUNIT_NS::TestFixture
@@ -30,7 +30,7 @@ class HTTPPostTest : public CPPUNIT_NS::TestFixture
void HTTPPostTest::testConvertTo()
{
- Poco::URI uri("http://127.0.0.1:" + std::to_string(LOOLWSD::DEFAULT_CLIENT_PORT_NUMBER));
+ Poco::URI uri("http://127.0.0.1:" + std::to_string(ClientPortNumber));
Poco::Net::HTTPClientSession session(uri.getHost(), uri.getPort());
Poco::Net::HTTPRequest request(Poco::Net::HTTPRequest::HTTP_POST, "/convert-to");
diff --git a/loolwsd/test/httpwstest.cpp b/loolwsd/test/httpwstest.cpp
index 415b4d9..cb05b71 100644
--- a/loolwsd/test/httpwstest.cpp
+++ b/loolwsd/test/httpwstest.cpp
@@ -11,12 +11,13 @@
#include <Poco/Net/HTTPRequest.h>
#include <Poco/Net/HTTPResponse.h>
#include <Poco/Net/WebSocket.h>
+#include <Poco/Path.h>
#include <Poco/StringTokenizer.h>
#include <Poco/URI.h>
#include <cppunit/extensions/HelperMacros.h>
#include <LOOLProtocol.hpp>
-#include <LOOLWSD.hpp>
+#include <Common.hpp>
/// Tests the HTTP WebSocket API of loolwsd. The server has to be started manually before running this test.
class HTTPWSTest : public CPPUNIT_NS::TestFixture
@@ -38,7 +39,7 @@ class HTTPWSTest : public CPPUNIT_NS::TestFixture
void sendTextFrame(Poco::Net::WebSocket& socket, const std::string& string);
public:
HTTPWSTest()
- : _uri("http://127.0.0.1:" + std::to_string(LOOLWSD::DEFAULT_CLIENT_PORT_NUMBER)),
+ : _uri("http://127.0.0.1:" + std::to_string(ClientPortNumber)),
_session(_uri.getHost(), _uri.getPort()),
_request(Poco::Net::HTTPRequest::HTTP_POST, "/ws"),
_socket(_session, _request, _response)
More information about the Libreoffice-commits
mailing list