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

Unified Diff: content/renderer/media/audio_message_filter_unittest.cc

Issue 10821109: Candidate fix for a crash at shutdown when the IO thread is going away. More details in the bug rep… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed the input filter... damn you code duplication! Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/audio_message_filter.cc ('k') | media/audio/audio_input_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_message_filter_unittest.cc
diff --git a/content/renderer/media/audio_message_filter_unittest.cc b/content/renderer/media/audio_message_filter_unittest.cc
index 26a624727bd7133d5710c8c1d3266f47e23768aa..f39998add7ed64a3bf7d5385473d049d33148d09 100644
--- a/content/renderer/media/audio_message_filter_unittest.cc
+++ b/content/renderer/media/audio_message_filter_unittest.cc
@@ -110,6 +110,7 @@ TEST(AudioMessageFilterTest, Basic) {
delegate.Reset();
message_loop.RunAllPending();
+ filter->RemoveDelegate(stream_id);
}
TEST(AudioMessageFilterTest, Delegates) {
@@ -143,4 +144,7 @@ TEST(AudioMessageFilterTest, Delegates) {
delegate2.Reset();
message_loop.RunAllPending();
+
+ filter->RemoveDelegate(stream_id1);
+ filter->RemoveDelegate(stream_id2);
}
« no previous file with comments | « content/renderer/media/audio_message_filter.cc ('k') | media/audio/audio_input_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698