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

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

Issue 2789093003: Mark QUIC broken when the network blackholes after the handshake (Closed)
Patch Set: Rename mark_quic_broken_when_network_suspected to mark_quic_broken_when_network_blackholes Created 3 years, 8 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/chromium/test_task_runner.h
diff --git a/net/quic/chromium/test_task_runner.h b/net/quic/chromium/test_task_runner.h
index 0c6478e1b5a0156944844c6732afbb298d5be3ab..aafec64093cc2957a732027a8e9e9ebf7401c67e 100644
--- a/net/quic/chromium/test_task_runner.h
+++ b/net/quic/chromium/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