DPDK  18.11.11
rte_telemetry_socket_tests.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Intel Corporation
3  */
4 
5 #include <stdbool.h>
6 
7 #include "rte_telemetry_internal.h"
8 
9 #ifndef _RTE_TELEMETRY_SOCKET_TESTING_H_
10 #define _RTE_TELEMETRY_SOCKET_TESTING_H_
11 
12 int32_t
13 rte_telemetry_json_socket_message_test(struct telemetry_impl *telemetry,
14  int fd);
15 
16 int32_t
17 rte_telemetry_invalid_json_test(struct telemetry_impl *telemetry, int fd);
18 
19 int32_t
20 rte_telemetry_valid_json_test(struct telemetry_impl *telemetry, int fd);
21 
22 int32_t
23 rte_telemetry_json_contents_test(struct telemetry_impl *telemetry, int fd);
24 
25 int32_t
26 rte_telemetry_json_empty_test(struct telemetry_impl *telemetry, int fd);
27 
28 int32_t
29 rte_telemetry_socket_register_test(struct telemetry_impl *telemetry, int *fd,
30  int send_fd, int recv_fd);
31 
32 int32_t
33 rte_telemetry_socket_test_setup(struct telemetry_impl *telemetry, int *send_fd,
34  int *recv_fd);
35 
36 #endif