#include "components/supervised_user/core/browser/supervised_user_capabilities.h"
#include "base/test/task_environment.h"
#include "components/signin/public/identity_manager/account_capabilities_test_mutator.h"
#include "components/signin/public/identity_manager/account_info.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace supervised_user {
namespace {
constexpr char kEmail[] = …;
class MockSupervisedUserCapabilitiesObserver
: SupervisedUserCapabilitiesObserver { … };
}
class SupervisedUserCapabilitiesTest : public ::testing::Test { … };
TEST_F(SupervisedUserCapabilitiesTest,
SignedOutUserNotSubjectToParentalControls) { … }
TEST_F(SupervisedUserCapabilitiesTest,
SignedInAdultNotSubjectToParentalControls) { … }
TEST_F(SupervisedUserCapabilitiesTest, SignedInChildSubjectToParentalControls) { … }
TEST_F(SupervisedUserCapabilitiesTest,
SignedInUnknownIsSubjectToParentalControls) { … }
#if !BUILDFLAG(IS_CHROMEOS)
TEST_F(SupervisedUserCapabilitiesTest,
SignOutTriggersIsSubjectToParentalControlsUpdate) { … }
#endif
}