diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/project.yml | 2 | ||||
| -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 |
3 files changed, 10 insertions, 3 deletions
diff --git a/tests/project.yml b/tests/project.yml index 84661367e..ec4c6cb42 100644 --- a/tests/project.yml +++ b/tests/project.yml @@ -47,7 +47,7 @@ - _TEST_ - MCU=MCU_LPC43XX - CORE_M4 - - __CODE_RED + - __CODE_RED :test_preprocess: - *common_defines - _TEST_ 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)); } |
