refractor hub api
fix all test build errors
This commit is contained in:
@@ -70,7 +70,7 @@ void tearDown(void)
|
||||
|
||||
void test_isr_device_connect_highspeed(void)
|
||||
{
|
||||
usbh_device_plugged_isr_Expect(hostid);
|
||||
usbh_hcd_rhport_plugged_isr_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_device_plugged_isr_Expect(hostid);
|
||||
usbh_hcd_rhport_plugged_isr_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_device_plugged_isr_Expect(hostid);
|
||||
usbh_hcd_rhport_plugged_isr_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_device_unplugged_isr_Expect(hostid);
|
||||
usbh_hcd_rhport_unplugged_isr_Expect(hostid);
|
||||
|
||||
//------------- Code Under Test -------------//
|
||||
ehci_controller_device_unplug(hostid);
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
|
||||
#include "hcd.h"
|
||||
#include "usbh_hcd.h"
|
||||
#include "hub.h"
|
||||
#include "usbh.h"
|
||||
#include "ehci.h"
|
||||
#include "ehci_controller_fake.h"
|
||||
|
||||
Reference in New Issue
Block a user