#include "chrome/browser/ui/hats/hats_helper.h"
#include "base/memory/raw_ptr.h"
#include "chrome/browser/ui/hats/hats_service_factory.h"
#include "chrome/browser/ui/hats/mock_hats_service.h"
#include "chrome/browser/ui/hats/mock_trust_safety_sentiment_service.h"
#include "chrome/browser/ui/hats/trust_safety_sentiment_service_factory.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/navigation_simulator.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 "third_party/blink/public/common/features.h"
class HatsHelperTest : public testing::Test { … };
TEST_F(HatsHelperTest, SentimentServiceInformed) { … }
class HatsHelperFencedFrameTest : public HatsHelperTest { … };
TEST_F(HatsHelperFencedFrameTest,
SentimentServiceIsNotInformedAfterNavigationInFencedFrame) { … }