#include "components/site_engagement/content/site_engagement_helper.h"
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/timer/timer.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/site_engagement/content/engagement_type.h"
#include "components/site_engagement/content/site_engagement_metrics.h"
#include "components/site_engagement/content/site_engagement_observer.h"
#include "components/webapps/common/web_app_id.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/prerender_test_util.h"
#include "content/public/test/test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace site_engagement {
class TestOneShotTimer : public base::OneShotTimer { … };
class SiteEngagementHelperBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(SiteEngagementHelperBrowserTest,
SiteEngagementHelperInPrerendering) { … }
class ObserverTester : public SiteEngagementObserver { … };
IN_PROC_BROWSER_TEST_F(SiteEngagementHelperBrowserTest,
SiteEngagementHelperMediaTrackerInPrerendering) { … }
}