src/media/audio/audio_core/test/api/audio_capturer_test.cc
// Setting the reference clock should fail, any time after capture has started (even if cancelled)
Setting the reference clock should fail, any time after capture has started (even if cancelled)
Setting the reference clock should fail any time after capture has started ( even if cancelled )
TEST_F(AudioCapturerClockTest, SetRefClock_CaptureCancelledShouldDisconnect) {
  SetFormat();
  SetUpPayloadBuffer();
  audio_capturer_->CaptureAt(0, 0, 8000, [](fuchsia::media::StreamPacket) {});
  audio_capturer_->DiscardAllPackets(AddCallback("DiscardAllPackets"));
  ExpectCallback();
  audio_capturer_->SetReferenceClock(clock::AdjustableCloneOfMonotonic());
  ExpectDisconnect(audio_capturer_);
}
TEST_F ( AudioCapturerClockTest , SetRefClock_CaptureCancelledShouldDisconnect ) { SetFormat ( ) ; SetUpPayloadBuffer ( ) ; audio_capturer_ -> CaptureAt ( 0 , 0 , 8000 , [ ] ( fuchsia :: media :: StreamPacket ) { } ) ; audio_capturer_ -> DiscardAllPackets ( AddCallback ( " " ) ) ; ExpectCallback ( ) ; audio_capturer_ -> SetReferenceClock ( clock :: AdjustableCloneOfMonotonic ( ) ) ; ExpectDisconnect ( audio_capturer_ ) ; }
Setting the reference clock should fail, any time after capture has started (even if cancelled)
Setting the reference clock should fail any time after capture has started ( even if cancelled )