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

Unified Diff: chrome/browser/printing/print_dialog_cloud_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/printing/print_dialog_cloud_unittest.cc
diff --git a/chrome/browser/printing/print_dialog_cloud_unittest.cc b/chrome/browser/printing/print_dialog_cloud_unittest.cc
index e4a8aae1c0247bdbe7955527dd9fdb8d19c8f3de..3163f998d0e2a60af0c08df78659053a80a1d4df 100644
--- a/chrome/browser/printing/print_dialog_cloud_unittest.cc
+++ b/chrome/browser/printing/print_dialog_cloud_unittest.cc
@@ -260,7 +260,7 @@ TEST_F(CloudPrintDataSenderTest, CanSend) {
BrowserThread::FILE, FROM_HERE,
base::Bind(&CloudPrintDataSender::ReadPrintDataFile,
print_data_sender_.get(), test_data_file_name));
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
}
TEST_F(CloudPrintDataSenderTest, BadFile) {
@@ -275,7 +275,7 @@ TEST_F(CloudPrintDataSenderTest, BadFile) {
BrowserThread::FILE, FROM_HERE,
base::Bind(&CloudPrintDataSender::ReadPrintDataFile,
print_data_sender_.get(), bad_data_file_name));
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
}
TEST_F(CloudPrintDataSenderTest, EmptyFile) {
@@ -286,7 +286,7 @@ TEST_F(CloudPrintDataSenderTest, EmptyFile) {
BrowserThread::FILE, FROM_HERE,
base::Bind(&CloudPrintDataSender::ReadPrintDataFile,
print_data_sender_.get(), empty_data_file_name));
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
}
// Testing for CloudPrintFlowHandler needs a mock

Powered by Google App Engine
This is Rietveld 408576698