refactor hcd api
This commit is contained in:
@@ -70,7 +70,7 @@ void tearDown(void)
|
||||
|
||||
void test_isr_device_connect_highspeed(void)
|
||||
{
|
||||
usbh_hcd_rhport_plugged_isr_Expect(hostid);
|
||||
hcd_event_device_attach_Expect(hostid);
|
||||
|
||||
//------------- Code Under Test -------------//
|
||||
ehci_controller_device_plug(hostid, TUSB_SPEED_HIGH);
|
||||
@@ -78,7 +78,7 @@ void test_isr_device_connect_highspeed(void)
|
||||
|
||||
void test_isr_device_connect_fullspeed(void)
|
||||
{
|
||||
usbh_hcd_rhport_plugged_isr_Expect(hostid);
|
||||
hcd_event_device_attach_Expect(hostid);
|
||||
|
||||
//------------- Code Under Test -------------//
|
||||
ehci_controller_device_plug(hostid, TUSB_SPEED_FULL);
|
||||
@@ -86,7 +86,7 @@ void test_isr_device_connect_fullspeed(void)
|
||||
|
||||
void test_isr_device_connect_slowspeed(void)
|
||||
{
|
||||
usbh_hcd_rhport_plugged_isr_Expect(hostid);
|
||||
hcd_event_device_attach_Expect(hostid);
|
||||
|
||||
//------------- Code Under Test -------------//
|
||||
ehci_controller_device_plug(hostid, TUSB_SPEED_LOW);
|
||||
@@ -94,7 +94,7 @@ void test_isr_device_connect_slowspeed(void)
|
||||
|
||||
void test_isr_device_disconnect(void)
|
||||
{
|
||||
usbh_hcd_rhport_unplugged_isr_Expect(hostid);
|
||||
hcd_event_device_remove_Expect(hostid);
|
||||
|
||||
//------------- Code Under Test -------------//
|
||||
ehci_controller_device_unplug(hostid);
|
||||
|
||||
Reference in New Issue
Block a user