#include "net/test/spawned_test_server/local_test_server.h"
#include "base/command_line.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/threading/thread_restrictions.h"
#include "base/values.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_errors.h"
#include "net/test/python_utils.h"
#include "url/gurl.h"
namespace net {
namespace {
bool AppendArgumentFromJSONValue(const std::string& key,
const base::Value& value_node,
base::CommandLine* command_line) { … }
}
LocalTestServer::LocalTestServer(Type type, const base::FilePath& document_root)
: … { … }
LocalTestServer::LocalTestServer(Type type,
const SSLOptions& ssl_options,
const base::FilePath& document_root)
: … { … }
LocalTestServer::~LocalTestServer() { … }
bool LocalTestServer::GetTestServerPath(base::FilePath* testserver_path) const { … }
bool LocalTestServer::StartInBackground() { … }
bool LocalTestServer::BlockUntilStarted() { … }
bool LocalTestServer::Stop() { … }
bool LocalTestServer::Init(const base::FilePath& document_root) { … }
std::optional<std::vector<base::FilePath>> LocalTestServer::GetPythonPath()
const { … }
bool LocalTestServer::AddCommandLineArguments(
base::CommandLine* command_line) const { … }
}