Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Unified Diff: chrome/browser/system_monitor/media_device_notifications_utils_unittest.cc

Issue 11413050: chrome/browser: Update calls from RunAllPending() to RunUntilIdle(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698