#include "chrome/test/supervised_user/family_member.h"
#include <optional>
#include <string>
#include "base/containers/flat_map.h"
#include "base/strings/strcat.h"
#include "base/test/bind.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/e2e_tests/test_accounts_util.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/supervised_user/supervised_user_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "components/signin/public/base/consent_level.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/supervised_user/core/browser/supervised_user_capabilities.h"
#include "components/supervised_user/core/browser/supervised_user_service.h"
#include "google_apis/gaia/core_account_id.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
namespace supervised_user {
namespace {
CoreAccountId GetAccountId(Profile* profile) { … }
std::string GetFamilyMemberSettingsUrlBase(const FamilyMember& member) { … }
GURL GetControlListUrlFor(const FamilyMember& member, std::string_view page) { … }
}
FamilyMember::FamilyMember(
signin::test::TestAccount account,
Browser& browser,
const base::RepeatingCallback<bool(int, const GURL&, ui::PageTransition)>
add_tab_function)
: … { … }
FamilyMember::~FamilyMember() = default;
GURL FamilyMember::GetBlockListUrlFor(const FamilyMember& member) const { … }
GURL FamilyMember::GetAllowListUrlFor(const FamilyMember& member) const { … }
GURL FamilyMember::GetPermissionsUrlFor(const FamilyMember& member) const { … }
SupervisedUserService* FamilyMember::supervised_user_service() const { … }
void FamilyMember::TurnOnSync() { … }
CoreAccountId FamilyMember::GetAccountId() const { … }
}