Index: chrome/browser/system_monitor/media_device_notifications_utils_unittest.cc |
diff --git a/chrome/browser/system_monitor/media_device_notifications_utils_unittest.cc b/chrome/browser/system_monitor/media_device_notifications_utils_unittest.cc |
index 2a0470ea75dfcc09717a75bcc0869e400b514a68..15bfc47693473fc4a72a4897f5f4fb1560dce6a5 100644 |
--- a/chrome/browser/system_monitor/media_device_notifications_utils_unittest.cc |
+++ b/chrome/browser/system_monitor/media_device_notifications_utils_unittest.cc |
@@ -82,7 +82,7 @@ TEST_F(MediaDeviceNotificationUtilsTest, MediaDeviceAttached) { |
BrowserThread::FILE, FROM_HERE, |
base::Bind(&MediaDeviceNotificationUtilsTest::checkDeviceType, |
base::Unretained(this), mount_point.value(), true)); |
- message_loop_.RunAllPending(); |
+ message_loop_.RunUntilIdle(); |
} |
// Test to verify that IsMediaDevice() function returns false for a given |
@@ -94,7 +94,7 @@ TEST_F(MediaDeviceNotificationUtilsTest, NonMediaDeviceAttached) { |
BrowserThread::FILE, FROM_HERE, |
base::Bind(&MediaDeviceNotificationUtilsTest::checkDeviceType, |
base::Unretained(this), mount_point.value(), false)); |
- message_loop_.RunAllPending(); |
+ message_loop_.RunUntilIdle(); |
} |
} // namespace chrome |