#include "chrome/browser/ui/hats/trust_safety_sentiment_service.h"
#include "base/memory/raw_ptr.h"
#include "base/time/time_override.h"
#include "chrome/browser/ui/browser.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/browser/ui/page_info/page_info_dialog.h"
#include "chrome/browser/ui/views/page_info/page_info_bubble_view.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/test/browser_test.h"
_;
namespace {
std::unique_ptr<KeyedService> BuildSentimentServiceForTesting(
content::BrowserContext* context) { … }
}
class TrustSafetySentimentServiceBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(TrustSafetySentimentServiceBrowserTest,
PageInfoTriggersSurvey_NoInteraction) { … }
IN_PROC_BROWSER_TEST_F(TrustSafetySentimentServiceBrowserTest,
PageInfoTriggersSurvey_Interaction) { … }