Improve media::AudioRendererImplTest correctness via helper types.
While writing some new tests I ran into some hard to track down failures that were a result of: 1) Using AudioBufferConverter due to different input/output rates 2) Using "int" for all input/output frame counts For example, DeliverRemainingAudio() would actually over-deliver since it didn't take the ratio of input/output rates into account. To help make things better, use the type system to differentiate between input and output frame counts. In addition, use simpler input/output rates to make it easier to calculate expected time and frame values. BUG=370634 Review URL: https://codereview.chromium.org/403003004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284529 0039d316-1c4b-4281-b951-d872f2087c98
Showing
This diff is collapsed.
Please register or sign in to comment