class PositionTest

Defined at line 16 of file ../../src/media/audio/drivers/tests/position_test.h

This child of the AdminTest class is intended to run only in real-time capable environments.

Public Methods

void PositionTest (const DeviceEntry & dev_entry)

Defined at line 18 of file ../../src/media/audio/drivers/tests/position_test.h

Protected Methods

void EnablePositionNotifications ()

Request a position notification that will record timestamp/position and register for another.

Defined at line 20 of file ../../src/media/audio/drivers/tests/position_test.cc

void DisablePositionNotifications ()

Clear flag so that any pending position notification will not request yet another.

Defined at line 24 of file ../../src/media/audio/drivers/tests/position_test.h

void PositionNotificationCallback (fuchsia::hardware::audio::RingBufferPositionInfo position_info)

Defined at line 26 of file ../../src/media/audio/drivers/tests/position_test.cc

void ExpectPositionNotifyCount (uint32_t count)

Wait for the specified number of position notifications, then stop recording timestamp data.

...but don't DisablePositionNotifications, in case later notifications surface other issues.

Defined at line 84 of file ../../src/media/audio/drivers/tests/position_test.cc

void ValidatePositionInfo ()

What timestamp do we expect, for the final notification received? We know how many

notifications we've received; we'll multiply this by the per-notification time duration.

Defined at line 92 of file ../../src/media/audio/drivers/tests/position_test.cc