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

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

Issue 10181001: Fix memory leak in MediaStreamImplTest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comment. Created 8 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_impl_unittest.cc
diff --git a/content/renderer/media/media_stream_impl_unittest.cc b/content/renderer/media/media_stream_impl_unittest.cc
index a821d1485ea89ea7b34e1249e4b6c6b8db2db685..8703374586f4ce81a5cad51bd92e1046fbcf8085 100644
--- a/content/renderer/media/media_stream_impl_unittest.cc
+++ b/content/renderer/media/media_stream_impl_unittest.cc
@@ -34,6 +34,13 @@ class MediaStreamImplTest : public ::testing::Test {
dependency_factory));
}
+ void TearDown() {
+ // Make sure the message created by
+ // P2PSocketDispatcher::AsyncMessageSender::Send is handled before
+ // tear down to avoid a memory leak.
+ loop_.RunAllPending();
+ }
+
protected:
MessageLoop loop_;
scoped_ptr<MockMediaStreamDispatcher> ms_dispatcher_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698