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

Unified Diff: chrome/browser/ssl/chrome_fraudulent_certificate_reporter_unittest.cc

Issue 1143343005: chrome/browser: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 months 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
« no previous file with comments | « chrome/browser/spellchecker/feedback_sender.cc ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « chrome/browser/spellchecker/feedback_sender.cc ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698