Index: chrome/browser/safe_browsing/malware_details_unittest.cc |
diff --git a/chrome/browser/safe_browsing/malware_details_unittest.cc b/chrome/browser/safe_browsing/malware_details_unittest.cc |
index 0825e1568ac7d6a9904743392d61bff28cd73f93..ae183b69461a81adac39d03a93fae336616c9649 100644 |
--- a/chrome/browser/safe_browsing/malware_details_unittest.cc |
+++ b/chrome/browser/safe_browsing/malware_details_unittest.cc |
@@ -412,7 +412,7 @@ TEST_F(MalwareDetailsTest, MalwareDOMDetails) { |
params.push_back(parent_node); |
report->OnReceivedMalwareDOMDetails(params); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
std::string serialized = WaitForSerializedReport(report); |
ClientMalwareReportRequest actual; |
@@ -544,7 +544,7 @@ TEST_F(MalwareDetailsTest, HTTPCache) { |
report->OnReceivedMalwareDOMDetails(params); |
// Let the cache callbacks complete |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
DVLOG(1) << "Getting serialized report"; |
std::string serialized = WaitForSerializedReport(report); |
@@ -615,7 +615,7 @@ TEST_F(MalwareDetailsTest, HTTPCacheNoEntries) { |
report->OnReceivedMalwareDOMDetails(params); |
// Let the cache callbacks complete |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
DVLOG(1) << "Getting serialized report"; |
std::string serialized = WaitForSerializedReport(report); |
@@ -664,7 +664,7 @@ TEST_F(MalwareDetailsTest, HistoryServiceUrls) { |
report->OnReceivedMalwareDOMDetails(params); |
// Let the redirects callbacks complete. |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
std::string serialized = WaitForSerializedReport(report); |
ClientMalwareReportRequest actual; |