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

Unified Diff: chrome/browser/net/chrome_fraudulent_certificate_reporter_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/net/chrome_fraudulent_certificate_reporter_unittest.cc
diff --git a/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc b/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc
index ad2a97852c1733acb3b2fd35d5ebf9127084078c..d7bebeb67fa8fd218f0a7fab62de0ebfdc273347 100644
--- a/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc
+++ b/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc
@@ -188,21 +188,21 @@ TEST(ChromeFraudulentCertificateReporterTest, ReportIsSent) {
MessageLoop loop(MessageLoop::TYPE_IO);
content::TestBrowserThread io_thread(BrowserThread::IO, &loop);
loop.PostTask(FROM_HERE, base::Bind(&DoReportIsSent));
- loop.RunAllPending();
+ loop.RunUntilIdle();
}
TEST(ChromeFraudulentCertificateReporterTest, MockReportIsSent) {
MessageLoop loop(MessageLoop::TYPE_IO);
content::TestBrowserThread io_thread(BrowserThread::IO, &loop);
loop.PostTask(FROM_HERE, base::Bind(&DoMockReportIsSent));
- loop.RunAllPending();
+ loop.RunUntilIdle();
}
TEST(ChromeFraudulentCertificateReporterTest, ReportIsNotSent) {
MessageLoop loop(MessageLoop::TYPE_IO);
content::TestBrowserThread io_thread(BrowserThread::IO, &loop);
loop.PostTask(FROM_HERE, base::Bind(&DoReportIsNotSent));
- loop.RunAllPending();
+ loop.RunUntilIdle();
}
} // namespace chrome_browser_net

Powered by Google App Engine
This is Rietveld 408576698