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

Commit 5c01c59b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents f17bb749 75f57458
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;