chromium/chrome/browser/supervised_user/supervised_user_browser_utils_unittest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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[] =;
}  // namespace

class SupervisedUserBrowserUtilsTest : public ::testing::Test {};

SupervisedUserBrowserUtilsTest::SupervisedUserBrowserUtilsTest() {}

signin::IdentityTestEnvironment*
SupervisedUserBrowserUtilsTest::GetIdentityTestEnv() {}

TEST_F(SupervisedUserBrowserUtilsTest, GetAccountGivenName) {}

enum class ExtensionsPermissionStatus {};

// Tests for the method AreExtensionsPermissionsEnabled which
// depends on enabling platform-specific feature flags.
class SupervisedUserBrowserUtilsTestWithExtensionsPermissionsFeature
    : public SupervisedUserBrowserUtilsTest,
      public testing::WithParamInterface<ExtensionsPermissionStatus> {};

TEST_P(SupervisedUserBrowserUtilsTestWithExtensionsPermissionsFeature,
       AreExtensionsPermissionsEnabledWithSupervisedUser) {}

TEST_P(SupervisedUserBrowserUtilsTestWithExtensionsPermissionsFeature,
       AreExtensionsPermissionsEnabledWithNonSupervisedUser) {}

INSTANTIATE_TEST_SUITE_P();