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

Issue 81953002: Remove MockMediaInternals and incestuous usage. (Closed)

Created:
7 years, 1 month ago by DaleCurtis
Modified:
7 years, 1 month ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Remove MockMediaInternals and incestuous usage. While introducing the new AudioLog class, I encountered some WebRTC and AudioRendererHost unittests abusing MediaInternals for internal state observation. https://codereview.chromium.org/68173025/ In the AudioRendererHost case, everything tested is already enforced by various DCHECKs and the AudioManager (all streams closed, etc). Similarly, in the WebRTC case, most checks are enforced implicitly or tested via other means. To remove the usage in AudioRendererHost I needed to switch over to a TestBrowserThreadBundle which should have been done anyways. BUG=260005 TEST=unittests still pass. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236919

Patch Set 1 : Polish. #

Total comments: 10

Patch Set 2 : Comments. #

Patch Set 3 : Fix shutdown. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -200 lines) Patch
M content/browser/renderer_host/media/audio_renderer_host_unittest.cc View 1 2 9 chunks +54 lines, -124 lines 0 comments Download
M content/browser/renderer_host/media/mock_media_observer.h View 2 chunks +0 lines, -22 lines 0 comments Download
M content/browser/renderer_host/media/mock_media_observer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_unittest.cc View 4 chunks +0 lines, -40 lines 0 comments Download
M content/test/webrtc_audio_device_test.h View 1 2 chunks +0 lines, -6 lines 0 comments Download
M content/test/webrtc_audio_device_test.cc View 1 3 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
DaleCurtis
7 years, 1 month ago (2013-11-21 23:43:48 UTC) #1
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/81953002/diff/30001/content/browser/renderer_host/media/audio_renderer_host_unittest.cc File content/browser/renderer_host/media/audio_renderer_host_unittest.cc (right): https://codereview.chromium.org/81953002/diff/30001/content/browser/renderer_host/media/audio_renderer_host_unittest.cc#newcode55 content/browser/renderer_host/media/audio_renderer_host_unittest.cc:55: explicit MockAudioRendererHost(media::AudioManager* audio_manager, no need for explicit https://codereview.chromium.org/81953002/diff/30001/content/test/webrtc_audio_device_test.cc ...
7 years, 1 month ago (2013-11-22 11:55:31 UTC) #2
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/81953002/diff/30001/content/browser/renderer_host/media/audio_renderer_host_unittest.cc File content/browser/renderer_host/media/audio_renderer_host_unittest.cc (right): https://codereview.chromium.org/81953002/diff/30001/content/browser/renderer_host/media/audio_renderer_host_unittest.cc#newcode272 content/browser/renderer_host/media/audio_renderer_host_unittest.cc:272: &AudioRendererHostTest::PostQuitMessageLoop, Why do you need PostQuitMessageLoop? You should ...
7 years, 1 month ago (2013-11-22 19:12:47 UTC) #3
DaleCurtis
Thanks for the review, guys! https://codereview.chromium.org/81953002/diff/30001/content/browser/renderer_host/media/audio_renderer_host_unittest.cc File content/browser/renderer_host/media/audio_renderer_host_unittest.cc (right): https://codereview.chromium.org/81953002/diff/30001/content/browser/renderer_host/media/audio_renderer_host_unittest.cc#newcode55 content/browser/renderer_host/media/audio_renderer_host_unittest.cc:55: explicit MockAudioRendererHost(media::AudioManager* audio_manager, On ...
7 years, 1 month ago (2013-11-22 20:33:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/81953002/110001
7 years, 1 month ago (2013-11-22 20:35:21 UTC) #5
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=192102
7 years, 1 month ago (2013-11-22 21:14:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/81953002/330001
7 years, 1 month ago (2013-11-22 23:14:56 UTC) #7
commit-bot: I haz the power
7 years, 1 month ago (2013-11-23 01:58:38 UTC) #8
Message was sent while issue was closed.
Change committed as 236919

Powered by Google App Engine
This is Rietveld 408576698