diff options
| author | hathach <[email protected]> | 2013-03-25 13:51:44 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-25 13:51:44 +0700 |
| commit | 45db7b4a533c8f4693167e120cc8285b29b4794f (patch) | |
| tree | 467805f77fbabc8acaeca8f4aad00e3939709566 /tests | |
| parent | ddeec330fabaa1b41cbd359e268a84334cfac65e (diff) | |
able to build test hidh
hack include in hid_host_keyboard.h
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test/host/hid/test_hidh.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/tests/test/host/hid/test_hidh.c b/tests/test/host/hid/test_hidh.c index 838805c63..294fcecfb 100644 --- a/tests/test/host/hid/test_hidh.c +++ b/tests/test/host/hid/test_hidh.c @@ -35,17 +35,34 @@ * This file is part of the tiny usb stack. */ +#include "stdlib.h" #include "unity.h" +#include "errors.h" + +#include "mock_osal.h" +#include "mock_hcd.h" +#include "mock_usbh.h" +#include "mock_hid_host_keyboard.h" + +#include "hid_host.h" + +uint8_t dev_addr; +uint8_t instance_num; void setUp(void) { + instance_num = 0; + dev_addr = RANDOM(TUSB_CFG_HOST_DEVICE_MAX)+1; } void tearDown(void) { } -void test_hidh() +void test_hidh_init() { - TEST_IGNORE(); +// hidh_keyboard_init_Expect(); +// //------------- Code Under TEST -------------// +// hidh_init(); + TEST_FAIL(); } |
