#include "chrome/browser/media/wv_test_license_server_config.h"
#include "base/command_line.h"
#include "base/environment.h"
#include "base/files/file_util.h"
#include "base/path_service.h"
#include "base/rand_util.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "net/base/ip_address.h"
#include "net/base/net_errors.h"
#include "net/log/net_log_source.h"
#include "net/socket/tcp_server_socket.h"
#include "net/test/python_utils.h"
#if BUILDFLAG(IS_APPLE)
#include "base/apple/foundation_util.h"
#endif
namespace {
const uint16_t kMinPort = …;
const uint16_t kPortRangeSize = …;
const base::FilePath::CharType kKeysFileName[] = …);
const base::FilePath::CharType kPoliciesFileName[] = …);
const base::FilePath::CharType kProfilesFileName[] = …);
const base::FilePath::CharType kLicenseServerConfigDirName[] = …);
bool GetPyProtoPath(base::FilePath* dir) { … }
}
WVTestLicenseServerConfig::WVTestLicenseServerConfig() { … }
WVTestLicenseServerConfig::~WVTestLicenseServerConfig() { … }
bool WVTestLicenseServerConfig::GetServerCommandLine(
base::CommandLine* command_line) { … }
std::optional<base::EnvironmentMap>
WVTestLicenseServerConfig::GetServerEnvironment() { … }
bool WVTestLicenseServerConfig::SelectServerPort() { … }
bool WVTestLicenseServerConfig::IsPlatformSupported() { … }
std::string WVTestLicenseServerConfig::GetServerURL() { … }
void WVTestLicenseServerConfig::GetLicenseServerPath(base::FilePath *path) { … }
void WVTestLicenseServerConfig::GetLicenseServerRootPath(
base::FilePath* path) { … }