#include "chrome/test/supervised_user/api_mock_setup_mixin.h"
#include <string>
#include <string_view>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/strings/strcat.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/prefs/pref_service.h"
#include "components/supervised_user/core/common/pref_names.h"
#include "components/supervised_user/core/common/supervised_user_constants.h"
#include "components/supervised_user/test_support/kids_management_api_server_mock.h"
#include "net/dns/mock_host_resolver.h"
#include "services/network/public/cpp/network_switches.h"
namespace supervised_user {
namespace {
constexpr std::string_view kKidsManagementServiceEndpoint{ … };
class FamilyFetchedLock { … };
}
KidsManagementApiMockSetupMixin::KidsManagementApiMockSetupMixin(
InProcessBrowserTestMixinHost& host,
InProcessBrowserTest* test_base)
: … { … }
KidsManagementApiMockSetupMixin::~KidsManagementApiMockSetupMixin() = default;
void KidsManagementApiMockSetupMixin::SetUp() { … }
void KidsManagementApiMockSetupMixin::SetUpCommandLine(
base::CommandLine* command_line) { … }
void KidsManagementApiMockSetupMixin::SetUpOnMainThread() { … }
void KidsManagementApiMockSetupMixin::TearDownOnMainThread() { … }
}