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

Unified Diff: base/threading/post_task_and_reply_impl_unittest.cc

Issue 2657603004: Clear PostTaskAndReply task on the destination thread (3) (Closed)
Patch Set: rebase Created 3 years, 11 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 8c6faaf8c0afc9a8d01a999f8238c4ecf8823556..b7e5d70e631fe11de97e2b13a06174d66880186b 100644
--- a/base/threading/post_task_and_reply_impl_unittest.cc
+++ b/base/threading/post_task_and_reply_impl_unittest.cc
@@ -97,8 +97,8 @@ TEST(PostTaskAndReplyImplTest, PostTaskAndReply) {
post_runner->RunUntilIdle();
testing::Mock::VerifyAndClear(&mock_object);
- // Expect the task's argument not to have been deleted yet.
- EXPECT_FALSE(delete_flag);
+ // Expect the task's argument to have been deleted.
+ EXPECT_TRUE(delete_flag);
// Expect the reply to be posted to |reply_runner|.
EXPECT_FALSE(post_runner->HasPendingTask());

Powered by Google App Engine
This is Rietveld 408576698