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

Unified Diff: base/test/test_mock_time_task_runner.cc

Issue 2494943005: [ash-md] Added a delay between system menu default/detailed view transitions. (Closed)
Patch Set: Addressed danakj@ comments. Created 4 years, 1 month 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 | « base/test/test_mock_time_task_runner.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_mock_time_task_runner.cc
diff --git a/base/test/test_mock_time_task_runner.cc b/base/test/test_mock_time_task_runner.cc
index 6dfecaf838ba8ee5e5b36f8d067e021e4d51f4c5..f0ba9aa102c4f38d1a273762dad9b60e7b4a28fe 100644
--- a/base/test/test_mock_time_task_runner.cc
+++ b/base/test/test_mock_time_task_runner.cc
@@ -173,6 +173,15 @@ std::unique_ptr<TickClock> TestMockTimeTaskRunner::GetMockTickClock() const {
return MakeUnique<MockTickClock>(this);
}
+std::deque<TestPendingTask> TestMockTimeTaskRunner::TakePendingTasks() {
+ std::deque<TestPendingTask> tasks;
+ while (!tasks_.empty()) {
+ tasks.push_back(tasks_.top());
+ tasks_.pop();
+ }
+ return tasks;
+}
+
bool TestMockTimeTaskRunner::HasPendingTask() const {
DCHECK(thread_checker_.CalledOnValidThread());
return !tasks_.empty();
« no previous file with comments | « base/test/test_mock_time_task_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698