diff options
Diffstat (limited to 'tests/test')
| -rw-r--r-- | tests/test/host/test_hid_host.c (renamed from tests/test/host/test_host_hid.c) | 0 | ||||
| -rw-r--r-- | tests/test/host/test_hid_host_keyboard.c (renamed from tests/test/host/test_host_hid_keyboard.c) | 11 |
2 files changed, 9 insertions, 2 deletions
diff --git a/tests/test/host/test_host_hid.c b/tests/test/host/test_hid_host.c index 3891034e5..3891034e5 100644 --- a/tests/test/host/test_host_hid.c +++ b/tests/test/host/test_hid_host.c diff --git a/tests/test/host/test_host_hid_keyboard.c b/tests/test/host/test_hid_host_keyboard.c index cf5a541d3..e02c18a84 100644 --- a/tests/test/host/test_host_hid_keyboard.c +++ b/tests/test/host/test_hid_host_keyboard.c @@ -35,6 +35,10 @@ * This file is part of the tiny usb stack. */ +#include "unity.h" +#include "hid.h" +#include "hid_host.h" + void setUp(void) { } @@ -43,7 +47,10 @@ void tearDown(void) { } -void test_() +void test_keyboard_get_invalid_parameter() { - TEST_IGNORE(); + tusb_interface_keyboard_handle_t handle; + tusb_keyboard_report_t report; + TEST_ASSERT_FALSE (tusb_host_keyboard_get(NULL, &report)); + TEST_ASSERT_FALSE (tusb_host_keyboard_get(&handle, NULL)); } |
