summaryrefslogtreecommitdiffstats
path: root/net/test
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 14:39:08 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 14:39:08 +0000
commit3d0a309134292d1a19253391503dbdcb657df7a9 (patch)
tree176726adf90bad60a969dcc7866f9635aad6f497 /net/test
parenta66397e4836935deec66807fa13650ad342de641 (diff)
downloadchromium_src-3d0a309134292d1a19253391503dbdcb657df7a9.zip
chromium_src-3d0a309134292d1a19253391503dbdcb657df7a9.tar.gz
chromium_src-3d0a309134292d1a19253391503dbdcb657df7a9.tar.bz2
Remove TestServer::WaitToFinish, it is now unused.
BUG=none TEST=none Review URL: http://codereview.chromium.org/3555012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/test')
-rw-r--r--net/test/test_server.cc14
-rw-r--r--net/test/test_server.h6
2 files changed, 0 insertions, 20 deletions
diff --git a/net/test/test_server.cc b/net/test/test_server.cc
index a1e1f13..55d0faf 100644
--- a/net/test/test_server.cc
+++ b/net/test/test_server.cc
@@ -170,20 +170,6 @@ bool TestServer::Stop() {
return ret;
}
-bool TestServer::WaitToFinish(int timeout_ms) {
- if (!process_handle_)
- return true;
-
- bool ret = base::WaitForSingleProcess(process_handle_, timeout_ms);
- if (ret) {
- base::CloseProcessHandle(process_handle_);
- process_handle_ = base::kNullProcessHandle;
- } else {
- LOG(ERROR) << "Timed out.";
- }
- return ret;
-}
-
std::string TestServer::GetScheme() const {
switch (type_) {
case TYPE_FTP:
diff --git a/net/test/test_server.h b/net/test/test_server.h
index 6baaaec..4e68fd9 100644
--- a/net/test/test_server.h
+++ b/net/test/test_server.h
@@ -52,12 +52,6 @@ class TestServer {
// Stop the server started by Start().
bool Stop();
- // If you access the server's Kill url, it will exit by itself
- // without a call to Stop().
- // WaitToFinish is handy in that case.
- // It returns true if the server exited cleanly.
- bool WaitToFinish(int milliseconds) WARN_UNUSED_RESULT;
-
const FilePath& document_root() const { return document_root_; }
const HostPortPair& host_port_pair() const { return host_port_pair_; }
std::string GetScheme() const;