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 |