#include "chrome/browser/ui/hats/trust_safety_sentiment_service.h"
#include "base/memory/raw_ptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/extensions/api/settings_private/generated_pref.h"
#include "chrome/browser/extensions/api/settings_private/generated_pref_test_base.h"
#include "chrome/browser/ui/hats/hats_service.h"
#include "chrome/browser/ui/hats/hats_service_factory.h"
#include "chrome/browser/ui/hats/mock_hats_service.h"
#include "chrome/browser/ui/hats/trust_safety_sentiment_service_factory.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/testing_profile.h"
#include "components/browsing_data/core/browsing_data_utils.h"
#include "components/content_settings/core/test/content_settings_mock_provider.h"
#include "components/content_settings/core/test/content_settings_test_utils.h"
#include "components/privacy_sandbox/tracking_protection_prefs.h"
#include "components/signin/public/base/signin_pref_names.h"
#include "components/unified_consent/pref_names.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
_;
class TrustSafetySentimentServiceTest : public testing::Test { … };
TEST_F(TrustSafetySentimentServiceTest, Eligibility_NtpOpens) { … }
TEST_F(TrustSafetySentimentServiceTest, Eligibility_Time) { … }
TEST_F(TrustSafetySentimentServiceTest, TriggerProbability) { … }
TEST_F(TrustSafetySentimentServiceTest, TriggersClearOnLaunch) { … }
TEST_F(TrustSafetySentimentServiceTest, SettingsWatcher_PrivacySettings) { … }
TEST_F(TrustSafetySentimentServiceTest, SettingsWatcher_PasswordManager) { … }
TEST_F(TrustSafetySentimentServiceTest, RanSafetyCheck) { … }
TEST_F(TrustSafetySentimentServiceTest, SavedPassword) { … }
TEST_F(TrustSafetySentimentServiceTest, SavedCard) { … }
TEST_F(TrustSafetySentimentServiceTest,
InteractedWithPrivacySandbox4ConsentAccept) { … }
TEST_F(TrustSafetySentimentServiceTest,
InteractedWithPrivacySandbox4ConsentDecline) { … }
TEST_F(TrustSafetySentimentServiceTest, InteractedWithPrivacySandbox4NoticeOk) { … }
TEST_F(TrustSafetySentimentServiceTest,
InteractedWithPrivacySandbox4NoticeSettings) { … }
TEST_F(TrustSafetySentimentServiceTest, PrivacySettingsProductSpecificData) { … }
TEST_F(TrustSafetySentimentServiceTest, ActiveIncognitoPreventsSurvey) { … }
TEST_F(TrustSafetySentimentServiceTest, ClosingIncognitoDelaysSurvey) { … }
TEST_F(TrustSafetySentimentServiceTest, AllFeatureAreasHaveTriggers) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_AllFeatureAreasHaveTriggers) { … }
TEST_F(TrustSafetySentimentServiceTest, AllFeatureAreasHaveProbabilities) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_AllFeatureAreasHaveProbabilities) { … }
TEST_F(TrustSafetySentimentServiceTest, Eligibility_V1FeatureWhileV2Enabled) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_TrustedSurface) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_SafetyCheck) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_PasswordCheck) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_BrowsingData) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_BrowsingData_NotInterested) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_PrivacyGuide) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_ControlGroup) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_PrivacySandbox4ConsentAccept) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_PrivacySandbox4ConsentDecline) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_PrivacySandbox4NoticeOk) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_PrivacySandbox4NoticeSettings) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_SafeBrowsingInterstitial) { … }
TEST_F(TrustSafetySentimentServiceTest, V2_DownloadWarningUI) { … }
TEST_F(TrustSafetySentimentServiceTest, PasswordProtectionUINonPasswordChange) { … }
TEST_F(TrustSafetySentimentServiceTest,
PasswordProtectionUIPasswordChangeClickedNotCompleted) { … }
TEST_F(TrustSafetySentimentServiceTest,
PasswordProtectionUIPasswordChangeClickedAndCompleted) { … }
TEST_F(TrustSafetySentimentServiceTest,
PasswordProtectionUIPasswordChangeThenNonPasswordChange) { … }
TEST_F(TrustSafetySentimentServiceTest,
PasswordProtectionUIPasswordChangeThenNonPasswordChange2) { … }