src/media/audio/audio_core/test/api/audio_capturer_test.cc
// Setting the reference clock should fail, if at least one capture packet is active
Setting the reference clock should fail, if at least one capture packet is active
Setting the reference clock should fail if at least one capture packet is active
TEST_F(AudioCapturerClockTest, SetRefClock_DuringAsyncCaptureShouldDisconnect) {
  SetFormat();
  SetUpPayloadBuffer();
  audio_capturer_.events().OnPacketProduced = AddCallback("OnPacketProduced");
  audio_capturer_->StartAsyncCapture(1600);
  ExpectCallback();
  audio_capturer_->SetReferenceClock(clock::CloneOfMonotonic());
  ExpectDisconnect(audio_capturer_);
}
TEST_F ( AudioCapturerClockTest , SetRefClock_DuringAsyncCaptureShouldDisconnect ) { SetFormat ( ) ; SetUpPayloadBuffer ( ) ; audio_capturer_ . events ( ) . OnPacketProduced = AddCallback ( " " ) ; audio_capturer_ -> StartAsyncCapture ( 1600 ) ; ExpectCallback ( ) ; audio_capturer_ -> SetReferenceClock ( clock :: CloneOfMonotonic ( ) ) ; ExpectDisconnect ( audio_capturer_ ) ; }
Setting the reference clock should fail, if at least one capture packet is active
Setting the reference clock should fail if at least one capture packet is active