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

Unified Diff: base/test/test_mock_time_task_runner.h

Issue 994903002: Add ability to clear pending tasks of TestMockTimeTaskRunner without running the tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | base/test/test_mock_time_task_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_mock_time_task_runner.h
diff --git a/base/test/test_mock_time_task_runner.h b/base/test/test_mock_time_task_runner.h
index 5f06013cfa7e0253425fa329a687c50c3e19c176..c38fd6d9aca13c6f4a9a654bb0984b0ae6d5156d 100644
--- a/base/test/test_mock_time_task_runner.h
+++ b/base/test/test_mock_time_task_runner.h
@@ -61,6 +61,9 @@ class TestMockTimeTaskRunner : public SingleThreadTaskRunner {
// elapse.
void RunUntilIdle();
+ // Clears the queue of pending tasks without running them.
+ void ClearPendingTasks();
+
// Returns the current virtual time (initially starting at the Unix epoch).
Time Now() const;
« no previous file with comments | « no previous file | base/test/test_mock_time_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698