1*6777b538SAndroid Build Coastguard Worker // Copyright 2010 The Chromium Authors 2*6777b538SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 3*6777b538SAndroid Build Coastguard Worker // found in the LICENSE file. 4*6777b538SAndroid Build Coastguard Worker 5*6777b538SAndroid Build Coastguard Worker #ifndef NET_TEST_PYTHON_UTILS_H_ 6*6777b538SAndroid Build Coastguard Worker #define NET_TEST_PYTHON_UTILS_H_ 7*6777b538SAndroid Build Coastguard Worker 8*6777b538SAndroid Build Coastguard Worker #include <vector> 9*6777b538SAndroid Build Coastguard Worker 10*6777b538SAndroid Build Coastguard Worker #include "base/environment.h" 11*6777b538SAndroid Build Coastguard Worker 12*6777b538SAndroid Build Coastguard Worker namespace base { 13*6777b538SAndroid Build Coastguard Worker class CommandLine; 14*6777b538SAndroid Build Coastguard Worker class FilePath; 15*6777b538SAndroid Build Coastguard Worker } 16*6777b538SAndroid Build Coastguard Worker 17*6777b538SAndroid Build Coastguard Worker // Modifies |map| to use the specified Python path. 18*6777b538SAndroid Build Coastguard Worker void SetPythonPathInEnvironment(const std::vector<base::FilePath>& python_path, 19*6777b538SAndroid Build Coastguard Worker base::EnvironmentMap* map); 20*6777b538SAndroid Build Coastguard Worker 21*6777b538SAndroid Build Coastguard Worker // Returns the command that should be used to launch Python 3. 22*6777b538SAndroid Build Coastguard Worker [[nodiscard]] bool GetPython3Command(base::CommandLine* python_cmd); 23*6777b538SAndroid Build Coastguard Worker 24*6777b538SAndroid Build Coastguard Worker #endif // NET_TEST_PYTHON_UTILS_H_ 25