#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "net/test/spawned_test_server/local_test_server.h"
#include <poll.h>
#include <vector>
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/process/kill.h"
#include "base/process/launch.h"
#include "base/process/process_iterator.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "net/test/python_utils.h"
namespace {
class OrphanedTestServerFilter : public base::ProcessFilter { … };
bool ReadData(int fd, ssize_t bytes_max, uint8_t* buffer) { … }
}
namespace net {
bool LocalTestServer::LaunchPython(
const base::FilePath& testserver_path,
const std::vector<base::FilePath>& python_path) { … }
bool LocalTestServer::WaitToStart() { … }
}