summaryrefslogtreecommitdiffstats
path: root/net/proxy
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-03 18:57:22 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-03 18:57:22 +0000
commitce7d0cbc07beeac9515f0343c6d56e77ee83879a (patch)
treee7fa63e776a5fa9873e735a0b1b31b7c19249945 /net/proxy
parent47914ce872d5e3c1901eeeb44c02dd197c01992d (diff)
downloadchromium_src-ce7d0cbc07beeac9515f0343c6d56e77ee83879a.zip
chromium_src-ce7d0cbc07beeac9515f0343c6d56e77ee83879a.tar.gz
chromium_src-ce7d0cbc07beeac9515f0343c6d56e77ee83879a.tar.bz2
GTTF: rename net::TestServer -> net::SpawnedTestServer
This is a part of replacing most usages of the Python test server with an in-process C++ test server that should be easier to debug. BUG=96594 R=rch@chromium.org Review URL: https://codereview.chromium.org/14702004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198151 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy')
-rw-r--r--net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc8
-rw-r--r--net/proxy/proxy_resolver_perftest.cc8
-rw-r--r--net/proxy/proxy_script_fetcher_impl_unittest.cc8
3 files changed, 12 insertions, 12 deletions
diff --git a/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc b/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc
index 1cb389a..b192dbb 100644
--- a/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc
+++ b/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc
@@ -12,7 +12,7 @@
#include "net/base/test_completion_callback.h"
#include "net/proxy/mock_proxy_script_fetcher.h"
#include "net/proxy/proxy_script_fetcher_impl.h"
-#include "net/test/test_server.h"
+#include "net/test/spawned_test_server.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -269,9 +269,9 @@ class MockDhcpRealFetchProxyScriptAdapterFetcher
};
TEST(DhcpProxyScriptAdapterFetcher, MockDhcpRealFetch) {
- TestServer test_server(
- TestServer::TYPE_HTTP,
- net::TestServer::kLocalhost,
+ SpawnedTestServer test_server(
+ SpawnedTestServer::TYPE_HTTP,
+ SpawnedTestServer::kLocalhost,
base::FilePath(
FILE_PATH_LITERAL("net/data/proxy_script_fetcher_unittest")));
ASSERT_TRUE(test_server.Start());
diff --git a/net/proxy/proxy_resolver_perftest.cc b/net/proxy/proxy_resolver_perftest.cc
index 4492120..0a0f2ec 100644
--- a/net/proxy/proxy_resolver_perftest.cc
+++ b/net/proxy/proxy_resolver_perftest.cc
@@ -12,7 +12,7 @@
#include "net/dns/mock_host_resolver.h"
#include "net/proxy/proxy_info.h"
#include "net/proxy/proxy_resolver_v8.h"
-#include "net/test/test_server.h"
+#include "net/test/spawned_test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
#if defined(OS_WIN)
@@ -86,8 +86,8 @@ class PacPerfSuiteRunner {
: resolver_(resolver),
resolver_name_(resolver_name),
test_server_(
- net::TestServer::TYPE_HTTP,
- net::TestServer::kLocalhost,
+ net::SpawnedTestServer::TYPE_HTTP,
+ net::SpawnedTestServer::kLocalhost,
base::FilePath(
FILE_PATH_LITERAL("net/data/proxy_resolver_perftest"))) {
}
@@ -178,7 +178,7 @@ class PacPerfSuiteRunner {
net::ProxyResolver* resolver_;
std::string resolver_name_;
- net::TestServer test_server_;
+ net::SpawnedTestServer test_server_;
};
#if defined(OS_WIN)
diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc
index cca4b85..3c23528 100644
--- a/net/proxy/proxy_script_fetcher_impl_unittest.cc
+++ b/net/proxy/proxy_script_fetcher_impl_unittest.cc
@@ -20,7 +20,7 @@
#include "net/http/http_network_session.h"
#include "net/http/http_server_properties_impl.h"
#include "net/ssl/ssl_config_service_defaults.h"
-#include "net/test/test_server.h"
+#include "net/test/spawned_test_server.h"
#include "net/url_request/url_request_context_storage.h"
#include "net/url_request/url_request_file_job.h"
#include "net/url_request/url_request_job_factory_impl.h"
@@ -182,14 +182,14 @@ class BasicNetworkDelegate : public NetworkDelegate {
class ProxyScriptFetcherImplTest : public PlatformTest {
public:
ProxyScriptFetcherImplTest()
- : test_server_(TestServer::TYPE_HTTP,
- net::TestServer::kLocalhost,
+ : test_server_(SpawnedTestServer::TYPE_HTTP,
+ net::SpawnedTestServer::kLocalhost,
base::FilePath(kDocRoot)) {
context_.set_network_delegate(&network_delegate_);
}
protected:
- TestServer test_server_;
+ SpawnedTestServer test_server_;
BasicNetworkDelegate network_delegate_;
RequestContext context_;
};