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

Unified Diff: net/test/python_utils.h

Issue 2526553002: Fix net_unittests when run in a virtualenv. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | net/test/python_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/python_utils.h
diff --git a/net/test/python_utils.h b/net/test/python_utils.h
index c72c9445dcbc456c4ea1251bc162fce9e9df965c..aba4addddcacf6c1a63ee1672d55808f6d8deee8 100644
--- a/net/test/python_utils.h
+++ b/net/test/python_utils.h
@@ -24,6 +24,9 @@ void AppendToPythonPath(const base::FilePath& dir);
// Return the location of the compiler-generated python protobuf.
bool GetPyProtoPath(base::FilePath* dir);
+// Returns if a virtualenv is currently active.
+bool IsInPythonVirtualEnv();
+
// Returns the command that should be used to launch Python.
bool GetPythonCommand(base::CommandLine* python_cmd) WARN_UNUSED_RESULT;
« no previous file with comments | « no previous file | net/test/python_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698