Index: net/test/local_test_server.h |
diff --git a/net/test/local_test_server.h b/net/test/local_test_server.h |
index 3c6bddec38753183d47dac181e006d82b35ddb57..b7bdc05aa1a12e73c2e1918977d1be94649c16f7 100644 |
--- a/net/test/local_test_server.h |
+++ b/net/test/local_test_server.h |
@@ -37,8 +37,21 @@ class LocalTestServer : public BaseTestServer { |
virtual ~LocalTestServer(); |
+ // Start the test server and block until it's ready. Returns true on success, |
+ // false on failure. |
bool Start() WARN_UNUSED_RESULT; |
+ // Start the test server without blocking. Use this if you need multiple test |
+ // servers (such as WebSockets and HTTP, or HTTP and HTTPS). You must call |
+ // BlockUntilStarted on all servers your test requires before executing the |
+ // test. Returns true on success, false on failure. |
+ bool StartInBackground() WARN_UNUSED_RESULT; |
+ |
+ // Block until ths test server is ready. You must call BlockUntilStarted() on |
+ // all servers your test requires before executing the test. Returns true on |
+ // success, false on failure. |
+ bool BlockUntilStarted() WARN_UNUSED_RESULT; |
+ |
// Stop the server started by Start(). |
bool Stop(); |