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 a67237a1ed98e405329423ab2c2461214bf9ca8f..887d8b6138b7d5a83231747c913b39b07736edf1 100644 |
--- a/content/browser/renderer_host/media/media_stream_manager_unittest.cc |
+++ b/content/browser/renderer_host/media/media_stream_manager_unittest.cc |
@@ -77,7 +77,6 @@ class MediaStreamManagerTest : public ::testing::Test { |
} |
virtual ~MediaStreamManagerTest() { |
- media_stream_manager_->WillDestroyCurrentMessageLoop(); |
} |
MOCK_METHOD1(Response, void(int index)); |
@@ -129,6 +128,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(); |
tommi (sloooow) - chröme
2013/11/26 14:44:21
is this necessary?
|
} |
TEST_F(MediaStreamManagerTest, MakeMultipleRequests) { |