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

Unified Diff: net/quic/test_tools/test_task_runner.h

Issue 2789093003: Mark QUIC broken when the network blackholes after the handshake (Closed)
Patch Set: Created 3 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
Index: net/quic/test_tools/test_task_runner.h
diff --git a/net/quic/test_tools/test_task_runner.h b/net/quic/test_tools/test_task_runner.h
index a7d72e207622f1fd5a275d46db75a87237cbae18..3047b0d1886e8a9f66951aadd88c54cfe27cd2cc 100644
--- a/net/quic/test_tools/test_task_runner.h
+++ b/net/quic/test_tools/test_task_runner.h
@@ -34,8 +34,14 @@ class TestTaskRunner : public base::TaskRunner {
const std::vector<PostedTask>& GetPostedTasks() const;
+ // Finds the next task to run, advances the time to the correct time
+ // and then runs the task.
void RunNextTask();
+ // While there are posted tasks, finds the next task to run, advances the
+ // time to the correct time and then runs the task.
+ void RunUntilIdle();
+
protected:
~TestTaskRunner() override;

Powered by Google App Engine
This is Rietveld 408576698