src/media/audio/drivers/test/admin_test.cc
// Request that the driver start the ring buffer engine, responding with the start_time.
// This method assumes that the ring buffer VMO was received in a successful GetBuffer response.
Request that the driver start the ring buffer engine, responding with the start_time.
This method assumes that the ring buffer VMO was received in a successful GetBuffer response.
Request that the driver start the ring buffer engine responding with the start_time . This method assumes that the ring buffer VMO was received in a successful GetBuffer response .
void AdminTest::RequestStart() {
  if (device_access_denied()) {
    return;
  }
  ASSERT_TRUE(ring_buffer_ready_);
  auto send_time = zx::clock::get_monotonic().get();
  ring_buffer_->Start([this](int64_t start_time) {
    start_time_ = start_time;
    received_start_ = true;
  });
  RunLoopUntil([this]() { return received_start_ || device_access_denied(); });
  EXPECT_GT(start_time_, send_time);
}
void AdminTest :: RequestStart ( ) { if ( device_access_denied ( ) ) { return ; } ASSERT_TRUE ( ring_buffer_ready_ ) ; auto send_time = zx :: clock :: get_monotonic ( ) . get ( ) ; ring_buffer_ -> Start ( [ this ] ( int64_t start_time ) { start_time_ = start_time ; received_start_ = true ; } ) ; RunLoopUntil ( [ this ] ( ) { return received_start_ || device_access_denied ( ) ; } ) ; EXPECT_GT ( start_time_ , send_time ) ; }
Request that the driver start the ring buffer engine, responding with the start_time.
Request that the driver start the ring buffer engine responding with the start_time .