| Index: chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc
|
| diff --git a/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc b/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc
|
| index d7972a649d79736d92b136aa5013aa76550dd1e0..fd11ac76447aad67d3adb576ab1ec6cd56da9e0e 100644
|
| --- a/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc
|
| +++ b/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/location.h"
|
| #include "base/macros.h"
|
| #include "base/message_loop/message_loop.h"
|
| +#include "base/run_loop.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| #include "build/build_config.h"
|
| @@ -64,7 +65,7 @@ TEST_F(DesktopMediaListAshTest, Screen) {
|
| .WillOnce(QuitMessageLoop())
|
| .WillRepeatedly(DoDefault());
|
| list_->StartUpdating(&observer_);
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| }
|
|
|
| TEST_F(DesktopMediaListAshTest, OneWindow) {
|
| @@ -83,9 +84,9 @@ TEST_F(DesktopMediaListAshTest, OneWindow) {
|
| .WillOnce(QuitMessageLoop());
|
|
|
| list_->StartUpdating(&observer_);
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| window.reset();
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| }
|
|
|
| TEST_F(DesktopMediaListAshTest, ScreenOnly) {
|
| @@ -99,7 +100,7 @@ TEST_F(DesktopMediaListAshTest, ScreenOnly) {
|
| .WillRepeatedly(DoDefault());
|
|
|
| list_->StartUpdating(&observer_);
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| }
|
|
|
| // Times out on Win DrMemory bot. http://crbug.com/493187
|
| @@ -122,7 +123,7 @@ TEST_F(DesktopMediaListAshTest, MAYBE_WindowOnly) {
|
| .WillOnce(QuitMessageLoop());
|
|
|
| list_->StartUpdating(&observer_);
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| window.reset();
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| }
|
|
|