Audio latency test: Refactor latency check to audio helper.
1. Put latency check to audio helper enables other audio
tests utilize the function to check if audio dongle is plugged.
2. Refactor pass/fail logic of audiovideo_LoopbackLatency test:
Old approach to check measured latency deviation is not practical
when latency varies. We should expect the measured latency
difference is within acceptable fixed range instead.
CQ-DEPEND=I2574e2c37363b84ff6241ad01bd0559989399fc0
BUG=chromium-os:37350, chromium-os:32898
TEST=Manual run audiovideo_LoopbackLatency on different devices.
Change-Id: I06a03c3e8cbcb769c02e996802813debbea8b111
Reviewed-on: https://gerrit.chromium.org/gerrit/37354
Commit-Ready: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
2 files changed