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

Commit 275a2fda authored by Grzegorz Kolodziejczyk's avatar Grzegorz Kolodziejczyk Committed by Automerger Merge Worker
Browse files

Merge "le_audio: Sync on main loop on MicrophoneAttachToCurrentMediaScenario" am: d2a8d1bc

parents 7833a6b7 d2a8d1bc
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -4285,8 +4285,15 @@ TEST_F(UnicastTest, MicrophoneAttachToCurrentMediaScenario) {
  EXPECT_CALL(*mock_le_audio_source_hal_client_, Stop()).Times(1);
  EXPECT_CALL(*mock_le_audio_source_hal_client_, OnDestroyed()).Times(1);
  EXPECT_CALL(*mock_le_audio_sink_hal_client_, OnDestroyed()).Times(1);
  LeAudioClient::Get()->GroupSetActive(bluetooth::groups::kGroupUnknown);
  do_in_main_thread(
      FROM_HERE, base::BindOnce(
                     [](LeAudioClient* client) {
                       client->GroupSetActive(bluetooth::groups::kGroupUnknown);
                     },
                     LeAudioClient::Get()));
  Mock::VerifyAndClearExpectations(&mock_le_audio_source_hal_client_);

  SyncOnMainLoop();
}

TEST_F(UnicastTest, UpdateNotSupportedContextType) {