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

Commit 75aee19b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix a test" into main

parents ea427167 f3ca7a18
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ using ::bluetooth::le_audio::has::HasPreset;

using ::testing::_;
using ::testing::AnyNumber;
using ::testing::AtLeast;
using ::testing::DoAll;
using ::testing::DoDefault;
using ::testing::Invoke;
@@ -1242,7 +1243,7 @@ TEST_F(HasClientTest, test_disconnect_connected_without_hap_connect_only_request
  TestConnect(test_address);

  EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)).Times(1);
  EXPECT_CALL(gatt_queue, Clean(1)).Times(1);
  EXPECT_CALL(gatt_queue, Clean(1)).Times(AtLeast(1));
  TestDisconnect(test_address, 1);
}

@@ -1257,7 +1258,7 @@ TEST_F(HasClientTest, test_disconnect_connected) {
  TestConnect(test_address);

  EXPECT_CALL(*callbacks, OnConnectionState(ConnectionState::DISCONNECTED, test_address)).Times(1);
  EXPECT_CALL(gatt_queue, Clean(1)).Times(1);
  EXPECT_CALL(gatt_queue, Clean(1)).Times(AtLeast(1));
  TestDisconnect(test_address, 1);
}

@@ -1632,7 +1633,7 @@ TEST_F(HasClientTest, test_cp_not_usable_read_all_presets) {
              OnDeviceAvailable(test_address, bluetooth::has::kFeatureBitHearingAidTypeBanded |
                                                      bluetooth::has::kFeatureBitWritablePresets |
                                                      bluetooth::has::kFeatureBitDynamicPresets));
  EXPECT_CALL(gatt_queue, Clean(1)).Times(1);
  EXPECT_CALL(gatt_queue, Clean(1)).Times(AtLeast(1));

  TestConnect(test_address);
}