diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 20:31:31 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 20:31:31 +0000 |
commit | fd6cfaf721f4da81f4fb19983b73f96c1005f0d8 (patch) | |
tree | e85638342ec6e69f72eee8522f4127dcd5dfbfe5 /net/test/test_server.h | |
parent | 09c1973dd93208a0d1d96c8b095dcf9c7cb10043 (diff) | |
download | chromium_src-fd6cfaf721f4da81f4fb19983b73f96c1005f0d8.zip chromium_src-fd6cfaf721f4da81f4fb19983b73f96c1005f0d8.tar.gz chromium_src-fd6cfaf721f4da81f4fb19983b73f96c1005f0d8.tar.bz2 |
testserver.py listens on ephemeral ports by default.
If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order.
TestServer spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. A fixed port can not be specified.
BUG=56814
TEST=try bots pass
Review URL: http://codereview.chromium.org/4733005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65843 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/test/test_server.h')
-rw-r--r-- | net/test/test_server.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/test/test_server.h b/net/test/test_server.h index b92c91d..b639094 100644 --- a/net/test/test_server.h +++ b/net/test/test_server.h @@ -114,7 +114,7 @@ class TestServer { bool Stop(); const FilePath& document_root() const { return document_root_; } - const HostPortPair& host_port_pair() const { return host_port_pair_; } + const HostPortPair& host_port_pair() const; std::string GetScheme() const; bool GetAddressList(AddressList* address_list) const WARN_UNUSED_RESULT; @@ -196,6 +196,9 @@ class TestServer { Type type_; + // Has the server been started? + bool started_; + DISALLOW_COPY_AND_ASSIGN(TestServer); }; |