summaryrefslogtreecommitdiffstats
path: root/net/test/test_server_win.cc
diff options
context:
space:
mode:
authorlzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 17:00:38 +0000
committerlzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 17:00:38 +0000
commit3b27adfc7ed75f2b5501039895ea9ec05f7266df (patch)
treee23d348bf776ee5efef5d7ebeff28ecacf1f21b0 /net/test/test_server_win.cc
parentc22edd63437194368b171c30cd6be75ba035c2e5 (diff)
downloadchromium_src-3b27adfc7ed75f2b5501039895ea9ec05f7266df.zip
chromium_src-3b27adfc7ed75f2b5501039895ea9ec05f7266df.tar.gz
chromium_src-3b27adfc7ed75f2b5501039895ea9ec05f7266df.tar.bz2
Refactor test_server so some python related functions could be shared by other test servers.
BUG=none TEST=python_utils_unittest.cc Review URL: http://codereview.chromium.org/3366026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/test/test_server_win.cc')
-rw-r--r--net/test/test_server_win.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/net/test/test_server_win.cc b/net/test/test_server_win.cc
index b806cba..7e8443f 100644
--- a/net/test/test_server_win.cc
+++ b/net/test/test_server_win.cc
@@ -74,22 +74,6 @@ bool LaunchTestServerAsJob(const std::wstring& cmdline,
} // namespace
namespace net {
-
-// static
-void TestServer::AppendToPythonPath(const FilePath& dir) {
- const wchar_t kPythonPath[] = L"PYTHONPATH";
- // TODO(dkegel): handle longer PYTHONPATH variables
- wchar_t oldpath[4096];
- if (GetEnvironmentVariable(kPythonPath, oldpath, arraysize(oldpath)) == 0) {
- SetEnvironmentVariableW(kPythonPath, dir.value().c_str());
- } else if (!wcsstr(oldpath, dir.value().c_str())) {
- std::wstring newpath(oldpath);
- newpath.append(L";");
- newpath.append(dir.value());
- SetEnvironmentVariableW(kPythonPath, newpath.c_str());
- }
-}
-
bool TestServer::LaunchPython(const FilePath& testserver_path) {
FilePath python_exe;
if (!PathService::Get(base::DIR_SOURCE_ROOT, &python_exe))