Re-enable HttpServer.Basic unittest.

This patch makes the p2p-http-server use a kernel assigned port to
allow several instances run in parallel and makes the test wait until
the p2p-http-server process is accepting connections.

This fixes the flakiness of this test and re-enables it.

BUG=chromium:289444
TEST=unittests.

Change-Id: Ibc89b088c9a94dc3454ebc13a819f738f562c242
Reviewed-on: https://chromium-review.googlesource.com/169053
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
1 file changed