#include "chrome/browser/supervised_user/supervised_user_browser_utils.h"
#include <memory>
#include <string>
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/identity_test_environment_profile_adaptor.h"
#include "chrome/browser/supervised_user/supervised_user_test_util.h"
#include "chrome/test/base/testing_profile.h"
#include "components/signin/public/base/consent_level.h"
#include "components/signin/public/identity_manager/account_info.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "components/supervised_user/core/common/features.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
constexpr char kChildEmail[] = …;
constexpr char kChildGivenName[] = …;
}
class SupervisedUserBrowserUtilsTest : public ::testing::Test { … };
SupervisedUserBrowserUtilsTest::SupervisedUserBrowserUtilsTest() { … }
signin::IdentityTestEnvironment*
SupervisedUserBrowserUtilsTest::GetIdentityTestEnv() { … }
TEST_F(SupervisedUserBrowserUtilsTest, GetAccountGivenName) { … }
enum class ExtensionsPermissionStatus { … };
class SupervisedUserBrowserUtilsTestWithExtensionsPermissionsFeature
: public SupervisedUserBrowserUtilsTest,
public testing::WithParamInterface<ExtensionsPermissionStatus> { … };
TEST_P(SupervisedUserBrowserUtilsTestWithExtensionsPermissionsFeature,
AreExtensionsPermissionsEnabledWithSupervisedUser) { … }
TEST_P(SupervisedUserBrowserUtilsTestWithExtensionsPermissionsFeature,
AreExtensionsPermissionsEnabledWithNonSupervisedUser) { … }
INSTANTIATE_TEST_SUITE_P(…);