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 stopped)
Setting the reference clock should fail, any time after capture has started (even if stopped)
Setting the reference clock should fail any time after capture has started ( even if stopped )
TEST_F(AudioCapturerClockTest, SetRefClock_AfterAsyncCaptureShouldDisconnect) {
  SetFormat();
  SetUpPayloadBuffer();
  audio_capturer_.events().OnPacketProduced = AddCallback("OnPacketProduced");
  audio_capturer_->StartAsyncCapture(1600);
  ExpectCallback();
  audio_capturer_->StopAsyncCapture(AddCallback("StopAsyncCapture"));
  ExpectCallback();
  audio_capturer_->SetReferenceClock(clock::AdjustableCloneOfMonotonic());
  ExpectDisconnect(audio_capturer_);
}
TEST_F ( AudioCapturerClockTest , SetRefClock_AfterAsyncCaptureShouldDisconnect ) { SetFormat ( ) ; SetUpPayloadBuffer ( ) ; audio_capturer_ . events ( ) . OnPacketProduced = AddCallback ( " " ) ; audio_capturer_ -> StartAsyncCapture ( 1600 ) ; ExpectCallback ( ) ; audio_capturer_ -> StopAsyncCapture ( AddCallback ( " " ) ) ; ExpectCallback ( ) ; audio_capturer_ -> SetReferenceClock ( clock :: AdjustableCloneOfMonotonic ( ) ) ; ExpectDisconnect ( audio_capturer_ ) ; }
Setting the reference clock should fail, any time after capture has started (even if stopped)
Setting the reference clock should fail any time after capture has started ( even if stopped )