summaryrefslogtreecommitdiff
path: root/lib/librte_telemetry/rte_telemetry_socket_tests.h
blob: db9167c5d50fede3284cfd26ff2aa477c5215515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright(c) 2018 Intel Corporation
 */

#include <stdbool.h>

#include "rte_telemetry_internal.h"

#ifndef _RTE_TELEMETRY_SOCKET_TESTING_H_
#define _RTE_TELEMETRY_SOCKET_TESTING_H_

int32_t
rte_telemetry_json_socket_message_test(struct telemetry_impl *telemetry,
	int fd);

int32_t
rte_telemetry_invalid_json_test(struct telemetry_impl *telemetry, int fd);

int32_t
rte_telemetry_valid_json_test(struct telemetry_impl *telemetry, int fd);

int32_t
rte_telemetry_json_contents_test(struct telemetry_impl *telemetry, int fd);

int32_t
rte_telemetry_json_empty_test(struct telemetry_impl *telemetry, int fd);

int32_t
rte_telemetry_socket_register_test(struct telemetry_impl *telemetry, int *fd,
	int send_fd, int recv_fd);

int32_t
rte_telemetry_socket_test_setup(struct telemetry_impl *telemetry, int *send_fd,
	int *recv_fd);

#endif