1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

renamed ThreadedWsServer -> WsServer

This commit is contained in:
Falk Werner
2020-06-12 16:53:36 +02:00
parent 4d277701cb
commit cd76427f83
6 changed files with 59 additions and 59 deletions

View File

@@ -3,9 +3,9 @@
#include "webfuse/adapter/client.h"
#include "webfuse/adapter/credentials.h"
#include "webfuse/core/protocol_names.h"
#include "webfuse/utils/threaded_ws_server.h"
#include "webfuse/utils/ws_server.h"
using webfuse_test::ThreadedWsServer;
using webfuse_test::WsServer;
namespace
{
@@ -111,7 +111,7 @@ TEST(client, general_usage)
TEST(client, connect)
{
ThreadedWsServer server(WF_PROTOCOL_NAME_PROVIDER_SERVER);
WsServer server(WF_PROTOCOL_NAME_PROVIDER_SERVER);
context ctx;
ctx.state = connection_state::connecting;

View File

@@ -3,7 +3,7 @@
#include <webfuse/provider/client_protocol.h>
#include <webfuse/provider/client_config.h>
#include "webfuse/utils/threaded_ws_server.h"
#include "webfuse/utils/ws_server.h"
#include "webfuse/mocks/mock_provider_client.hpp"
#include "webfuse/core/protocol_names.h"
#include "webfuse/utils/timeout_watcher.hpp"
@@ -12,7 +12,7 @@
#include <thread>
#include <atomic>
using webfuse_test::ThreadedWsServer;
using webfuse_test::WsServer;
using webfuse_test::MockProviderClient;
using webfuse_test::IProviderClient;
using webfuse_test::TimeoutWatcher;
@@ -32,7 +32,7 @@ class ClientProtocolFixture
public:
explicit ClientProtocolFixture(IProviderClient& client, bool enableAuthentication = false)
{
server = new ThreadedWsServer(WF_PROTOCOL_NAME_ADAPTER_SERVER);
server = new WsServer(WF_PROTOCOL_NAME_ADAPTER_SERVER);
config = wfp_client_config_create();
client.AttachTo(config, enableAuthentication);
@@ -168,7 +168,7 @@ public:
}
private:
ThreadedWsServer * server;
WsServer * server;
wfp_client_config * config;
wfp_client_protocol * protocol;
struct lws_context_creation_info info;