add test & code for TUSB_EVENT_INTERFACE_OPEN for tusbh_hid_keyboard_isr tusbh_hid_mouse_isr

This commit is contained in:
hathach
2013-04-09 13:28:07 +07:00
parent a6cf4f228e
commit e6a44b3fe9
4 changed files with 48 additions and 25 deletions
+1
View File
@@ -125,6 +125,7 @@ void test_keyboard_open_ok(void)
hidh_init();
hcd_pipe_open_ExpectAndReturn(dev_addr, p_kdb_endpoint_desc, TUSB_CLASS_HID, pipe_hdl);
tusbh_hid_keyboard_isr_Expect(dev_addr, 0, TUSB_EVENT_INTERFACE_OPEN);
//------------- Code Under TEST -------------//
TEST_ASSERT_EQUAL(TUSB_ERROR_NONE, hidh_open_subtask(dev_addr, p_kbd_interface_desc, &length));