diff --git a/unit/test-lib.c b/unit/test-lib.c
index def133a..8b039cb 100644
--- a/unit/test-lib.c
+++ b/unit/test-lib.c
#include "lib/sdp.h"
#include "lib/sdp_lib.h"
+static void test_ntoh64(void)
+{
+ uint64_t test = 0x123456789abcdef;
+
+ g_assert(ntoh64(test) == be64toh(test));
+}
+
+static void test_hton64(void)
+{
+ uint64_t test = 0x123456789abcdef;
+
+ g_assert(hton64(test) == htobe64(test));
+}
+
static void test_sdp_get_access_protos_valid(void)
{
sdp_record_t *rec;
{
g_test_init(&argc, &argv, NULL);
+ g_test_add_func("/lib/ntoh64", test_ntoh64);
+ g_test_add_func("/lib/hton64", test_hton64);
+
g_test_add_func("/lib/sdp_get_access_protos/valid",
test_sdp_get_access_protos_valid);
g_test_add_func("/lib/sdp_get_access_protos/nodata",