| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_TEST_PYTHON_UTILS_H_ | 5 #ifndef NET_TEST_PYTHON_UTILS_H_ |
| 6 #define NET_TEST_PYTHON_UTILS_H_ | 6 #define NET_TEST_PYTHON_UTILS_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 | 9 |
| 10 class CommandLine; | 10 class CommandLine; |
| 11 |
| 12 namespace base { |
| 11 class FilePath; | 13 class FilePath; |
| 14 } |
| 12 | 15 |
| 13 // This is the python path variable name. | 16 // This is the python path variable name. |
| 14 extern const char kPythonPathEnv[]; | 17 extern const char kPythonPathEnv[]; |
| 15 | 18 |
| 16 // Appends the dir to python path environment variable. | 19 // Appends the dir to python path environment variable. |
| 17 void AppendToPythonPath(const FilePath& dir); | 20 void AppendToPythonPath(const base::FilePath& dir); |
| 18 | 21 |
| 19 // Return the location of the compiler-generated python protobuf. | 22 // Return the location of the compiler-generated python protobuf. |
| 20 bool GetPyProtoPath(FilePath* dir); | 23 bool GetPyProtoPath(base::FilePath* dir); |
| 21 | 24 |
| 22 // Returns the command that should be used to launch Python. | 25 // Returns the command that should be used to launch Python. |
| 23 bool GetPythonCommand(CommandLine* python_cmd) WARN_UNUSED_RESULT; | 26 bool GetPythonCommand(CommandLine* python_cmd) WARN_UNUSED_RESULT; |
| 24 | 27 |
| 25 #endif // NET_TEST_PYTHON_UTILS_H_ | 28 #endif // NET_TEST_PYTHON_UTILS_H_ |
| OLD | NEW |