wsd: test: killpoco for UnitSession
We now use our http::Socket and SocketPoll instead of Poco. Change-Id: Ib835b8efb7b65fee11e0a2aebf34cc4ee86dbab7 Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
This commit is contained in:
parent
cd9490a3ae
commit
176c37eaa6
1 changed files with 4 additions and 7 deletions
|
@ -156,14 +156,11 @@ UnitBase::TestResult UnitSession::testSlideShow()
|
|||
std::string response;
|
||||
helpers::getDocumentPathAndURL("setclientpart.odp", documentPath, documentURL, testname);
|
||||
|
||||
Poco::Net::HTTPRequest request(Poco::Net::HTTPRequest::HTTP_GET, documentURL);
|
||||
Poco::Net::HTTPResponse httpResponse;
|
||||
std::shared_ptr<COOLWebSocket> socket = helpers::connectLOKit(
|
||||
Poco::URI(helpers::getTestServerURI()), request, httpResponse, testname);
|
||||
std::shared_ptr<SocketPoll> socketPoll = std::make_shared<SocketPoll>(testname);
|
||||
socketPoll->startThread();
|
||||
|
||||
helpers::sendTextFrame(socket, "load url=" + documentURL, testname);
|
||||
LOK_ASSERT_MESSAGE("cannot load the document " + documentURL,
|
||||
helpers::isDocumentLoaded(socket, testname));
|
||||
std::shared_ptr<http::WebSocketSession> socket = helpers::loadDocAndGetSession(
|
||||
socketPoll, Poco::URI(helpers::getTestServerURI()), documentURL, testname);
|
||||
|
||||
// request slide show
|
||||
helpers::sendTextFrame(
|
||||
|
|
Loading…
Reference in a new issue