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

Unified Diff: cc/test/ordered_simple_task_runner_unittest.cc

Issue 2122543002: Replace Closure in TaskRunner::PostTask with OneShotCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@07_oneshot
Patch Set: fix Created 4 years, 3 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 | « cc/test/ordered_simple_task_runner.cc ('k') | chrome/browser/after_startup_task_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/ordered_simple_task_runner_unittest.cc
diff --git a/cc/test/ordered_simple_task_runner_unittest.cc b/cc/test/ordered_simple_task_runner_unittest.cc
index df6975bde75a36c61dc50b3aa21350877a0df614..843c47e5169600c132db661fac937fec573842b8 100644
--- a/cc/test/ordered_simple_task_runner_unittest.cc
+++ b/cc/test/ordered_simple_task_runner_unittest.cc
@@ -48,8 +48,8 @@ TEST(TestOrderablePendingTask, Ordering) {
EXPECT_LT(b, c);
EXPECT_LT(a, c);
- TestOrderablePendingTask a2 = a;
- EXPECT_EQ(a, a2);
+ TestOrderablePendingTask a2 = std::move(a);
+ EXPECT_EQ(a2, a2);
EXPECT_LT(a2, b);
EXPECT_LT(b, c);
EXPECT_LT(a2, c);
« no previous file with comments | « cc/test/ordered_simple_task_runner.cc ('k') | chrome/browser/after_startup_task_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698