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

Issue 8427031: First unit tests for WebRTCAudioDevice. (Closed)

Created:
9 years, 1 month ago by tommi (sloooow) - chröme
Modified:
9 years, 1 month ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, Paweł Hajdan Jr., acolwell+watch_chromium.org, annacc+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

First unit tests for WebRTCAudioDevice. TEST=Run *WebRTCAudioDeviceTest* in content_unittests. BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109222

Patch Set 1 #

Patch Set 2 : lint fixes #

Total comments: 16

Patch Set 3 : Addressed review comments #

Patch Set 4 : Factored out the fixture class due to checkdeps #

Patch Set 5 : Moved audio_util dependency out of content/test #

Patch Set 6 : '' #

Total comments: 18

Patch Set 7 : Latest comments addressed #

Total comments: 22

Patch Set 8 : '' #

Patch Set 9 : addressed review comments from henrik (also see prev patch) #

Patch Set 10 : Added headless check #

Total comments: 2

Patch Set 11 : addressed review comments #

Patch Set 12 : Disabled the tests by default until we've fixed flakiness in WebRTC's CpuWindows class #

Total comments: 10

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+579 lines, -0 lines) Patch
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +13 lines, -0 lines 0 comments Download
A content/renderer/media/webrtc_audio_device_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +121 lines, -0 lines 0 comments Download
A content/test/webrtc_audio_device_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +191 lines, -0 lines 0 comments Download
A content/test/webrtc_audio_device_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +254 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
tommi (sloooow) - chröme
Hey Henrik, please have a look. I'm not sure why the pcm files are showing ...
9 years, 1 month ago (2011-11-01 13:19:35 UTC) #1
Paweł Hajdan Jr.
Drive-by with test comments. http://codereview.chromium.org/8427031/diff/1009/content/renderer/media/webrtc_audio_device_unittest.cc File content/renderer/media/webrtc_audio_device_unittest.cc (right): http://codereview.chromium.org/8427031/diff/1009/content/renderer/media/webrtc_audio_device_unittest.cc#newcode12 content/renderer/media/webrtc_audio_device_unittest.cc:12: nit: We're not doing gaps ...
9 years, 1 month ago (2011-11-02 09:29:15 UTC) #2
tommi (sloooow) - chröme
http://codereview.chromium.org/8427031/diff/1009/content/renderer/media/webrtc_audio_device_unittest.cc File content/renderer/media/webrtc_audio_device_unittest.cc (right): http://codereview.chromium.org/8427031/diff/1009/content/renderer/media/webrtc_audio_device_unittest.cc#newcode12 content/renderer/media/webrtc_audio_device_unittest.cc:12: On 2011/11/02 09:29:15, Paweł Hajdan Jr. wrote: > nit: ...
9 years, 1 month ago (2011-11-02 10:59:22 UTC) #3
tommi (sloooow) - chröme
FYI - this patch isn't ready for formal reviews yet although I do welcome all ...
9 years, 1 month ago (2011-11-02 11:02:11 UTC) #4
Paweł Hajdan Jr.
http://codereview.chromium.org/8427031/diff/8002/content/test/webrtc_audio_device_test.cc File content/test/webrtc_audio_device_test.cc (right): http://codereview.chromium.org/8427031/diff/8002/content/test/webrtc_audio_device_test.cc#newcode5 content/test/webrtc_audio_device_test.cc:5: #include "content/test/webrtc_audio_device_test.h" Ooops, one thing I didn't initially notice ...
9 years, 1 month ago (2011-11-02 18:00:24 UTC) #5
tommi (sloooow) - chröme
http://codereview.chromium.org/8427031/diff/8002/content/test/webrtc_audio_device_test.cc File content/test/webrtc_audio_device_test.cc (right): http://codereview.chromium.org/8427031/diff/8002/content/test/webrtc_audio_device_test.cc#newcode5 content/test/webrtc_audio_device_test.cc:5: #include "content/test/webrtc_audio_device_test.h" On 2011/11/02 18:00:24, Paweł Hajdan Jr. wrote: ...
9 years, 1 month ago (2011-11-03 07:56:51 UTC) #6
tommi (sloooow) - chröme
Latest changes uploaded.
9 years, 1 month ago (2011-11-03 13:06:19 UTC) #7
Paweł Hajdan Jr.
http://codereview.chromium.org/8427031/diff/8002/content/test/webrtc_audio_device_test.cc File content/test/webrtc_audio_device_test.cc (right): http://codereview.chromium.org/8427031/diff/8002/content/test/webrtc_audio_device_test.cc#newcode5 content/test/webrtc_audio_device_test.cc:5: #include "content/test/webrtc_audio_device_test.h" On 2011/11/03 07:56:52, tommi wrote: > Due ...
9 years, 1 month ago (2011-11-04 07:51:31 UTC) #8
tommi (sloooow) - chröme
http://codereview.chromium.org/8427031/diff/8002/content/test/webrtc_audio_device_test.cc File content/test/webrtc_audio_device_test.cc (right): http://codereview.chromium.org/8427031/diff/8002/content/test/webrtc_audio_device_test.cc#newcode5 content/test/webrtc_audio_device_test.cc:5: #include "content/test/webrtc_audio_device_test.h" On 2011/11/04 07:51:32, Paweł Hajdan Jr. wrote: ...
9 years, 1 month ago (2011-11-04 08:59:00 UTC) #9
henrika (OOO until Aug 14)
Great work! I'll be happy to start adding more tests using your new framework. I ...
9 years, 1 month ago (2011-11-04 10:35:12 UTC) #10
tommi (sloooow) - chröme
http://codereview.chromium.org/8427031/diff/7017/content/renderer/media/audio_renderer_impl.h File content/renderer/media/audio_renderer_impl.h (right): http://codereview.chromium.org/8427031/diff/7017/content/renderer/media/audio_renderer_impl.h#newcode109 content/renderer/media/audio_renderer_impl.h:109: friend class WebRTCAudioDeviceTest; On 2011/11/04 10:35:12, henrika1 wrote: > ...
9 years, 1 month ago (2011-11-07 10:27:28 UTC) #11
Paweł Hajdan Jr.
LGTM with comments. http://codereview.chromium.org/8427031/diff/21001/content/test/webrtc_audio_device_test.cc File content/test/webrtc_audio_device_test.cc (right): http://codereview.chromium.org/8427031/diff/21001/content/test/webrtc_audio_device_test.cc#newcode242 content/test/webrtc_audio_device_test.cc:242: NOTREACHED(); Did you mean ADD_FAILURE here? ...
9 years, 1 month ago (2011-11-07 13:50:53 UTC) #12
henrika (OOO until Aug 14)
Please add explicit call to VoEBase::Terminate(). Otherwise, LGTM. Thanks!
9 years, 1 month ago (2011-11-07 16:40:07 UTC) #13
henrika (OOO until Aug 14)
http://codereview.chromium.org/8427031/diff/7017/content/test/webrtc_audio_device_test.cc File content/test/webrtc_audio_device_test.cc (right): http://codereview.chromium.org/8427031/diff/7017/content/test/webrtc_audio_device_test.cc#newcode305 content/test/webrtc_audio_device_test.cc:305: int WebRTCTransportImpl::SendPacket(int channel, const void* data, int len) { ...
9 years, 1 month ago (2011-11-07 16:40:16 UTC) #14
tommi (sloooow) - chröme
Also added explicit calls to Terminate() at the end of the tests. http://codereview.chromium.org/8427031/diff/21001/content/test/webrtc_audio_device_test.cc File content/test/webrtc_audio_device_test.cc ...
9 years, 1 month ago (2011-11-07 16:55:17 UTC) #15
tommi (sloooow) - chröme
FYI - the test pcm files have been submitted. For some reason they were confusing ...
9 years, 1 month ago (2011-11-08 15:54:42 UTC) #16
scherkus (not reviewing)
LGTM w/ nits also please de-camel-case singleUserDemo_mono_16kHz.pcm chromium files are unix_hacker_style.pcm http://codereview.chromium.org/8427031/diff/24001/content/test/webrtc_audio_device_test.cc File content/test/webrtc_audio_device_test.cc (right): ...
9 years, 1 month ago (2011-11-08 22:24:46 UTC) #17
tommi (sloooow) - chröme
9 years, 1 month ago (2011-11-09 10:21:44 UTC) #18
http://codereview.chromium.org/8427031/diff/24001/content/test/webrtc_audio_d...
File content/test/webrtc_audio_device_test.cc (right):

