Index: chrome/browser/ssl/chrome_fraudulent_certificate_reporter_unittest.cc |
diff --git a/chrome/browser/ssl/chrome_fraudulent_certificate_reporter_unittest.cc b/chrome/browser/ssl/chrome_fraudulent_certificate_reporter_unittest.cc |
index a321388c67826d3b6c4be79bd39b5f5ecda6c021..79ae4280eec9eab95d4b901f8e56095fb5ea2ff4 100644 |
--- a/chrome/browser/ssl/chrome_fraudulent_certificate_reporter_unittest.cc |
+++ b/chrome/browser/ssl/chrome_fraudulent_certificate_reporter_unittest.cc |
@@ -8,8 +8,10 @@ |
#include "base/bind.h" |
#include "base/files/file_path.h" |
+#include "base/location.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/message_loop/message_loop.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/synchronization/waitable_event.h" |
#include "base/threading/thread.h" |
#include "chrome/browser/net/certificate_error_reporter.h" |
@@ -172,21 +174,21 @@ TEST(ChromeFraudulentCertificateReporterTest, GoodBadInfo) { |
TEST(ChromeFraudulentCertificateReporterTest, ReportIsSent) { |
base::MessageLoopForIO loop; |
content::TestBrowserThread io_thread(BrowserThread::IO, &loop); |
- loop.PostTask(FROM_HERE, base::Bind(&DoReportIsSent)); |
+ loop.task_runner()->PostTask(FROM_HERE, base::Bind(&DoReportIsSent)); |
loop.RunUntilIdle(); |
} |
TEST(ChromeFraudulentCertificateReporterTest, MockReportIsSent) { |
base::MessageLoopForIO loop; |
content::TestBrowserThread io_thread(BrowserThread::IO, &loop); |
- loop.PostTask(FROM_HERE, base::Bind(&DoMockReportIsSent)); |
+ loop.task_runner()->PostTask(FROM_HERE, base::Bind(&DoMockReportIsSent)); |
loop.RunUntilIdle(); |
} |
TEST(ChromeFraudulentCertificateReporterTest, ReportIsNotSent) { |
base::MessageLoopForIO loop; |
content::TestBrowserThread io_thread(BrowserThread::IO, &loop); |
- loop.PostTask(FROM_HERE, base::Bind(&DoReportIsNotSent)); |
+ loop.task_runner()->PostTask(FROM_HERE, base::Bind(&DoReportIsNotSent)); |
loop.RunUntilIdle(); |
} |