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

Unified Diff: extensions/common/one_shot_event_unittest.cc

Issue 2331423002: Replace TestSimpleTaskRunner::GetPendingTasks with TakePendingTasks (Closed)
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
Index: extensions/common/one_shot_event_unittest.cc
diff --git a/extensions/common/one_shot_event_unittest.cc b/extensions/common/one_shot_event_unittest.cc
index db0bca9fc8846c62f84b6a6b2c85d21b15cffc95..2f76ecba6819fc92312f97f447de07dbf3c0d587 100644
--- a/extensions/common/one_shot_event_unittest.cc
+++ b/extensions/common/one_shot_event_unittest.cc
@@ -33,8 +33,8 @@ TEST(OneShotEventTest, CallsQueue) {
EXPECT_EQ(0U, runner->NumPendingTasks());
event.Signal();
ASSERT_EQ(2U, runner->NumPendingTasks());
- EXPECT_NE(runner->GetPendingTasks()[0].location.line_number(),
- runner->GetPendingTasks()[1].location.line_number())
+ EXPECT_NE(runner->GetPendingTaskLocationAt(0).line_number(),
+ runner->GetPendingTaskLocationAt(1).line_number())
<< "Make sure FROM_HERE is propagated.";
EXPECT_EQ(0, i);
runner->RunPendingTasks();
« base/test/test_simple_task_runner.h ('K') | « device/bluetooth/test/bluetooth_test_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698