summaryrefslogtreecommitdiffstats
path: root/tests/io_mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/io_mock.h')
-rw-r--r--tests/io_mock.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/io_mock.h b/tests/io_mock.h
index a36602a44..9e92a9d3e 100644
--- a/tests/io_mock.h
+++ b/tests/io_mock.h
@@ -34,11 +34,9 @@
/* Required for `FILE *` */
#include <stdio.h>
-/*
- * Explicitly including the header because some tests are using libusb structs
- * in depth, opaque symbols are not sufficient.
- */
-#include <libusb.h>
+#include <stdint.h>
+
+#include "usb_unittests.h"
/* Address value needs fit into uint8_t. */
#define USB_DEVICE_ADDRESS 19