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

Unified Diff: headless/app/headless_shell_switches.cc

Issue 2219143002: Add a --virtual-time-budget option to headless_shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 4 years, 4 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 | « headless/app/headless_shell_switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/app/headless_shell_switches.cc
diff --git a/headless/app/headless_shell_switches.cc b/headless/app/headless_shell_switches.cc
index c748b9b133705dcb76c49fada18e738040cac9c6..a0afc6943108d3363719591f3b72e49d7d27e8ad 100644
--- a/headless/app/headless_shell_switches.cc
+++ b/headless/app/headless_shell_switches.cc
@@ -34,6 +34,14 @@ const char kUseGL[] = "use-gl";
// Directory where the browser stores the user profile.
const char kUserDataDir[] = "user-data-dir";
+// If set the system waits the specified number of virtual milliseconds before
+// deeming the page to be ready. For determinism virtual time does not advance
+// while there are pending network fetches (i.e no timers will fire). Once all
+// network fetches have completed, timers fire and if the system runs out of
+// virtual time is fastforwarded so the next timer fires immediatley, until the
+// specified virtual time budget is exhausted.
+const char kVirtualTimeBudget[] = "virtual-time-budget";
+
// Sets the initial window size. Provided as string in the format "800x600".
const char kWindowSize[] = "window-size";
« no previous file with comments | « headless/app/headless_shell_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698