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

Unified Diff: net/test/test_server.cc

Issue 3368012: Wait on a pipe for the test server to start up (Closed)
Patch Set: Sigh. Rebase onto trunk. Created 10 years, 3 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 | « net/test/test_server.h ('k') | net/test/test_server_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/test_server.cc
diff --git a/net/test/test_server.cc b/net/test/test_server.cc
index 4c698b0525fcdb40aa87820027fa1b7463e8443b..536d3517ea87c53e50c35b61f952a23fef8edebe 100644
--- a/net/test/test_server.cc
+++ b/net/test/test_server.cc
@@ -27,7 +27,6 @@
#include "net/base/host_resolver.h"
#include "net/base/test_completion_callback.h"
#include "net/socket/tcp_client_socket.h"
-#include "net/socket/tcp_pinger.h"
#include "net/test/python_utils.h"
#include "testing/platform_test.h"
@@ -256,22 +255,6 @@ bool TestServer::SetPythonPath() {
return true;
}
-bool TestServer::WaitToStart() {
- net::AddressList addr;
- if (!GetAddressList(&addr))
- return false;
-
- net::TCPPinger pinger(addr);
- int rv = pinger.Ping(
- base::TimeDelta::FromMilliseconds(kServerConnectionTimeoutMs),
- kServerConnectionAttempts);
- bool result = (rv == net::OK);
- if (!result) {
- LOG(ERROR) << "Failed to connect to server";
- }
- return result;
-}
-
FilePath TestServer::GetRootCertificatePath() {
return certificates_dir_.AppendASCII("root_ca_cert.crt");
}
« no previous file with comments | « net/test/test_server.h ('k') | net/test/test_server_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698