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

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: Created 3 years, 9 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: 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());

Powered by Google App Engine
This is Rietveld 408576698