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

Unified Diff: chrome/browser/sync_file_system/sync_file_system_service_unittest.cc

Issue 2826943002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/sync_file_system (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
« no previous file with comments | « chrome/browser/sync_file_system/sync_file_system_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/sync_file_system_service_unittest.cc
diff --git a/chrome/browser/sync_file_system/sync_file_system_service_unittest.cc b/chrome/browser/sync_file_system/sync_file_system_service_unittest.cc
index 84752198d2f82a5775d749e0d9b9c5ea55294420..ec05395904f805aec5a1a064070406a8951d5089 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service_unittest.cc
+++ b/chrome/browser/sync_file_system/sync_file_system_service_unittest.cc
@@ -104,7 +104,7 @@ ACTION_P3(NotifyStateAndCallback,
mock_remote_service->NotifyRemoteServiceStateUpdated(
service_state, "Test event.");
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(arg1, operation_status));
+ FROM_HERE, base::BindOnce(arg1, operation_status));
}
ACTION_P(RecordState, states) {
@@ -112,13 +112,13 @@ ACTION_P(RecordState, states) {
}
ACTION_P(MockStatusCallback, status) {
- base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(arg4, status));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ base::BindOnce(arg4, status));
}
ACTION_P2(MockSyncFileCallback, status, url) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(arg0, status, url));
+ FROM_HERE, base::BindOnce(arg0, status, url));
}
ACTION(InvokeCompletionClosure) {
@@ -424,12 +424,11 @@ TEST_F(SyncFileSystemServiceTest, SimpleSyncFlowWithFileBusy) {
// Start a local operation on the same file (to make it BUSY).
base::RunLoop verify_file_error_run_loop;
BrowserThread::PostTask(
- BrowserThread::IO,
- FROM_HERE,
- base::Bind(&CannedSyncableFileSystem::DoCreateFile,
- base::Unretained(file_system_.get()),
- kFile, base::Bind(&VerifyFileError,
- verify_file_error_run_loop.QuitClosure())));
+ BrowserThread::IO, FROM_HERE,
+ base::BindOnce(&CannedSyncableFileSystem::DoCreateFile,
+ base::Unretained(file_system_.get()), kFile,
+ base::Bind(&VerifyFileError,
+ verify_file_error_run_loop.QuitClosure())));
run_loop.Run();
« no previous file with comments | « chrome/browser/sync_file_system/sync_file_system_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698