src/media/audio/audio_core/test/api/audio_capturer_test.cc
// Setting the reference clock should fail, even after all active capture packets have returned
Setting the reference clock should fail, even after all active capture packets have returned
Setting the reference clock should fail even after all active capture packets have returned
TEST_F(AudioCapturerClockTest, SetRefClock_AfterCaptureShouldDisconnect) {
  SetFormat();
  SetUpPayloadBuffer();
  audio_capturer_->CaptureAt(0, 0, 8000, AddCallback("CaptureAt"));
  ExpectCallback();
  audio_capturer_->SetReferenceClock(clock::AdjustableCloneOfMonotonic());
  ExpectDisconnect(audio_capturer_);
}
TEST_F ( AudioCapturerClockTest , SetRefClock_AfterCaptureShouldDisconnect ) { SetFormat ( ) ; SetUpPayloadBuffer ( ) ; audio_capturer_ -> CaptureAt ( 0 , 0 , 8000 , AddCallback ( " " ) ) ; ExpectCallback ( ) ; audio_capturer_ -> SetReferenceClock ( clock :: AdjustableCloneOfMonotonic ( ) ) ; ExpectDisconnect ( audio_capturer_ ) ; }
Setting the reference clock should fail, even after all active capture packets have returned
Setting the reference clock should fail even after all active capture packets have returned