test/run_avahi: refactor to RunZeroconf (both avahi and bonjour)
This commit is contained in:
		| @@ -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) | |||||||
| 	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( | |||||||
|   ], |   ], | ||||||
| )) | )) | ||||||
|  |  | ||||||
| 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: [ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann