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

Issue 566793002: MediaStream content_unittests need to trigger a GC before tear down (Closed)

Created:
6 years, 3 months ago by haraken
Modified:
6 years, 3 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

MediaStream content_unittests need to trigger a GC before tear down Given that MediaStream objects in the Blink side are allocated on Oilpan's heap, we need to trigger a GC to collect MediaStream objects in the Chromium side that depend on the lifetime of the MediaStream objects in the Blink side. This CL adds Heap::collectAllGarbage to TearDown methods of MediaStream content_unittests. This guarantees that MediaStream objects used in the content_unittests are collected before the content_unittests finish. Otherwise, the LSan complains that the MediaStream objects leak in the content_unittests. This is an issue that happens only in testing. BUG=340522 Committed: https://crrev.com/02b15d5a415222f4ffc4a247e191fca76f1fddce Cr-Commit-Position: refs/heads/master@{#295920}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -17 lines) Patch
M content/renderer/media/media_stream_video_track_unittest.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/media/video_source_handler_unittest.cc View 2 chunks +11 lines, -5 lines 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_video_source_unittest.cc View 2 chunks +17 lines, -11 lines 0 comments Download
M content/renderer/media/webrtc/video_destination_handler_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_source_provider_unittest.cc View 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
haraken
PTAL
6 years, 3 months ago (2014-09-12 04:54:47 UTC) #2
tommi (sloooow) - chröme
Per can you take a look? I'll be happy to stamp afterwards (I'm at a ...
6 years, 3 months ago (2014-09-12 18:04:27 UTC) #4
perkj_chrome
lgtm but with a small question. Is it necessary to destroy |dependency_factory_|? Thanks for doing ...
6 years, 3 months ago (2014-09-15 07:17:53 UTC) #5
haraken
Thanks for review! https://codereview.chromium.org/566793002/diff/1/content/renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc File content/renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc (right): https://codereview.chromium.org/566793002/diff/1/content/renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc#newcode34 content/renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc:34: dependency_factory_.reset(); On 2014/09/15 07:17:53, perkj wrote: ...
6 years, 3 months ago (2014-09-22 03:09:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/566793002/20001
6 years, 3 months ago (2014-09-22 03:11:05 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as b767a289e6d7f516275c84f78aae533f7617f05a
6 years, 3 months ago (2014-09-22 03:51:34 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 03:52:15 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/02b15d5a415222f4ffc4a247e191fca76f1fddce
Cr-Commit-Position: refs/heads/master@{#295920}

Powered by Google App Engine
This is Rietveld 408576698