http://codereview.chromium.org/8427031/diff/24001/content/test/webrtc_audio_d...
content/test/webrtc_audio_device_test.cc:45: const gfx::Rect& rect) { return
NULL; }
On 2011/11/08 22:24:46, scherkus wrote:
> want to align 2nd param w/ TransportDIB** then drop body of method to next
line?

Done.

http://codereview.chromium.org/8427031/diff/24001/content/test/webrtc_audio_d...
content/test/webrtc_audio_device_test.cc:87: : render_thread_(NULL),
event_(false, false), audio_util_callback_(NULL) {}
On 2011/11/08 22:24:46, scherkus wrote:
> nit: not a one-liner, drop } to next line

Done.

http://codereview.chromium.org/8427031/diff/24001/content/test/webrtc_audio_d...
content/test/webrtc_audio_device_test.cc:145: void
WebRTCAudioDeviceTest::CreateChannel(const char* name,
On 2011/11/08 22:24:46, scherkus wrote:
> param indentation is unusual: want to drop 1st param to next line and align w/
> 2nd param?

Done.

http://codereview.chromium.org/8427031/diff/24001/content/test/webrtc_audio_d...
content/test/webrtc_audio_device_test.cc:238:
WebRTCTransportImpl::~WebRTCTransportImpl() {
On 2011/11/08 22:24:46, scherkus wrote:
> nit: close one-liners to {}

Done.

http://codereview.chromium.org/8427031/diff/24001/content/test/webrtc_audio_d...
File content/test/webrtc_audio_device_test.h (right):

http://codereview.chromium.org/8427031/diff/24001/content/test/webrtc_audio_d...
content/test/webrtc_audio_device_test.h:100: // Implemented and defined the cc
file.
On 2011/11/08 22:24:46, scherkus wrote:
> s/defined the cc/defined in the cc/

Done.

Powered by Google App Engine
This is Rietveld 408576698