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

Unified Diff: components/policy/core/common/policy_statistics_collector_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: components/policy/core/common/policy_statistics_collector_unittest.cc
diff --git a/components/policy/core/common/policy_statistics_collector_unittest.cc b/components/policy/core/common/policy_statistics_collector_unittest.cc
index d5bf09cb99866fb05cab889191d067bfd4b79052..fd498d5590b2df3105c8d54d1caab51dbc9f0105 100644
--- a/components/policy/core/common/policy_statistics_collector_unittest.cc
+++ b/components/policy/core/common/policy_statistics_collector_unittest.cc
@@ -117,7 +117,7 @@ class PolicyStatisticsCollectorTest : public testing::Test {
ADD_FAILURE();
return base::TimeDelta();
}
- return task_runner_->GetPendingTasks().front().delay;
+ return task_runner_->NextPendingTaskDelay();
}
const base::TimeDelta update_delay_;

Powered by Google App Engine
This is Rietveld 408576698