Commit 9d6bf7e7 authored by Max Kellermann's avatar Max Kellermann

test/run_avahi: refactor to RunZeroconf (both avahi and bonjour)

parent 5f34508a
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "event/Loop.hxx" #include "event/Loop.hxx"
#include "ShutdownHandler.hxx" #include "ShutdownHandler.hxx"
#include "zeroconf/avahi/Helper.hxx" #include "zeroconf/Helper.hxx"
#include <stdlib.h> #include <stdlib.h>
...@@ -29,7 +29,7 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char **argv) ...@@ -29,7 +29,7 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char **argv)
EventLoop event_loop; EventLoop event_loop;
const ShutdownHandler shutdown_handler(event_loop); const ShutdownHandler shutdown_handler(event_loop);
const auto helper = AvahiInit(event_loop, "test", 1234); const ZeroconfHelper helper(event_loop, "test", 1234);
event_loop.Run(); event_loop.Run();
......
...@@ -105,10 +105,10 @@ test('TestIcu', executable( ...@@ -105,10 +105,10 @@ test('TestIcu', executable(
], ],
)) ))
if avahi_dep.found() if zeroconf_dep.found()
executable( executable(
'run_avahi', 'RunZeroconf',
'run_avahi.cxx', 'RunZeroconf.cxx',
'ShutdownHandler.cxx', 'ShutdownHandler.cxx',
include_directories: inc, include_directories: inc,
dependencies: [ dependencies: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment