Chromium Code Reviews

Issue 2811953002: APM QA unit tests, fake POLQA binary and minor fixes (Closed)

Created:
3 years, 8 months ago by AleBzk
Modified:
3 years, 8 months ago
Reviewers:
aleloi
CC:
webrtc-reviews_webrtc.org, AleBzk, peah-webrtc, Andrew MacDonald, aleloi, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc, the sun, aluebs-webrtc, bjornv1
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

This CL includes the following changes: - BUILD file reorganized, unit tests now have dedicated targets. - "fake_polqa" is a binary producing fake output in the same format of PolqaOem64; the binary is injected for unit tests instead of the actual POLQA tool. - Minor refactoring to inject the path to the POLQA binary instead of its parent folder. - Unit tests for the evaluation score workers. - Unit tests for the ApmModuleSimulator class. - Unit tests for the test data generators: ReverberationTestDataGenerator added. BUG=webrtc:7218 Review-Url: https://codereview.webrtc.org/2811953002 Cr-Commit-Position: refs/heads/master@{#17674} Committed: https://chromium.googlesource.com/external/webrtc/+/a79143f3e9ee94d332d52462356a0a955b05d63b

Patch Set 1 #

Total comments: 18

Patch Set 2 : comments addressed #

Unified diffs Side-by-side diffs Stats (+318 lines, -54 lines)
M webrtc/modules/audio_processing/test/py_quality_assessment/BUILD.gn View 5 chunks +67 lines, -15 lines 0 comments
M webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment.py View 3 chunks +8 lines, -1 line 0 comments
M webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/eval_scores.py View 1 chunk +5 lines, -7 lines 0 comments
M webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/eval_scores_factory.py View 2 chunks +3 lines, -3 lines 0 comments
M webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/eval_scores_unittest.py View 1 chunk +62 lines, -3 lines 0 comments
A webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/fake_polqa.cc View 1 chunk +54 lines, -0 lines 0 comments
M webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/simulation.py View 3 chunks +5 lines, -6 lines 0 comments
A webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/simulation_unittest.py View 1 chunk +89 lines, -0 lines 0 comments
M webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/test_data_generation.py View 2 chunks +5 lines, -4 lines 0 comments
M webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/test_data_generation_unittest.py View 4 chunks +20 lines, -15 lines 0 comments

Depends on Patchset:

Messages

Total messages: 13 (5 generated)
AleBzk
Hi Alex, It'd be great if you review this CL since we will use the ...
3 years, 8 months ago (2017-04-11 08:59:35 UTC) #3
aleloi
Will do! Just a few APM CLs first...
3 years, 8 months ago (2017-04-11 09:08:42 UTC) #4
AleBzk
Yup
3 years, 8 months ago (2017-04-11 09:31:56 UTC) #5
aleloi
LG! Only minor comments. https://codereview.webrtc.org/2811953002/diff/1/webrtc/modules/audio_processing/test/py_quality_assessment/BUILD.gn File webrtc/modules/audio_processing/test/py_quality_assessment/BUILD.gn (right): https://codereview.webrtc.org/2811953002/diff/1/webrtc/modules/audio_processing/test/py_quality_assessment/BUILD.gn#newcode124 webrtc/modules/audio_processing/test/py_quality_assessment/BUILD.gn:124: deps = [] I think ...
3 years, 8 months ago (2017-04-12 09:37:05 UTC) #6
AleBzk
Thanks Alex! You can find my answers below. Alessio https://codereview.webrtc.org/2811953002/diff/1/webrtc/modules/audio_processing/test/py_quality_assessment/BUILD.gn File webrtc/modules/audio_processing/test/py_quality_assessment/BUILD.gn (right): https://codereview.webrtc.org/2811953002/diff/1/webrtc/modules/audio_processing/test/py_quality_assessment/BUILD.gn#newcode124 webrtc/modules/audio_processing/test/py_quality_assessment/BUILD.gn:124: ...
3 years, 8 months ago (2017-04-12 12:41:04 UTC) #7
aleloi
lgtm https://codereview.webrtc.org/2811953002/diff/1/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/fake_polqa.cc File webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/fake_polqa.cc (right): https://codereview.webrtc.org/2811953002/diff/1/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/fake_polqa.cc#newcode44 webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/fake_polqa.cc:44: } Ok, this way seems best then. https://codereview.webrtc.org/2811953002/diff/1/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/test_data_generation_unittest.py ...
3 years, 8 months ago (2017-04-12 13:05:40 UTC) #8
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/2811953002/20001
3 years, 8 months ago (2017-04-12 13:30:59 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 13:56:31 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/a79143f3e9ee94d332d524623...

Powered by Google App Engine