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

Unified Diff: chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc

Issue 2821193005: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/safe_browsing (Closed)
Patch Set: Created 3 years, 8 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
Index: chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc
diff --git a/chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc b/chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc
index f2b778136da697a7a612f0de4a4ff5b3966ba667..aff63ebb4dc32bbcf372c90d23ae41738d3a6b2f 100644
--- a/chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc
+++ b/chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc
@@ -349,7 +349,7 @@ class CertificateReportingServiceTest : public ::testing::Test {
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
- base::Bind(
+ base::BindOnce(
&CertificateReportingServiceTest::SetUpURLRequestContextOnIOThread,
base::Unretained(this)));
WaitForIOThread();
@@ -378,10 +378,10 @@ class CertificateReportingServiceTest : public ::testing::Test {
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
- base::Bind(&CertificateReportingServiceTest::TearDownOnIOThread,
- base::Unretained(this)));
+ base::BindOnce(&CertificateReportingServiceTest::TearDownOnIOThread,
+ base::Unretained(this)));
content::BrowserThread::PostTask(content::BrowserThread::IO, FROM_HERE,
- base::Bind(&ClearURLHandlers));
+ base::BindOnce(&ClearURLHandlers));
WaitForIOThread();
histogram_test_helper_.CheckHistogram();
@@ -410,15 +410,15 @@ class CertificateReportingServiceTest : public ::testing::Test {
void AdvanceClock(base::TimeDelta delta) {
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
- base::Bind(&base::SimpleTestClock::Advance,
- base::Unretained(clock_.get()), delta));
+ base::BindOnce(&base::SimpleTestClock::Advance,
+ base::Unretained(clock_.get()), delta));
}
void SetNow(base::Time now) {
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
- base::Bind(&base::SimpleTestClock::SetNow,
- base::Unretained(clock_.get()), now));
+ base::BindOnce(&base::SimpleTestClock::SetNow,
+ base::Unretained(clock_.get()), now));
}
void SetExpectedFailedReportCountOnTearDown(unsigned int count) {

Powered by Google App Engine
This is Rietveld 408576698