From 28812dda5db637a12366a672272e8a498180c5f7 Mon Sep 17 00:00:00 2001 From: Christoph Lipka Date: Wed, 12 Oct 2016 16:26:30 +0900 Subject: Unit Test: Event handling Unit tests for DLT Daemon connection and event handling Signed-off-by: Christoph Lipka --- src/daemon/dlt_daemon_connection.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/daemon/dlt_daemon_connection.h') diff --git a/src/daemon/dlt_daemon_connection.h b/src/daemon/dlt_daemon_connection.h index aa21a11..00759c6 100644 --- a/src/daemon/dlt_daemon_connection.h +++ b/src/daemon/dlt_daemon_connection.h @@ -48,4 +48,16 @@ void dlt_connection_destroy(DltConnection *); void *dlt_connection_get_callback(DltConnection *); +#ifdef DLT_UNIT_TESTS +int dlt_connection_send(DltConnection *conn, + void *msg, + size_t msg_size); + +void dlt_connection_destroy_receiver(DltConnection *con); + +DltReceiver *dlt_connection_get_receiver(DltDaemonLocal *daemon_local, + DltConnectionType type, + int fd); +#endif + #endif /* DLT_DAEMON_CONNECTION_H */ -- cgit v1.2.1