Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Issue 2826073002: Adds AudioDeviceTest.MeasureLoopbackLatency unittest (Closed)

Created:
3 years, 8 months ago by henrika_webrtc
Modified:
3 years, 8 months ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Adds AudioDeviceTest.MeasureLoopbackLatency unittest. Follow-up CL on https://codereview.webrtc.org/2788883002/ where I add a new test which has to be enabled manually (will not run by default on bots). Measures loopback latency and reports the min, max and average values for a full duplex audio session. The latency is measured like so: - Insert impulses periodically on the output side. - Detect the impulses on the input side. - Measure the time difference between the transmit time and receive time. - Store time differences in a vector and calculate min, max and average. This test needs the '--gtest_also_run_disabled_tests' flag to run and also some sort of audio feedback loop. E.g. a headset where the mic is placed close to the speaker to ensure highest possible echo. It is also recommended to run the test at highest possible output volume. How to run: ./out/Debug/modules_unittests --gtest_filter=AudioDeviceMeasureLoopbackLatency --gtest_also_run_disabled_tests Example output (on Linux machine): [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from AudioDeviceTest [ RUN ] AudioDeviceTest.DISABLED_MeasureLoopbackLatency [..........] [..........] [min, max, avg]=[59, 67, 64] ms [ OK ] AudioDeviceTest.DISABLED_MeasureLoopbackLatency (10034 ms) [----------] 1 test from AudioDeviceTest (10034 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (10036 ms total) [ PASSED ] 1 test. BUG=webrtc:7273 Review-Url: https://codereview.webrtc.org/2826073002 Cr-Commit-Position: refs/heads/master@{#17791} Committed: https://chromium.googlesource.com/external/webrtc/+/714e5cd6c697e90dcb716fe4c65dbb35e1a81c9a

Patch Set 1 #

Patch Set 2 : Fixed comment #

Total comments: 15

Patch Set 3 : Feedback from kwiberg@ #

Total comments: 2

Patch Set 4 : nit #

Patch Set 5 : Should now build on win64 #

Patch Set 6 : nit #

Patch Set 7 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -4 lines) Patch
M webrtc/modules/audio_device/audio_device_unittest.cc View 1 2 3 4 5 6 6 chunks +180 lines, -4 lines 0 comments Download

Messages

Total messages: 34 (18 generated)
henrika_webrtc
PTAL ;-)
3 years, 8 months ago (2017-04-19 14:33:03 UTC) #4
kwiberg-webrtc
https://codereview.webrtc.org/2826073002/diff/20001/webrtc/modules/audio_device/audio_device_unittest.cc File webrtc/modules/audio_device/audio_device_unittest.cc (right): https://codereview.webrtc.org/2826073002/diff/20001/webrtc/modules/audio_device/audio_device_unittest.cc#newcode81 webrtc/modules/audio_device/audio_device_unittest.cc:81: static constexpr char kTag[] = "[..........] "; Can you ...
3 years, 8 months ago (2017-04-20 09:26:37 UTC) #5
kwiberg-webrtc
https://codereview.webrtc.org/2826073002/diff/20001/webrtc/modules/audio_device/audio_device_unittest.cc File webrtc/modules/audio_device/audio_device_unittest.cc (right): https://codereview.webrtc.org/2826073002/diff/20001/webrtc/modules/audio_device/audio_device_unittest.cc#newcode213 webrtc/modules/audio_device/audio_device_unittest.cc:213: source.begin(), std::find(source.begin(), source.end(), max)); On 2017/04/20 09:26:37, kwiberg-webrtc wrote: ...
3 years, 8 months ago (2017-04-20 11:14:31 UTC) #6
henrika_webrtc
Thanks. PTAL https://codereview.webrtc.org/2826073002/diff/20001/webrtc/modules/audio_device/audio_device_unittest.cc File webrtc/modules/audio_device/audio_device_unittest.cc (right): https://codereview.webrtc.org/2826073002/diff/20001/webrtc/modules/audio_device/audio_device_unittest.cc#newcode81 webrtc/modules/audio_device/audio_device_unittest.cc:81: static constexpr char kTag[] = "[..........] "; ...
3 years, 8 months ago (2017-04-20 12:22:30 UTC) #7
kwiberg-webrtc
lgtm! https://codereview.webrtc.org/2826073002/diff/40001/webrtc/modules/audio_device/audio_device_unittest.cc File webrtc/modules/audio_device/audio_device_unittest.cc (right): https://codereview.webrtc.org/2826073002/diff/40001/webrtc/modules/audio_device/audio_device_unittest.cc#newcode43 webrtc/modules/audio_device/audio_device_unittest.cc:43: // #define ENABLE_DEBUG_PRINTF Did you mean to do ...
3 years, 8 months ago (2017-04-20 12:33:27 UTC) #8
henrika_webrtc
https://codereview.webrtc.org/2826073002/diff/40001/webrtc/modules/audio_device/audio_device_unittest.cc File webrtc/modules/audio_device/audio_device_unittest.cc (right): https://codereview.webrtc.org/2826073002/diff/40001/webrtc/modules/audio_device/audio_device_unittest.cc#newcode43 webrtc/modules/audio_device/audio_device_unittest.cc:43: // #define ENABLE_DEBUG_PRINTF Yes I did. Only used to ...
3 years, 8 months ago (2017-04-20 12:39:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2826073002/40001
3 years, 8 months ago (2017-04-20 12:39:38 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_compile_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_compile_dbg/builds/15192)
3 years, 8 months ago (2017-04-20 12:42:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2826073002/60001
3 years, 8 months ago (2017-04-20 13:23:31 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/24856)
3 years, 8 months ago (2017-04-20 13:41:43 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2826073002/80001
3 years, 8 months ago (2017-04-20 13:49:03 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_dbg/builds/8420)
3 years, 8 months ago (2017-04-20 14:00:32 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2826073002/100001
3 years, 8 months ago (2017-04-20 14:14:33 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/24861)
3 years, 8 months ago (2017-04-20 14:25:01 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2826073002/120001
3 years, 8 months ago (2017-04-20 14:43:37 UTC) #31
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 15:03:16 UTC) #34
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/external/webrtc/+/714e5cd6c697e90dcb716fe4c...

Powered by Google App Engine
This is Rietveld 408576698