OSDN Git Service

Fix LE link_manager_test
authorHansong Zhang <hsz@google.com>
Tue, 2 Feb 2021 00:29:08 +0000 (16:29 -0800)
committerHansong Zhang <hsz@google.com>
Tue, 2 Feb 2021 00:32:08 +0000 (00:32 +0000)
Test: bluetooth_test_gd
Change-Id: Id90a43214e7334b6dde0fee4014208420cb94feb

gd/l2cap/le/internal/link_manager_test.cc

index c936d51..806ec99 100644 (file)
@@ -150,6 +150,7 @@ TEST_F(L2capLeLinkManagerTest, connect_fixed_channel_service_without_acl) {
   connection_management_handler->Post(common::BindOnce(
       &hci::acl_manager::LeConnectionManagementCallbacks::OnReadRemoteVersionInformationComplete,
       common::Unretained(connection_management_callbacks),
+      hci::ErrorCode::SUCCESS,
       0,
       0,
       0));
@@ -345,6 +346,7 @@ TEST_F(L2capLeLinkManagerTest, not_acquiring_channels_should_disconnect_acl_afte
   connection_management_handler->Post(common::BindOnce(
       &hci::acl_manager::LeConnectionManagementCallbacks::OnReadRemoteVersionInformationComplete,
       common::Unretained(connection_management_callbacks),
+      hci::ErrorCode::SUCCESS,
       0,
       0,
       0));
@@ -440,6 +442,7 @@ TEST_F(L2capLeLinkManagerTest, acquiring_channels_should_not_disconnect_acl_afte
   connection_management_handler->Post(common::BindOnce(
       &hci::acl_manager::LeConnectionManagementCallbacks::OnReadRemoteVersionInformationComplete,
       common::Unretained(connection_management_callbacks),
+      hci::ErrorCode::SUCCESS,
       0,
       0,
       0));
@@ -537,6 +540,7 @@ TEST_F(L2capLeLinkManagerTest, acquiring_and_releasing_channels_should_eventuall
   connection_management_handler->Post(common::BindOnce(
       &hci::acl_manager::LeConnectionManagementCallbacks::OnReadRemoteVersionInformationComplete,
       common::Unretained(connection_management_callbacks),
+      hci::ErrorCode::SUCCESS,
       0,
       0,
       0));