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

Unified Diff: cc/base/delayed_unique_notifier_unittest.cc

Issue 2331423002: Replace TestSimpleTaskRunner::GetPendingTasks with TakePendingTasks (Closed)
Patch Set: split test 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: cc/base/delayed_unique_notifier_unittest.cc
diff --git a/cc/base/delayed_unique_notifier_unittest.cc b/cc/base/delayed_unique_notifier_unittest.cc
index f30834e460f4ad98b1fa618bd9490d9c44403f32..ae9ad17e9972d9c2dc4d314c86edc62ba2627891 100644
--- a/cc/base/delayed_unique_notifier_unittest.cc
+++ b/cc/base/delayed_unique_notifier_unittest.cc
@@ -45,9 +45,7 @@ class DelayedUniqueNotifierTest : public testing::Test {
int NotificationCount() const { return notification_count_; }
std::deque<base::TestPendingTask> TakePendingTasks() {
- std::deque<base::TestPendingTask> tasks = task_runner_->GetPendingTasks();
- task_runner_->ClearPendingTasks();
- return tasks;
+ return task_runner_->TakePendingTasks();
}
protected:
« no previous file with comments | « base/test/test_simple_task_runner.cc ('k') | chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698