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

Issue 2747123007: Test submission of complete AEC-dump refactoring. (Closed)

Created:
3 years, 9 months ago by aleloi
Modified:
3 years, 7 months ago
Reviewers:
kwiberg-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Test submission of complete AEC-dump refactoring. DO NOT SUBMIT. It's only up here for running the tests. BUG=webrtc:6261

Patch Set 1 : Fixes seem to have made more tests pass #

Patch Set 2 : Found issue thanks to windows warnings. #

Patch Set 3 : Removing config lock (it was wrong anyway). #

Patch Set 4 : Found another bug; wrong output frame size. #

Patch Set 5 : Forgot to update null aec dumper #

Patch Set 6 : Closing file after not room for more. #

Patch Set 7 : Fixed undefined data issue #

Patch Set 8 : Put back file removal (maybe that causes Win errors?) #

Patch Set 9 : Copy filename by value should fix read-after-delete #

Patch Set 10 : TaskQueue must outlive AecDumper and be destroyed on same thread. #

Patch Set 11 : Fix header dependency check. #

Patch Set 12 : Add missing files. #

Patch Set 13 : Fixed one lifetime and one uninitialized ptr issue in test. #

Patch Set 14 : Made event pool ref-counted (it had to out-live the task queue). #

Patch Set 15 : Simplifyied resource handling, removed event pool. #

Patch Set 16 : Minor cleanup after reading through code. Compile on mac. #

Patch Set 17 : Refactoring introduced bug: DCHECK(moved uptr) #

Total comments: 16

Patch Set 18 : Most of Karl's comments addressed. #

Total comments: 2

Patch Set 19 : Rename aec-dump to apm-recording everywhere. #

Patch Set 20 : Changed interface and build structure after reviewer comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1317 lines, -697 lines) Patch
M webrtc/media/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +10 lines, -3 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +11 lines, -16 lines 0 comments Download
M webrtc/modules/audio_processing/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +23 lines, -5 lines 0 comments Download
A webrtc/modules/audio_processing/aec_dump/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +74 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/aec_dump/aec_dump_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +48 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/aec_dump/aec_dump_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +79 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/aec_dump/aec_dump_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +241 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/aec_dump/aec_dump_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +53 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/aec_dump/capture_stream_info_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +137 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/aec_dump/no_pb_aec_dumper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +28 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/aec_dump/null_aec_dump_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +27 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +6 lines, -39 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 13 chunks +100 lines, -320 lines 0 comments Download
A + webrtc/modules/audio_processing/audio_processing_impl.cc.orig View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 16 chunks +203 lines, -211 lines 0 comments Download
A + webrtc/modules/audio_processing/audio_processing_impl.h.orig View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +27 lines, -26 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 9 chunks +26 lines, -20 lines 0 comments Download
A + webrtc/modules/audio_processing/audio_processing_unittest.cc.orig View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 8 chunks +24 lines, -15 lines 0 comments Download
A webrtc/modules/audio_processing/include/aec_dump.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +145 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/include/aec_dump.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +26 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/include/audio_processing.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -23 lines 0 comments Download
M webrtc/modules/audio_processing/include/mock_audio_processing.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +6 lines, -8 lines 0 comments Download
M webrtc/modules/audio_processing/test/audio_processing_simulator.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download
M webrtc/modules/audio_processing/test/audio_processing_simulator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +5 lines, -7 lines 0 comments Download
M webrtc/modules/audio_processing/test/debug_dump_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 102 (99 generated)
kwiberg-webrtc
Some drive-by comments on the interface. (I realized after writing the comments that they should ...
3 years, 8 months ago (2017-03-28 08:54:59 UTC) #94
aleloi
Thanks for the comments, Karl! https://codereview.webrtc.org/2747123007/diff/440001/webrtc/modules/audio_processing/aec_dumper/aec_dumper.h File webrtc/modules/audio_processing/aec_dumper/aec_dumper.h (right): https://codereview.webrtc.org/2747123007/diff/440001/webrtc/modules/audio_processing/aec_dumper/aec_dumper.h#newcode37 webrtc/modules/audio_processing/aec_dumper/aec_dumper.h:37: InternalAPMConfig(InternalAPMConfig&); On 2017/03/28 08:54:58, ...
3 years, 8 months ago (2017-03-29 08:41:31 UTC) #95
kwiberg-webrtc
3 years, 8 months ago (2017-03-29 08:57:11 UTC) #98
Looks much better!

https://codereview.webrtc.org/2747123007/diff/460001/webrtc/modules/audio_pro...
File webrtc/modules/audio_processing/aec_dumper/aec_dumper.h (right):

https://codereview.webrtc.org/2747123007/diff/460001/webrtc/modules/audio_pro...
webrtc/modules/audio_processing/aec_dumper/aec_dumper.h:58:
RTC_DISALLOW_COPY_AND_ASSIGN(InternalAPMConfig);
You don't have to use this macro anymore. Just do

  InternalAPMConfig(const InternalAPMConfig&) = delete;
  InternalAPMConfig& operator=(const InternalAPMConfig&) = delete;

It's a bit wordier, but you get to not call a macro, and it's the same syntax
you would use to define copy construction and assignment, and you put it in the
same place as the other constructors and assignment operators.

By the way, did you intend to prohibit moves too?

https://codereview.webrtc.org/2747123007/diff/460001/webrtc/modules/audio_pro...
webrtc/modules/audio_processing/aec_dumper/aec_dumper.h:86: AecDumper() =
default;
You forgot to remove this one.

Powered by Google App Engine
This is Rietveld 408576698