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

Issue 260073013: Added automatic mode to FakeInputAudioStream to generate automatic beeps (Closed)

Created:
6 years, 7 months ago by no longer working on chromium
Modified:
6 years, 7 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Added automatic mode to FakeInputAudioStream to generate automatic beeps. This patch is to allow writing audio only tests using the fake input stream, also it changes the name of the fake device from "Default" to "Fake Audio, which I hope it will make things less confusing. NOTRY=true BUG=358541 TEST=bots existing webrtc tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268848

Patch Set 1 #

Patch Set 2 : #

Total comments: 14

Patch Set 3 : addressed the comments. #

Total comments: 3

Patch Set 4 : consolidated how we inject fake audio devices. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -68 lines) Patch
M content/browser/renderer_host/media/audio_input_device_manager.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_device_manager.cc View 1 2 3 5 chunks +24 lines, -28 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_device_manager_unittest.cc View 1 2 3 8 chunks +1 line, -20 lines 2 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M media/audio/fake_audio_input_stream.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/fake_audio_input_stream.cc View 1 2 5 chunks +33 lines, -14 lines 2 comments Download
M media/audio/mock_audio_manager.cc View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
no longer working on chromium
Dale, could you please review the CL? Patrik, FYI and feel free to take a ...
6 years, 7 months ago (2014-04-29 14:06:26 UTC) #1
DaleCurtis
lgtm % Q + nit. https://codereview.chromium.org/260073013/diff/20001/media/audio/fake_audio_input_stream.cc File media/audio/fake_audio_input_stream.cc (right): https://codereview.chromium.org/260073013/diff/20001/media/audio/fake_audio_input_stream.cc#newcode29 media/audio/fake_audio_input_stream.cc:29: BeepContext() : beep_once(false), automatic(true) ...
6 years, 7 months ago (2014-04-29 17:30:56 UTC) #2
DaleCurtis
Make that a couple Qs. https://codereview.chromium.org/260073013/diff/20001/content/browser/renderer_host/media/audio_input_device_manager.cc File content/browser/renderer_host/media/audio_input_device_manager.cc (right): https://codereview.chromium.org/260073013/diff/20001/content/browser/renderer_host/media/audio_input_device_manager.cc#newcode39 content/browser/renderer_host/media/audio_input_device_manager.cc:39: kFakeDeviceName, FakeDeviceId? https://codereview.chromium.org/260073013/diff/20001/content/browser/renderer_host/media/audio_input_device_manager.cc#newcode147 content/browser/renderer_host/media/audio_input_device_manager.cc:147: ...
6 years, 7 months ago (2014-04-29 17:33:31 UTC) #3
phoglund_chromium
https://codereview.chromium.org/260073013/diff/20001/content/browser/renderer_host/media/audio_input_device_manager.cc File content/browser/renderer_host/media/audio_input_device_manager.cc (right): https://codereview.chromium.org/260073013/diff/20001/content/browser/renderer_host/media/audio_input_device_manager.cc#newcode147 content/browser/renderer_host/media/audio_input_device_manager.cc:147: if (use_fake_device_ || devices->empty()) { On 2014/04/29 17:33:31, DaleCurtis ...
6 years, 7 months ago (2014-04-30 08:03:49 UTC) #4
phoglund_chromium
You get anywhere with this Shijing?
6 years, 7 months ago (2014-05-02 11:27:47 UTC) #5
no longer working on chromium
Hi Dale and Patrik, sorry for the delay, PTAL. Alpha, I added a automatic beep ...
6 years, 7 months ago (2014-05-02 14:30:46 UTC) #6
DaleCurtis
https://codereview.chromium.org/260073013/diff/80001/content/browser/renderer_host/media/audio_input_device_manager.cc File content/browser/renderer_host/media/audio_input_device_manager.cc (right): https://codereview.chromium.org/260073013/diff/80001/content/browser/renderer_host/media/audio_input_device_manager.cc#newcode149 content/browser/renderer_host/media/audio_input_device_manager.cc:149: devices->push_back(StreamDeviceInfo(stream_type, kFakeDeviceName, Won't this now put the fake device ...
6 years, 7 months ago (2014-05-02 20:20:08 UTC) #7
no longer working on chromium
https://codereview.chromium.org/260073013/diff/80001/content/browser/renderer_host/media/audio_input_device_manager.cc File content/browser/renderer_host/media/audio_input_device_manager.cc (right): https://codereview.chromium.org/260073013/diff/80001/content/browser/renderer_host/media/audio_input_device_manager.cc#newcode149 content/browser/renderer_host/media/audio_input_device_manager.cc:149: devices->push_back(StreamDeviceInfo(stream_type, kFakeDeviceName, On 2014/05/02 20:20:09, DaleCurtis wrote: > Won't ...
6 years, 7 months ago (2014-05-06 14:10:55 UTC) #8
no longer working on chromium
On 2014/05/06 14:10:55, xians1 wrote: > https://codereview.chromium.org/260073013/diff/80001/content/browser/renderer_host/media/audio_input_device_manager.cc > File content/browser/renderer_host/media/audio_input_device_manager.cc (right): > > https://codereview.chromium.org/260073013/diff/80001/content/browser/renderer_host/media/audio_input_device_manager.cc#newcode149 > ...
6 years, 7 months ago (2014-05-06 14:11:57 UTC) #9
DaleCurtis
lgtm https://codereview.chromium.org/260073013/diff/140001/content/browser/renderer_host/media/audio_input_device_manager_unittest.cc File content/browser/renderer_host/media/audio_input_device_manager_unittest.cc (right): https://codereview.chromium.org/260073013/diff/140001/content/browser/renderer_host/media/audio_input_device_manager_unittest.cc#newcode71 content/browser/renderer_host/media/audio_input_device_manager_unittest.cc:71: manager_->UseFakeDevice(); Do you want to set this only ...
6 years, 7 months ago (2014-05-06 17:36:52 UTC) #10
no longer working on chromium
Thanks Dale, I have double checked the code and fake input stream should be only ...
6 years, 7 months ago (2014-05-07 08:55:41 UTC) #11
no longer working on chromium
The CQ bit was checked by xians@chromium.org
6 years, 7 months ago (2014-05-07 08:55:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/260073013/140001
6 years, 7 months ago (2014-05-07 08:58:30 UTC) #13
phoglund_chromium
On 2014/05/07 08:58:30, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 7 months ago (2014-05-07 11:46:57 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-07 15:03:17 UTC) #15
no longer working on chromium
The CQ bit was unchecked by xians@chromium.org
6 years, 7 months ago (2014-05-07 15:09:36 UTC) #16
no longer working on chromium
The CQ bit was checked by xians@chromium.org
6 years, 7 months ago (2014-05-07 15:09:55 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/260073013/140001
6 years, 7 months ago (2014-05-07 15:13:30 UTC) #18
commit-bot: I haz the power
Change committed as 268848
6 years, 7 months ago (2014-05-07 17:49:46 UTC) #19
DaleCurtis
Hey xians, this patch had a failing try: "MediaAccessAPIAllow_TestAllow" on OSX and then you set ...
6 years, 7 months ago (2014-05-07 19:39:53 UTC) #20
no longer working on chromium
On 2014/05/07 19:39:53, DaleCurtis wrote: > Hey xians, this patch had a failing try: "MediaAccessAPIAllow_TestAllow" ...
6 years, 7 months ago (2014-05-08 15:07:59 UTC) #21
phoglund_chromium
6 years, 7 months ago (2014-05-26 13:04:54 UTC) #22
Message was sent while issue was closed.
> Thanks for the revert.

Ping - did Miguel land that patch that was required on mac so you can reland
this?

Powered by Google App Engine
This is Rietveld 408576698