#include "chrome/test/supervised_user/embedded_test_server_setup_mixin.h"
#include <string>
#include <string_view>
#include <vector>
#include "base/containers/span.h"
#include "base/logging.h"
#include "base/ranges/algorithm.h"
#include "base/strings/strcat.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "chrome/test/base/mixin_based_in_process_browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "services/network/public/cpp/network_switches.h"
namespace supervised_user {
namespace {
std::string CreateResolverRule(std::string_view host, std::string_view target) { … }
std::vector<std::string> SplitHostList(std::string_view host_list) { … }
}
EmbeddedTestServerSetupMixin::EmbeddedTestServerSetupMixin(
InProcessBrowserTestMixinHost& host,
InProcessBrowserTest* test_base,
raw_ptr<net::EmbeddedTestServer> server,
const Options& options)
: … { … }
EmbeddedTestServerSetupMixin::~EmbeddedTestServerSetupMixin() = default;
void EmbeddedTestServerSetupMixin::SetUp() { … }
void EmbeddedTestServerSetupMixin::SetUpCommandLine(
base::CommandLine* command_line) { … }
void EmbeddedTestServerSetupMixin::SetUpOnMainThread() { … }
void EmbeddedTestServerSetupMixin::TearDownOnMainThread() { … }
}