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

Unified Diff: chrome/browser/safe_browsing/malware_details_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/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;

Powered by Google App Engine
This is Rietveld 408576698