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 FilePath; | 11 class FilePath; |
11 | 12 |
12 // This is the python path variable name. | 13 // This is the python path variable name. |
13 extern const char kPythonPathEnv[]; | 14 extern const char kPythonPathEnv[]; |
14 | 15 |
15 // Appends the dir to python path environment variable. | 16 // Appends the dir to python path environment variable. |
16 void AppendToPythonPath(const FilePath& dir); | 17 void AppendToPythonPath(const FilePath& dir); |
17 | 18 |
18 // Return the location of the compiler-generated python protobuf. | 19 // Return the location of the compiler-generated python protobuf. |
19 bool GetPyProtoPath(FilePath* dir); | 20 bool GetPyProtoPath(FilePath* dir); |
20 | 21 |
21 // Returns the path that should be used to launch Python. | 22 // Returns the command that should be used to launch Python. |
22 bool GetPythonRunTime(FilePath* path) WARN_UNUSED_RESULT; | 23 bool GetPythonRunTime(CommandLine* python_cmd) WARN_UNUSED_RESULT; |
Paweł Hajdan Jr.
2012/09/12 10:37:25
nit: Please also rename the function, GetPythonRun
Raghu Simha
2012/09/12 18:31:20
Done.
| |
23 | 24 |
24 #endif // NET_TEST_PYTHON_UTILS_H_ | 25 #endif // NET_TEST_PYTHON_UTILS_H_ |
OLD | NEW |