Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8f79be6 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Fix unit tests

Add missing part of the patch:
fae37c18 leaudio: Fix background connection

Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: atest --host bluetooth_le_audio_client_test
Change-Id: I0523df4b75ed4a0eb0018eecb95cf634788c7092
parent a35337eb
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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