#ifndef LIBYTDLP_TEST_FIXTURE_H
#define LIBYTDLP_TEST_FIXTURE_H
#include <stddef.h>
#ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
typedef HANDLE ly_process;
#else
#include <sys/types.h>
typedef pid_t ly_process;
#endif
ly_process spawn_fixture(const char* bytes, const char* rate, int* port_out);
void stop_fixture(ly_process child);
void make_tmpdir(char* path, size_t len);
void remove_tree(const char* dir);
int dir_is_empty(const char* dir);
int closed_loopback_port(void);
#endif