From 9d6bf7e720f4e1f8cf3b4e749d5a16a355375896 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 24 Feb 2021 14:52:02 +0100 Subject: [PATCH] test/run_avahi: refactor to RunZeroconf (both avahi and bonjour) --- test/{run_avahi.cxx => RunZeroconf.cxx} | 4 ++-- test/meson.build | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename test/{run_avahi.cxx => RunZeroconf.cxx} (91%) diff --git a/test/run_avahi.cxx b/test/RunZeroconf.cxx similarity index 91% rename from test/run_avahi.cxx rename to test/RunZeroconf.cxx index fe0c619d2..b1d730758 100644 --- a/test/run_avahi.cxx +++ b/test/RunZeroconf.cxx @@ -19,7 +19,7 @@ #include "event/Loop.hxx" #include "ShutdownHandler.hxx" -#include "zeroconf/avahi/Helper.hxx" +#include "zeroconf/Helper.hxx" #include @@ -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(); diff --git a/test/meson.build b/test/meson.build index e51cf7ac7..4a8ae563c 100644 --- a/test/meson.build +++ b/test/meson.build @@ -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: [