summaryrefslogtreecommitdiffstats
path: root/src/lib/asiolink/testutils/test_server_unix_socket.h
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2023-12-14 19:16:52 +0100
committerRazvan Becheriu <razvan@isc.org>2024-03-05 08:50:05 +0100
commit1b070fe4b53be34d34bdbfe59ec22d65b27fa982 (patch)
treeff4fa433d4739afe2e9944b46cbab587afd302c5 /src/lib/asiolink/testutils/test_server_unix_socket.h
parent[#3271] bump version in configure.ac to 2.5.7 (diff)
downloadkea-1b070fe4b53be34d34bdbfe59ec22d65b27fa982.tar.xz
kea-1b070fe4b53be34d34bdbfe59ec22d65b27fa982.zip
[#3190] use smart pointer to capture IOService instance
Diffstat (limited to 'src/lib/asiolink/testutils/test_server_unix_socket.h')
-rw-r--r--src/lib/asiolink/testutils/test_server_unix_socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/asiolink/testutils/test_server_unix_socket.h b/src/lib/asiolink/testutils/test_server_unix_socket.h
index cf156738c2..2b00aa40f7 100644
--- a/src/lib/asiolink/testutils/test_server_unix_socket.h
+++ b/src/lib/asiolink/testutils/test_server_unix_socket.h
@@ -53,7 +53,7 @@ public:
/// @param io_service IO service.
/// @param socket_file_path Socket file path.
/// @param custom_response Custom response to be sent to the client.
- TestServerUnixSocket(IOService& io_service,
+ TestServerUnixSocket(const IOServicePtr& io_service,
const std::string& socket_file_path,
const std::string& custom_response = "");
@@ -123,7 +123,7 @@ private:
void signalRunning();
/// @brief IO service used by the tests.
- IOService& io_service_;
+ IOServicePtr io_service_;
/// @brief Server endpoint.
boost::asio::local::stream_protocol::endpoint server_endpoint_;