src/media/audio/audio_core/test/api/audio_capturer_test.cc
// Setting the reference clock should fail, once payload buffer has been added
Setting the reference clock should fail, once payload buffer has been added
Setting the reference clock should fail once payload buffer has been added
TEST_F(AudioCapturerClockTest, SetRefClock_DuringCaptureShouldDisconnect) {
  SetFormat();
  SetUpPayloadBuffer();
  audio_capturer_->CaptureAt(0, 0, 8000, [](fuchsia::media::StreamPacket) { FAIL(); });
  audio_capturer_->SetReferenceClock(clock::CloneOfMonotonic());
  ExpectDisconnect(audio_capturer_);
}
TEST_F ( AudioCapturerClockTest , SetRefClock_DuringCaptureShouldDisconnect ) { SetFormat ( ) ; SetUpPayloadBuffer ( ) ; audio_capturer_ -> CaptureAt ( 0 , 0 , 8000 , [ ] ( fuchsia :: media :: StreamPacket ) { FAIL ( ) ; } ) ; audio_capturer_ -> SetReferenceClock ( clock :: CloneOfMonotonic ( ) ) ; ExpectDisconnect ( audio_capturer_ ) ; }
Setting the reference clock should fail, once payload buffer has been added
Setting the reference clock should fail once payload buffer has been added