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

Issue 2761853002: Conversational Speech tool, MultiEndCall class and unit tests via mocking (Closed)

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

Description

MultiEndCall is responsible for analyzing and validating timing information and audiotracks with which a multi-end call can be simulated. The class creates one WavReaderInterface object for each unique audiotrack and builds the set of speaker names. Validating if the audiotrack lengths and the timing information are compatible (and hence valid) is not implemented yet. MultiEndCall is designed using dependency injection. This allows to use mock objects with which we can quickly simulate different timings and track lengths without needing actual wav files. BUG=webrtc:7218 Review-Url: https://codereview.webrtc.org/2761853002 Cr-Commit-Position: refs/heads/master@{#17421} Committed: https://chromium.googlesource.com/external/webrtc/+/33397438780d5817ddfc0207e17ca27d6ed1a786

Patch Set 1 #

Patch Set 2 : dependency injection for MultiEndCall (.h only) #

Patch Set 3 : WavReader abstract factory and WavReaderInterface + mocks #

Patch Set 4 : MultiEndCall dependency injection test via WavRedaer abstract factory mock #

Patch Set 5 : git cl upload similarity 80 #

Total comments: 63

Patch Set 6 : comments from Henrik addressed #

Total comments: 9

Patch Set 7 : comments from Henrik addressed (2) #

Patch Set 8 : BUILD deps fixed #

Patch Set 9 : BUILD deps fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+534 lines, -8 lines) Patch
M webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc View 1 2 3 4 5 5 chunks +24 lines, -7 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader.h View 1 2 3 4 5 6 1 chunk +52 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader_factory.h View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader_factory.cc View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/multiend_call.h View 1 2 3 4 5 6 1 chunk +64 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc View 1 2 3 4 5 6 1 chunk +75 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/timing.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/wavreader_abstract_factory.h View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.h View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.cc View 1 2 3 4 5 6 1 chunk +58 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/wavreader_factory.h View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/wavreader_factory.cc View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/wavreader_interface.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 21 (10 generated)
AleBzk
Read the description of this CL to find a guide on how to review it. ...
3 years, 9 months ago (2017-03-23 15:07:14 UTC) #4
hlundin-webrtc
On 2017/03/23 15:07:14, AleBzk wrote: > Read the description of this CL to find a ...
3 years, 9 months ago (2017-03-24 12:55:15 UTC) #5
hlundin-webrtc
Nice work. See some comments inline. https://codereview.webrtc.org/2761853002/diff/80001/webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn File webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn (right): https://codereview.webrtc.org/2761853002/diff/80001/webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn#newcode46 webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn:46: # "wavreader_factory.h", On ...
3 years, 9 months ago (2017-03-24 13:44:15 UTC) #7
AleBzk
Thanks a lot for your comments Henrik! https://codereview.webrtc.org/2761853002/diff/80001/webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn File webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn (right): https://codereview.webrtc.org/2761853002/diff/80001/webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn#newcode46 webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn:46: # "wavreader_factory.h", ...
3 years, 9 months ago (2017-03-27 08:24:14 UTC) #8
hlundin-webrtc
Thanks! Some more comments. https://codereview.webrtc.org/2761853002/diff/80001/webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader_factory.cc File webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader_factory.cc (right): https://codereview.webrtc.org/2761853002/diff/80001/webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader_factory.cc#newcode2 webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader_factory.cc:2: * Copyright (c) 2017 The ...
3 years, 9 months ago (2017-03-27 09:46:35 UTC) #9
AleBzk
Once again thanks! https://codereview.webrtc.org/2761853002/diff/80001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc File webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc (right): https://codereview.webrtc.org/2761853002/diff/80001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc#newcode17 webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc:17: #include "webrtc/base/array_view.h" On 2017/03/27 09:46:34, hlundin-webrtc ...
3 years, 9 months ago (2017-03-27 11:17:06 UTC) #10
hlundin-webrtc
Well done! LGTM. https://codereview.webrtc.org/2761853002/diff/100001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc File webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc (right): https://codereview.webrtc.org/2761853002/diff/100001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc#newcode56 webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc:56: auto it = audiotrack_readers_.find(turn.audiotrack_file_name); On 2017/03/27 ...
3 years, 8 months ago (2017-03-28 11:36:03 UTC) #11
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/2761853002/120001
3 years, 8 months ago (2017-03-28 11:37:19 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios64_sim_ios9_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios64_sim_ios9_dbg/builds/2871) ios_arm64_dbg on master.tryserver.webrtc (JOB_FAILED, ...
3 years, 8 months ago (2017-03-28 11:39:09 UTC) #15
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/2761853002/160001
3 years, 8 months ago (2017-03-28 12:02:44 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-03-28 12:40:04 UTC) #21
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/external/webrtc/+/33397438780d5817ddfc0207e...

Powered by Google App Engine
This is Rietveld 408576698