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

Issue 8558022: Expose a way for unit tests to terminate the AudioManager singleton to avoid conflicts between te... (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, acolwell+watch_chromium.org, annacc+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., vrk (LEFT CHROMIUM), ihf+watch_chromium.org, henrika (OOO until Aug 14), Sergey Ulanov
Visibility:
Public.

Description

Expose a way for unit tests to terminate the AudioManager singleton to avoid conflicts between tests. This fixes occasional crashes when running audio tests manually (won't happen on the bots right now since they don't have the required hardware). TEST=Run content tests with --gtest_filter=*WebRTC* --gtest_repeat=1000 BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111586

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments from henrika #

Total comments: 6

Patch Set 3 : rebase + comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -0 lines) Patch
M content/renderer/media/webrtc_audio_device_unittest.cc View 1 2 7 chunks +41 lines, -0 lines 0 comments Download
M media/audio/audio_manager.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/audio_manager.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
tommi (sloooow) - chröme
9 years, 1 month ago (2011-11-18 17:04:31 UTC) #1
henrika (OOO until Aug 14)
Drive-by review. Some questions and comments. http://codereview.chromium.org/8558022/diff/1/content/renderer/media/webrtc_audio_device_unittest.cc File content/renderer/media/webrtc_audio_device_unittest.cc (right): http://codereview.chromium.org/8558022/diff/1/content/renderer/media/webrtc_audio_device_unittest.cc#newcode118 content/renderer/media/webrtc_audio_device_unittest.cc:118: // Utility class ...
9 years, 1 month ago (2011-11-20 18:43:03 UTC) #2
tommi (sloooow) - chröme
http://codereview.chromium.org/8558022/diff/1/content/renderer/media/webrtc_audio_device_unittest.cc File content/renderer/media/webrtc_audio_device_unittest.cc (right): http://codereview.chromium.org/8558022/diff/1/content/renderer/media/webrtc_audio_device_unittest.cc#newcode118 content/renderer/media/webrtc_audio_device_unittest.cc:118: // Utility class to delete the AudioManager On 2011/11/20 ...
9 years, 1 month ago (2011-11-21 10:39:32 UTC) #3
tommi (sloooow) - chröme
Andrew, Henrik - thinking about this some more, should I move the utility class to ...
9 years, 1 month ago (2011-11-21 11:01:32 UTC) #4
Paweł Hajdan Jr.
Drive-by, did I comment on this singleton before? If so, please *listen* this time. http://codereview.chromium.org/8558022/diff/6001/content/renderer/media/webrtc_audio_device_unittest.cc ...
9 years, 1 month ago (2011-11-21 12:37:56 UTC) #5
tommi (sloooow) - chröme
On Mon, Nov 21, 2011 at 1:37 PM, <phajdan.jr@chromium.org> wrote: > Drive-by, did I comment ...
9 years, 1 month ago (2011-11-21 15:10:10 UTC) #6
scherkus (not reviewing)
LGTM w/ nits agree w/ pawel -- let's get this in, reduce flakiness, then figure ...
9 years, 1 month ago (2011-11-23 01:35:44 UTC) #7
tommi (sloooow) - chröme
Thanks. Yes, we're all in agreement. I already started working on it. On Wed, Nov ...
9 years, 1 month ago (2011-11-23 07:33:24 UTC) #8
tommi (sloooow) - chröme
All done. New bug filed: http://code.google.com/p/chromium/issues/detail?id=105249 Hope to get it done this week. http://codereview.chromium.org/8558022/diff/6001/content/renderer/media/webrtc_audio_device_unittest.cc File ...
9 years, 1 month ago (2011-11-23 09:55:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/8558022/15001
9 years, 1 month ago (2011-11-23 09:56:30 UTC) #10
tommi (sloooow) - chröme
9 years, 1 month ago (2011-11-23 13:05:38 UTC) #11
FYI - I'm not going to submit this just yet and possibly not at all.

The media tests aren't in a good state and apparently haven't been for some
time.  They've stayed green in the tree for weeks but the reason is simply that
the tests are not being run (the bots don't have the required hardware).  So,
changes have been checked in that relied only on bot placebo.  If you run the
tests locally however, you'll see them crash (from first glance it appears that
macs are currently "more broken" than other platforms).  The problems are
indirectly related to the AudioManager, so I don't think it's a good idea to
introduce the gun in the AutoAudioManagerCleanup constructor, as it is currently
aimed at my foot!

I've pinged some folks to fix this and in the meantime I'm working on issue
105249 (no AudioManager singleton).  It might be that I'll be done with those
changes when the media tests have been fixed.

Powered by Google App Engine
This is Rietveld 408576698