Home
last modified time | relevance | path

Searched refs:tfds (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc/test/core/iomgr/
Dpollset_set_test.cc117 static void init_test_fds(test_fd* tfds, const int num_fds) { in init_test_fds() argument
119 GPR_ASSERT(GRPC_ERROR_NONE == grpc_wakeup_fd_init(&tfds[i].wakeup_fd)); in init_test_fds()
120 tfds[i].fd = grpc_fd_create(GRPC_WAKEUP_FD_GET_READ_FD(&tfds[i].wakeup_fd), in init_test_fds()
122 reset_test_fd(&tfds[i]); in init_test_fds()
126 static void cleanup_test_fds(test_fd* tfds, const int num_fds) { in cleanup_test_fds() argument
130 grpc_fd_shutdown(tfds[i].fd, in cleanup_test_fds()
139 grpc_fd_orphan(tfds[i].fd, nullptr, &release_fd, "test_fd_cleanup"); in cleanup_test_fds()
142 grpc_wakeup_fd_destroy(&tfds[i].wakeup_fd); in cleanup_test_fds()
146 static void make_test_fds_readable(test_fd* tfds, const int num_fds) { in make_test_fds_readable() argument
148 GPR_ASSERT(GRPC_ERROR_NONE == grpc_wakeup_fd_wakeup(&tfds[i].wakeup_fd)); in make_test_fds_readable()
[all …]
Dev_epollsig_linux_test.cc49 static void test_fd_init(test_fd* tfds, int* fds, int num_fds) { in test_fd_init() argument
68 tfds[i].inner_fd = fds[i]; in test_fd_init()
69 tfds[i].fd = grpc_fd_create(fds[i], "test_fd", false); in test_fd_init()
73 static void test_fd_cleanup(test_fd* tfds, int num_fds) { in test_fd_cleanup() argument
78 grpc_fd_shutdown(tfds[i].fd, in test_fd_cleanup()
82 grpc_fd_orphan(tfds[i].fd, nullptr, &release_fd, "test_fd_cleanup"); in test_fd_cleanup()
85 GPR_ASSERT(release_fd == tfds[i].inner_fd); in test_fd_cleanup()
86 close(tfds[i].inner_fd); in test_fd_cleanup()
133 test_fd tfds[NUM_FDS]; in test_add_fd_to_pollset() local
139 test_fd_init(tfds, fds, NUM_FDS); in test_add_fd_to_pollset()
[all …]