#include "components/site_engagement/content/site_engagement_helper.h"
#include <memory>
#include "base/memory/ptr_util.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/timer/mock_timer.h"
#include "base/values.h"
#include "components/permissions/test/test_permissions_client.h"
#include "components/prefs/testing_pref_service.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_score.h"
#include "components/site_engagement/content/site_engagement_service.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/browser/web_contents.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/input/web_gesture_event.h"
#include "third_party/blink/public/common/input/web_keyboard_event.h"
#include "third_party/blink/public/common/input/web_mouse_event.h"
#include "third_party/blink/public/common/input/web_touch_event.h"
namespace site_engagement {
NavigationSimulator;
class TestSiteEngagementServiceProvider
: public SiteEngagementService::ServiceProvider { … };
class SiteEngagementHelperTest : public content::RenderViewHostTestHarness { … };
TEST_F(SiteEngagementHelperTest, KeyPressEngagementAccumulation) { … }
TEST_F(SiteEngagementHelperTest, MouseDownEventEngagementAccumulation) { … }
TEST_F(SiteEngagementHelperTest, ScrollEventEngagementAccumulation) { … }
TEST_F(SiteEngagementHelperTest, TouchEngagementAccumulation) { … }
TEST_F(SiteEngagementHelperTest, MediaEngagementAccumulation) { … }
TEST_F(SiteEngagementHelperTest, MediaEngagement) { … }
TEST_F(SiteEngagementHelperTest, MixedInputEngagementAccumulation) { … }
TEST_F(SiteEngagementHelperTest, CheckTimerAndCallbacks) { … }
TEST_F(SiteEngagementHelperTest, ShowAndHide) { … }
TEST_F(SiteEngagementHelperTest, Occlusion) { … }
TEST_F(SiteEngagementHelperTest, SingleTabNavigation) { … }
}