Skip to content

Commit 415021a

Browse files
committed
refactor(usb_host_mock): Adapted hub_root_start and hub_root_stop api
1 parent fbc08d7 commit 415021a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

host/usb/test/host_test/usb_host_layer_test/main/usb_host_install_unit_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ SCENARIO("USB Host install")
199199
hub_install_ExpectAnyArgsAndReturn(ESP_OK);
200200

201201
// Make hub_root_start() to pass
202-
hub_root_start_ExpectAndReturn(ESP_OK);
202+
hub_root_start_ExpectAndReturn(0, ESP_OK);
203203

204204
// Call the DUT function, expect ESP_OK
205205
REQUIRE(ESP_OK == usb_host_install(&usb_host_config));
@@ -228,7 +228,7 @@ SCENARIO("USB Host post-uninstall")
228228
SECTION("Successfully uninstall the USB Host driver") {
229229

230230
// Make the hub_root_stop() to pass
231-
hub_root_stop_ExpectAndReturn(ESP_OK);
231+
hub_root_stop_ExpectAndReturn(0, ESP_OK);
232232

233233
// Make uninstalling of all the drivers to pass
234234
hub_uninstall_ExpectAndReturn(ESP_OK);

0 commit comments

Comments
 (0)