Index: content/browser/renderer_host/media/media_stream_manager_unittest.cc |
diff --git a/content/browser/renderer_host/media/media_stream_manager_unittest.cc b/content/browser/renderer_host/media/media_stream_manager_unittest.cc |
index 03e95e0b66e16d3f1ee125c5b7e645f4f634c8af..4f4050ce3dff5bb8f0cf809bbdb03d5cf5c505c5 100644 |
--- a/content/browser/renderer_host/media/media_stream_manager_unittest.cc |
+++ b/content/browser/renderer_host/media/media_stream_manager_unittest.cc |
@@ -81,7 +81,6 @@ class MediaStreamManagerTest : public ::testing::Test { |
} |
virtual ~MediaStreamManagerTest() { |
- media_stream_manager_->WillDestroyCurrentMessageLoop(); |
} |
MOCK_METHOD1(Response, void(int index)); |
@@ -133,6 +132,8 @@ TEST_F(MediaStreamManagerTest, MakeAndCancelMediaAccessRequest) { |
std::string label = MakeMediaAccessRequest(0); |
// No callback is expected. |
media_stream_manager_->CancelRequest(label); |
+ run_loop_.RunUntilIdle(); |
+ media_stream_manager_->WillDestroyCurrentMessageLoop(); |
} |
TEST_F(MediaStreamManagerTest, MakeMultipleRequests) { |