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

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

Issue 9368022: Ensuring destruction order in MediaStreamImpl unit test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 110c69d2a478cd5e4826b587b026084cd01e1a39..34eb47fbbcd2a74cef735e58baf78e70beacf769 100644
--- a/content/renderer/media/media_stream_impl_unittest.cc
+++ b/content/renderer/media/media_stream_impl_unittest.cc
@@ -13,8 +13,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConnectionHandler.h"
-// Disabled due to http://crbug.com/112408 .
-TEST(MediaStreamImplTest, DISABLED_Basic) {
+TEST(MediaStreamImplTest, Basic) {
MessageLoop loop;
// Create our test object.
@@ -43,4 +42,8 @@ TEST(MediaStreamImplTest, DISABLED_Basic) {
ms_impl->ClosePeerConnection();
EXPECT_FALSE(ms_impl->peer_connection_handler_);
delete pc_handler;
+
+ // Ensure it's deleted first, since it holds naked references to other objects
+ // owned by the unit test.
+ ms_impl = NULL;
tommi (sloooow) - chröme 2012/02/09 12:20:45 Since this doesn't guarantee that the object is de
Henrik Grunell 2012/02/09 13:02:11 Sounds good. (Though currently in the unit test th
}
« 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