Index: media/capture/system_message_window_win_unittest.cc |
diff --git a/media/capture/system_message_window_win_unittest.cc b/media/capture/system_message_window_win_unittest.cc |
index 80ff75ce5c998e6fc1a9f51a95575dc16c38a2f1..a913cdc555cd094cd0c4e56569db882843aab02a 100644 |
--- a/media/capture/system_message_window_win_unittest.cc |
+++ b/media/capture/system_message_window_win_unittest.cc |
@@ -10,6 +10,7 @@ |
#include "base/files/file_path.h" |
#include "base/message_loop/message_loop.h" |
+#include "base/run_loop.h" |
#include "base/system_monitor/system_monitor.h" |
#include "base/test/mock_devices_changed_observer.h" |
#include "testing/gmock/include/gmock/gmock.h" |
@@ -35,12 +36,12 @@ class SystemMessageWindowWinTest : public testing::Test { |
TEST_F(SystemMessageWindowWinTest, DevicesChanged) { |
EXPECT_CALL(observer_, OnDevicesChanged(testing::_)).Times(1); |
window_.OnDeviceChange(DBT_DEVNODES_CHANGED, NULL); |
- message_loop_.RunUntilIdle(); |
+ base::RunLoop().RunUntilIdle(); |
} |
TEST_F(SystemMessageWindowWinTest, RandomMessage) { |
window_.OnDeviceChange(DBT_DEVICEQUERYREMOVE, NULL); |
- message_loop_.RunUntilIdle(); |
+ base::RunLoop().RunUntilIdle(); |
} |
} // namespace media |