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

Commit 9515f86f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "le_audio: Update client test cases for monitor modes" into main am:...

Merge "le_audio: Update client test cases for monitor modes" into main am: 5c01c59b am: ee0c1266

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/3447171



Change-Id: Ia3208bad45c539d5f54a695fcb91719b68393ddc
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents a8de6080 ee0c1266
Loading
Loading
Loading
Loading
+104 −92
Original line number Diff line number Diff line
@@ -12245,6 +12245,11 @@ TEST_F(UnicastTestHandoverMode, SetSinkMonitorModeWhileUnicastIsActive) {
  // Stop
  StopStreaming(group_id, true);
  if (com::android::bluetooth::flags::leaudio_use_audio_recording_listener()) {
    // simulate suspend timeout passed, alarm executing
    fake_osi_alarm_set_on_mloop_.cb(fake_osi_alarm_set_on_mloop_.data);
    SyncOnMainLoop();
  } else {
    // Check if cache configuration is still present
    ASSERT_TRUE(group->GetCachedConfiguration(types::LeAudioContextType::CONVERSATIONAL)
                        ->confs.get(le_audio::types::kLeAudioDirectionSink)
@@ -12326,6 +12331,7 @@ TEST_F(UnicastTestHandoverMode, SetSinkMonitorModeWhileUnicastIsActive) {
    SyncOnMainLoop();
    Mock::VerifyAndClearExpectations(mock_le_audio_sink_hal_client_);
  }
}
TEST_F(UnicastTestHandoverMode, SetSinkMonitorModeWhileUnicastIsInactive) {
  uint8_t group_size = 2;
@@ -12392,6 +12398,11 @@ TEST_F(UnicastTestHandoverMode, SetSinkMonitorModeWhileUnicastIsInactive) {
  // Stop
  StopStreaming(group_id, true);
  if (com::android::bluetooth::flags::leaudio_use_audio_recording_listener()) {
    // simulate suspend timeout passed, alarm executing
    fake_osi_alarm_set_on_mloop_.cb(fake_osi_alarm_set_on_mloop_.data);
    SyncOnMainLoop();
  } else {
    // Check if cache configuration is still present
    ASSERT_TRUE(group->GetCachedConfiguration(types::LeAudioContextType::CONVERSATIONAL)
                        ->confs.get(le_audio::types::kLeAudioDirectionSink)
@@ -12420,6 +12431,7 @@ TEST_F(UnicastTestHandoverMode, SetSinkMonitorModeWhileUnicastIsInactive) {
                        ->confs.get(le_audio::types::kLeAudioDirectionSource)
                        .size());
  }
}
TEST_F(UnicastTestHandoverMode, ClearSinkMonitorModeWhileUnicastIsActive) {
  uint8_t group_size = 2;