#include <optional>
#include "base/time/time.h"
#include "chrome/browser/ui/hats/hats_service.h"
#include "chrome/test/base/testing_profile.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/permissions/constants.h"
#include "components/permissions/features.h"
#include "components/permissions/permission_hats_trigger_helper.h"
#include "components/permissions/permission_request_enums.h"
#include "components/permissions/permission_uma_util.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_renderer_host.h"
#include "testing/gtest/include/gtest/gtest.h"
class PermissionHatsTriggerUnitTest : public testing::Test { … };
TEST_F(PermissionHatsTriggerUnitTest, SingleValuedFiltersTriggerCorrectly) { … }
TEST_F(PermissionHatsTriggerUnitTest, EmptyFiltersShouldAlwaysTrigger) { … }
TEST_F(PermissionHatsTriggerUnitTest, CSVFiltersTriggerForAllConfiguredValues) { … }
TEST_F(PermissionHatsTriggerUnitTest, FilterConfigurationHandlesEdgeCases) { … }
TEST_F(PermissionHatsTriggerUnitTest, ProductSpecificFieldsAreReported) { … }
TEST_F(PermissionHatsTriggerUnitTest, VerifyIgnoreSafeguardFunctionality) { … }
TEST_F(PermissionHatsTriggerUnitTest, VerifyUnconfiguredFiltersSafeguard) { … }
TEST_F(PermissionHatsTriggerUnitTest, VerifyMisconfiguredFiltersSafeguard) { … }
TEST_F(PermissionHatsTriggerUnitTest, MultipleTriggersShouldWorkCorrectly) { … }
TEST_F(PermissionHatsTriggerUnitTest,
MultipleTriggersMisconfiguredProbabilityVectorShouldNotTrigger) { … }
TEST_F(PermissionHatsTriggerUnitTest,
MultipleTriggersMisconfiguredRequestTypeFilterShouldNotTrigger) { … }
TEST_F(PermissionHatsTriggerUnitTest,
MultipleTriggersEmptyRequestTypeFilterMisconfigurationShouldNotTrigger) { … }
TEST_F(PermissionHatsTriggerUnitTest,
MultipleTriggersMalformedProbabilityVectorShouldNotTrigger) { … }
TEST_F(PermissionHatsTriggerUnitTest,
SingleTriggerNoProbabilityVectorShouldWork) { … }
TEST_F(PermissionHatsTriggerUnitTest, PepcPromptDispositionRequestTypeFilter) { … }
TEST_F(PermissionHatsTriggerUnitTest, PepcPromptDispositionMultipleRequests) { … }
TEST_F(PermissionHatsTriggerUnitTest, PepcPromptPositionFilter) { … }
TEST_F(PermissionHatsTriggerUnitTest, PepcPromptInitialStatusFilter) { … }
TEST_F(PermissionHatsTriggerUnitTest,
PepcPromptPositionAndInitialStatusFilter) { … }