| Index: content/browser/renderer_host/media/media_stream_ui_controller_unittest.cc
|
| diff --git a/content/browser/renderer_host/media/media_stream_ui_controller_unittest.cc b/content/browser/renderer_host/media/media_stream_ui_controller_unittest.cc
|
| index f0f93b476ad4d11ee09fd4f346d6322a0b5d39d1..94b96edca891072809328115a11226d9d0829072 100644
|
| --- a/content/browser/renderer_host/media/media_stream_ui_controller_unittest.cc
|
| +++ b/content/browser/renderer_host/media/media_stream_ui_controller_unittest.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/bind.h"
|
| #include "base/macros.h"
|
| #include "base/message_loop/message_loop.h"
|
| +#include "base/run_loop.h"
|
| #include "content/browser/browser_thread_impl.h"
|
| #include "content/browser/renderer_host/media/media_stream_settings_requester.h"
|
| #include "content/browser/renderer_host/media/media_stream_ui_controller.h"
|
| @@ -52,9 +53,7 @@ class MediaStreamDeviceUIControllerTest
|
| ui_controller_.reset(new MediaStreamUIController(this));
|
| }
|
|
|
| - virtual void TearDown() {
|
| - message_loop_->RunUntilIdle();
|
| - }
|
| + virtual void TearDown() { base::RunLoop().RunUntilIdle(); }
|
|
|
| void CreateDummyRequest(const std::string& label, bool audio, bool video) {
|
| int dummy_render_process_id = 1;
|
| @@ -105,7 +104,7 @@ TEST_F(MediaStreamDeviceUIControllerTest, HandleRequestUsingFakeUI) {
|
| // Remove the current request, it should not crash.
|
| EXPECT_CALL(*this, DevicesAccepted(label, _));
|
|
|
| - message_loop_->RunUntilIdle();
|
| + base::RunLoop().RunUntilIdle();
|
|
|
| ui_controller_->NotifyUIIndicatorDevicesClosed(label);
|
| }
|
| @@ -132,7 +131,7 @@ TEST_F(MediaStreamDeviceUIControllerTest, CreateRequestsAndCancelTheFirst) {
|
| EXPECT_CALL(*this, DevicesAccepted(label_2, _));
|
| EXPECT_CALL(*this, DevicesAccepted(label_3, _));
|
|
|
| - message_loop_->RunUntilIdle();
|
| + base::RunLoop().RunUntilIdle();
|
|
|
| ui_controller_->NotifyUIIndicatorDevicesClosed(label_2);
|
| ui_controller_->NotifyUIIndicatorDevicesClosed(label_3);
|
| @@ -160,7 +159,7 @@ TEST_F(MediaStreamDeviceUIControllerTest, CreateRequestsAndCancelTheLast) {
|
| EXPECT_CALL(*this, DevicesAccepted(label_1, _));
|
| EXPECT_CALL(*this, DevicesAccepted(label_2, _));
|
|
|
| - message_loop_->RunUntilIdle();
|
| + base::RunLoop().RunUntilIdle();
|
|
|
| ui_controller_->NotifyUIIndicatorDevicesClosed(label_1);
|
| ui_controller_->NotifyUIIndicatorDevicesClosed(label_2);
|
|
|