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

Unified Diff: net/test/test_server_posix.cc

Issue 9545019: Add "run_testserver --sync-test" for easy chromiumsync_test.py launching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
Index: net/test/test_server_posix.cc
diff --git a/net/test/test_server_posix.cc b/net/test/test_server_posix.cc
index f15acc3b84d0dfb30f32381a709c232caf2fb9d5..73509f8ec63e721c7c610f0876bec0263b031af8 100644
--- a/net/test/test_server_posix.cc
+++ b/net/test/test_server_posix.cc
@@ -93,8 +93,13 @@ bool ReadData(int fd, ssize_t bytes_max, uint8* buffer,
namespace net {
+// static
+FilePath TestServer::GetAbsolutePythonCommandPath() {
+ return FilePath(FILE_PATH_LITERAL("python"));
+}
+
bool TestServer::LaunchPython(const FilePath& testserver_path) {
- CommandLine python_command(FilePath(FILE_PATH_LITERAL("python")));
+ CommandLine python_command(GetAbsolutePythonCommandPath());
python_command.AppendArgPath(testserver_path);
if (!AddCommandLineArguments(&python_command))
return false;

Powered by Google App Engine
This is Rietveld 408576698