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

Unified Diff: base/threading/post_task_and_reply_impl_unittest.cc

Issue 2791243002: Rewrite base::Bind into base::BindOnce on trivial cases in base (Closed)
Patch Set: rebase 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 | « base/threading/post_task_and_reply_impl.cc ('k') | base/threading/sequenced_task_runner_handle_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/post_task_and_reply_impl_unittest.cc
diff --git a/base/threading/post_task_and_reply_impl_unittest.cc b/base/threading/post_task_and_reply_impl_unittest.cc
index f1b1d7afa2e3a706c3b3ff94e17682dbebe30837..664c191b5e4544889b57b9034ffd958c77450289 100644
--- a/base/threading/post_task_and_reply_impl_unittest.cc
+++ b/base/threading/post_task_and_reply_impl_unittest.cc
@@ -78,9 +78,9 @@ TEST(PostTaskAndReplyImplTest, PostTaskAndReply) {
PostTaskAndReplyTaskRunner(post_runner.get())
.PostTaskAndReply(
FROM_HERE,
- Bind(&MockObject::Task, Unretained(&mock_object),
- make_scoped_refptr(new ObjectToDelete(&delete_flag))),
- Bind(&MockObject::Reply, Unretained(&mock_object))));
+ BindOnce(&MockObject::Task, Unretained(&mock_object),
+ make_scoped_refptr(new ObjectToDelete(&delete_flag))),
+ BindOnce(&MockObject::Reply, Unretained(&mock_object))));
// Expect the task to be posted to |post_runner|.
EXPECT_TRUE(post_runner->HasPendingTask());
« no previous file with comments | « base/threading/post_task_and_reply_impl.cc ('k') | base/threading/sequenced_task_runner_handle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698