#include "chrome/browser/profiles/incognito_mode_policy_handler.h"
#include "base/memory/ptr_util.h"
#include "chrome/browser/prefs/incognito_mode_prefs.h"
#include "components/policy/core/browser/configuration_policy_pref_store.h"
#include "components/policy/core/browser/configuration_policy_pref_store_test.h"
#include "components/policy/core/common/policy_pref_names.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
namespace policy {
class IncognitoModePolicyHandlerTest
: public ConfigurationPolicyPrefStoreTest { … };
TEST_F(IncognitoModePolicyHandlerTest,
NoObsoletePolicyAndIncognitoEnabled) { … }
TEST_F(IncognitoModePolicyHandlerTest,
NoObsoletePolicyAndIncognitoDisabled) { … }
TEST_F(IncognitoModePolicyHandlerTest,
NoObsoletePolicyAndIncognitoForced) { … }
TEST_F(IncognitoModePolicyHandlerTest,
NoObsoletePolicyAndNoIncognitoAvailability) { … }
TEST_F(IncognitoModePolicyHandlerTest,
ObsoletePolicyDoesNotAffectAvailabilityEnabled) { … }
TEST_F(IncognitoModePolicyHandlerTest,
ObsoletePolicyDoesNotAffectAvailabilityForced) { … }
TEST_F(IncognitoModePolicyHandlerTest,
ObsoletePolicySetsPreferenceToEnabled) { … }
TEST_F(IncognitoModePolicyHandlerTest,
ObsoletePolicySetsPreferenceToDisabled) { … }
}