summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-01-18 14:39:42 +0700
committerhathach <[email protected]>2013-01-18 14:39:42 +0700
commitd8c8b9e38ad94ab84c24f22c2ecb79ce4d78b7ba (patch)
tree1090e26f45a534e5113f28d82f8381eef274e358 /tests
parent7976e2fd55d33a0bf8a74a729eb246a8842d58ee (diff)
add ASSERT POINTER support
add hid host and separate hid host & device update host project setting with EA4357 board add para checking test for hid host
Diffstat (limited to 'tests')
-rw-r--r--tests/project.yml2
-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));
}