diff options
| author | hathach <[email protected]> | 2019-12-24 21:13:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-12-24 21:13:05 +0700 |
| commit | 2caa1ac07804bef581cd30e6fc5057a6515fb094 (patch) | |
| tree | e25eb313d1c0b5219c7f24fe4fded4178969ed2f /test | |
| parent | a1c94067f778dc6f055c132ca18c870a107910be (diff) | |
| parent | 21cc8237e1130c489bc4ef3b7dea1c41eef25d56 (diff) | |
Merge branch 'master' into develop
Diffstat (limited to 'test')
| -rw-r--r-- | test/test/device/usbd/test_usbd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test/device/usbd/test_usbd.c b/test/test/device/usbd/test_usbd.c index c59d94c2c..245353106 100644 --- a/test/test/device/usbd/test_usbd.c +++ b/test/test/device/usbd/test_usbd.c @@ -149,6 +149,8 @@ void test_usbd_get_device_descriptor(void) // status dcd_edpt_xfer_ExpectAndReturn(rhport, EDPT_CTRL_OUT, NULL, 0, true); + dcd_event_xfer_complete(rhport, EDPT_CTRL_OUT, 0, 0, false); + dcd_edpt0_status_complete_ExpectWithArray(rhport, &req_get_desc_device, 1); tud_task(); } @@ -180,6 +182,8 @@ void test_usbd_get_configuration_descriptor(void) // status dcd_edpt_xfer_ExpectAndReturn(rhport, EDPT_CTRL_OUT, NULL, 0, true); + dcd_event_xfer_complete(rhport, EDPT_CTRL_OUT, 0, 0, false); + dcd_edpt0_status_complete_ExpectWithArray(rhport, &req_get_desc_configuration, 1); tud_task(); } @@ -231,6 +235,7 @@ void test_usbd_control_in_zlp(void) // Status dcd_edpt_xfer_ExpectAndReturn(rhport, EDPT_CTRL_OUT, NULL, 0, true); dcd_event_xfer_complete(rhport, EDPT_CTRL_OUT, 0, 0, false); + dcd_edpt0_status_complete_ExpectWithArray(rhport, &req_get_desc_configuration, 1); tud_task(); } |
