aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>2021-10-28 10:24:13 +0000
committerŁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>2021-10-28 10:25:50 +0000
commit1fcb67167802ca64533d1211992023d4fb03fa90 (patch)
treeb0609b14fc3f42ec0bfe4afc2f48c33e00d101bc
parent0ddc5de9d6ea2aeda3def7daeb972b366108a7e5 (diff)
downloadbt-1fcb67167802ca64533d1211992023d4fb03fa90.tar.gz
leaudio: Fix unit tests
Add missing part of the patch: 60ceeb81d leaudio: Fix background connection Bug: 150670922 Tag: #feature Sponsor: jpawlowski@ Test: atest --host bluetooth_le_audio_client_test Change-Id: I0523df4b75ed4a0eb0018eecb95cf634788c7092
-rw-r--r--bta/le_audio/le_audio_client_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/bta/le_audio/le_audio_client_test.cc b/bta/le_audio/le_audio_client_test.cc
index 7a0b31858..8158ef299 100644
--- a/bta/le_audio/le_audio_client_test.cc
+++ b/bta/le_audio/le_audio_client_test.cc
@@ -1847,7 +1847,7 @@ TEST_F(UnicastTestNoInit, LoadStoredEarbudsCsisGrouped) {
.Times(1);
ON_CALL(mock_btm_interface_, BTM_IsEncrypted(test_address0, _))
.WillByDefault(DoAll(Return(true)));
- EXPECT_CALL(mock_gatt_interface_, Open(gatt_if, test_address0, true, _))
+ EXPECT_CALL(mock_gatt_interface_, Open(gatt_if, test_address0, false, _))
.Times(1);
// Expect stored device1 to connect automatically
@@ -1856,7 +1856,7 @@ TEST_F(UnicastTestNoInit, LoadStoredEarbudsCsisGrouped) {
.Times(1);
ON_CALL(mock_btm_interface_, BTM_IsEncrypted(test_address1, _))
.WillByDefault(DoAll(Return(true)));
- EXPECT_CALL(mock_gatt_interface_, Open(gatt_if, test_address1, true, _))
+ EXPECT_CALL(mock_gatt_interface_, Open(gatt_if, test_address1, false, _))
.Times(1);
ON_CALL(mock_groups_module_, GetGroupId(_, _))
@@ -1942,7 +1942,7 @@ TEST_F(UnicastTestNoInit, LoadStoredEarbudsCsisGroupedDifferently) {
.Times(1);
ON_CALL(mock_btm_interface_, BTM_IsEncrypted(test_address0, _))
.WillByDefault(DoAll(Return(true)));
- EXPECT_CALL(mock_gatt_interface_, Open(gatt_if, test_address0, true, _))
+ EXPECT_CALL(mock_gatt_interface_, Open(gatt_if, test_address0, false, _))
.Times(1);
// Expect stored device1 to NOT connect automatically
@@ -1951,7 +1951,7 @@ TEST_F(UnicastTestNoInit, LoadStoredEarbudsCsisGroupedDifferently) {
.Times(0);
ON_CALL(mock_btm_interface_, BTM_IsEncrypted(test_address1, _))
.WillByDefault(DoAll(Return(true)));
- EXPECT_CALL(mock_gatt_interface_, Open(gatt_if, test_address1, true, _))
+ EXPECT_CALL(mock_gatt_interface_, Open(gatt_if, test_address1, false, _))
.Times(0);
// Initialize