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

This commit is contained in:
Max Kellermann 2021-02-24 14:52:02 +01:00
parent 5f34508aae
commit 9d6bf7e720
2 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@
#include "event/Loop.hxx"
#include "ShutdownHandler.hxx"
#include "zeroconf/avahi/Helper.hxx"
#include "zeroconf/Helper.hxx"
#include <stdlib.h>
@ -29,7 +29,7 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char **argv)
EventLoop 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();

View File

@ -105,10 +105,10 @@ test('TestIcu', executable(
],
))
if avahi_dep.found()
if zeroconf_dep.found()
executable(
'run_avahi',
'run_avahi.cxx',
'RunZeroconf',
'RunZeroconf.cxx',
'ShutdownHandler.cxx',
include_directories: inc,
dependencies: [