#include "components/supervised_user/core/browser/supervised_user_preferences.h"
#include <memory>
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "components/supervised_user/core/browser/supervised_user_utils.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_chrome_management_test_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace supervised_user {
namespace {
IsEmpty;
Not;
class SupervisedUserPreferencesTest : public ::testing::Test { … };
TEST_F(SupervisedUserPreferencesTest, RegisterProfilePrefs) { … }
TEST_F(SupervisedUserPreferencesTest, ToggleParentalControls) { … }
TEST_F(SupervisedUserPreferencesTest, StartFetchingFamilyInfo) { … }
TEST_F(SupervisedUserPreferencesTest, FieldsAreClearedForNonChildAccounts) { … }
TEST_F(SupervisedUserPreferencesTest, IsSafeSitesEnabledSupervisedUser) { … }
TEST_F(SupervisedUserPreferencesTest, IsSafeSitesEnabledNonSupervisedUser) { … }
TEST_F(SupervisedUserPreferencesTest, IsSafeSitesDisabled) { … }
TEST_F(SupervisedUserPreferencesTest,
IsSubjectToParentalControlsForSupervisedUser) { … }
TEST_F(SupervisedUserPreferencesTest,
IsSubjectToParentalControlsForNonSupervisedUser) { … }
}
}