src/media/audio/drivers/test/admin_test.cc
// Set a position notification that, if called, automatically failed. We use this when we expect to
// NOT receive any position notifications. Although calling WatchClockRecoveryPositionInfo should
// clear any previously registered callback, the callback might already be dispatched to us and
// waiting, so we first clear the watch_for_next_position_notification_ flag to 'nerf' it.
Set a position notification that, if called, automatically failed. We use this when we expect to
NOT receive any position notifications. Although calling WatchClockRecoveryPositionInfo should
clear any previously registered callback, the callback might already be dispatched to us and
waiting, so we first clear the watch_for_next_position_notification_ flag to 'nerf' it.
Set a position notification that if called automatically failed . We use this when we expect to NOT receive any position notifications . Although calling WatchClockRecoveryPositionInfo should clear any previously registered callback the callback might already be dispatched to us and waiting so we first clear the watch_for_next_position_notification_ flag to ' nerf ' it .
void AdminTest::SetFailingPositionNotification() {
  if (device_access_denied()) {
    return;
  }
  watch_for_next_position_notification_ = false;
  ring_buffer_->WatchClockRecoveryPositionInfo(
      [](fuchsia::hardware::audio::RingBufferPositionInfo) { FAIL(); });
}
void AdminTest :: SetFailingPositionNotification ( ) { if ( device_access_denied ( ) ) { return ; } watch_for_next_position_notification_ = false ; ring_buffer_ -> WatchClockRecoveryPositionInfo ( [ ] ( fuchsia :: hardware :: audio :: RingBufferPositionInfo ) { FAIL ( ) ; } ) ; }
Set a position notification that, if called, automatically failed.
Set a position notification that if called automatically failed .
// Disable any last pending notification from re-queueing itself.